Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > How to call a page in a remote site and get the result within your page with javascript

Reply
Thread Tools

How to call a page in a remote site and get the result within your page with javascript

 
 
nabilo
Guest
Posts: n/a
 
      09-23-2005
I want to know if it's possible to call, within my cgi page, using
javascript, a remote url and get the result without changing my actual
page.
To say more, I have a page result appaired to the customer. And I want
to call, during this, a remote server to send the result of the
operation (ok/nok).
I don't want to use 'window.open' because it can be blocked by the
browser (pop-up).

 
Reply With Quote
 
 
 
 
Jim Davis
Guest
Posts: n/a
 
      09-23-2005

"nabilo" <> wrote in message
news: oups.com...
>I want to know if it's possible to call, within my cgi page, using
> javascript, a remote url and get the result without changing my actual
> page.
> To say more, I have a page result appaired to the customer. And I want
> to call, during this, a remote server to send the result of the
> operation (ok/nok).
> I don't want to use 'window.open' because it can be blocked by the
> browser (pop-up).


You're mixing a lot of things together there that cloud the question. I'm
going to assume that you're talking about client-side script (not
server-side JavaScript via some CGI process).

If that's the case then, no - you can't do this in a normal application.
The browser security model will allow you to open the popup window or
include a remote page in a frame or iFrame but it will not allow script from
the two sites to "touch" one another. This would be a big (VERY BIG)
security issue. It's a no-no.

That being said you COULD access the remote site from the server-side and
pass the results to your client-side script (possibly via some AJAX-style
programming which would allow you to do this without a full-page refresh).

But there's just no way to do this, legally, with the current browser
security models (some browsers support reduced security models as options
like IE's "HTA" container... but they're not very common and would create
other issues for you).

Jim Davis


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Is the result of valid dynamic cast always equal to the result ofcorrespondent static cast? Pavel C++ 7 09-18-2010 11:35 PM
simulation result is correct but synthesis result is not correct J.Ram VHDL 7 12-03-2008 01:26 PM
1. Ruby result: 101 seconds , 2. Java result:9.8 seconds, 3. Perl result:62 seconds Michael Tan Ruby 32 07-21-2005 03:23 PM
Remote Assistance fails to connect, remote remote host name could not be resolved Peter Sale Wireless Networking 1 12-11-2004 09:09 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57