Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Running server code from a client script?

Posted on 2002-06-20
8
Medium Priority
?
299 Views
Last Modified: 2013-12-24
OK,

I seem to have come across a problem with my installation of VS-6 in that I cannot use the page object.  It immediately comes up with a Red Exclamation Mark (or R.E.M. for short :) ) when it is dropped on the page.  This REM still remains even if I change the page object name.  The when the mouse is over the REM, the hovering tool-tip says "named objects are not currently available."  I have re-applied all the latest service packs (win2k-sp2, vs6-s5). I have searched google web/newsgroups and found a few people have come across the same problem, but no answers were given.  The only thing I haven't tried is re-installing the OS and that aint going to happen (at least not yet :) ).

So for at least the short term, I need a workaround.  How can I run server code from a client script (avoiding the temptation to use a submit button of course).

Anthony.
0
Comment
Question by:EBAC
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 19

Expert Comment

by:DreamMaster
ID: 7107790
You can't! Never was possible...and never will be....that would be a serious security hazard...

Max.
0
 

Expert Comment

by:CharlesM
ID: 7207371
Don't know what all your requirements are, but you can try remote script.
Works best with IE 5 + 6.
NS 6 does not work with it, but, theoretically NS 4 + 5 does.

Try this for some reading on it:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rmscpt/Html/rmscpt.asp
0
 

Author Comment

by:EBAC
ID: 7207760
Thanks heaps!

We are only going to be using IE, because it is only for internal site purposes.  Unfortunately, many of the computers on site are Win95 clients.  That means that I would have to install Windows Scripting 5.5.

Would it ever pose a problem if we were to ever get a couple of XP computers on site (bearing in mind that it requires al least Windows scripting 5.6).

I can go ahead and run with this because it looks like it will do the job.  But I just don't want to burn any future bridges I may want to cross.

Thanks in advance.
0
 

Accepted Solution

by:
CharlesM earned 200 total points
ID: 7209002
I don't think it matters much about the OS, more with the version of IE you have.

If you install v5 IE on the 95 computers, remote scripting should work fine.

I've used remote scripting on an XP machine (done a couple of projects with it), again, no problems.

I upgraded to the .NET platform, still ran fine.
Remote scripting isn't supported in .NET projects though, but it runs fine on a .NET machine.
0
 

Expert Comment

by:merlinb
ID: 7437416
I am not sure about the REM problem - it sounds like a permissions issue.  Make sure that you logged in as an administrator while you installed VI.

The page object does include an 'execute' feature, that allows a server-side function to be executed from client script.  It uses a Java runtime module (RSPROXY.JAVA) in the _ScriptLibrary. See also the RS.ASP / HTML files, that wrap the javascript, and PM.ASP / JS that handles the Page Object at runtime.  Unfortunately, not all browsers or security systems allow Java applets - though in your situation it sounds like it would be OK.

But without the page object (and its execute handler) you may need to use FRAMES (or Layers in Netscrape).  Through an iframe on the page, you can request separate url's, passing parameters in the query string, and recieving the reply as content or xml.  This information can be passed back to the main page via the window.parent object.

So if the content returned to the frame included javascript, this would run and could pass values back to the parent window document.

We also have a pop-up frame that has a gif image that looks like a % completion status bar that fills from the left.  Clearly it fills then starts again, but at least it shows the user that something is still happening.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When deciding to adopt any help desk solutions many factors should be explored before taking decisions. This will change from business to another but in general there are some kind of rule of thumb. Here are some quick tips: Do we need only ticket…
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…
Suggested Courses

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question