473,473 Members | 1,489 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

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).

Sep 23 '05 #1
1 2380

"nabilo" <na**************@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr 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
Sep 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Martin Waller | last post by:
Hello, I've been playing with the idea of just how to use an ASP page to provide a remote function call. In an ideal world this would be a web service but how can you do it if restricted to ASP...
3
by: Robert Brown | last post by:
Hi All.. What I have is a normal ASP web page wih javascript. The javascript needs to call a payment gateway, but the only way to get to it is https://paymentgateway/external.pl with parameters....
39
by: Randell D. | last post by:
Folks, I'm sure this can be done legally, and not thru tricks of the trade - I hope someone can help. I'm writing a 'tool' (a function) which can be used generically in any of my projects. ...
4
by: JoelWhitehouse | last post by:
Hi! I want to write a script that will read a .php file on a remote server and print to the current page a portion of the text contained in the remote file. I am just wondering what the best...
5
by: Neil Rossi | last post by:
I have an issue with a particular ASP page on two web servers. Let's call these servers Dev1 and Beta1. Both Servers are running IIS 5, Windows 2000 SP4 with "almost" all of the latest patches. ...
3
by: Marshall | last post by:
Hello, I am wondering if it is possible to call a remote web service using ATLAS and if so, how. I have read several docs which show how to call a web service that is within the same project as...
5
by: Charlie King | last post by:
I'm trying to send data to a remote script (a credit card processing third party) from my site using POST. Currently, I'm doing it using the ususal form dynamically built with my values. This...
0
by: Shinya | last post by:
How can i call the remote html page from php and get back the result of javascript which was calculated in that html remote.html <html> <body> <script language="javascript">...
4
by: bushi | last post by:
hi every one! i want to call a function of the code file into my javascript code.is it possible?how can i call it?any one knows about it plz rply me as soon as possible,any help will be...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.