My CGI is able to return data in every format you like. Here comes the question:
My CGI is at:
www.server1.com/cgi.php
My external Pages are at:
www.server2.com/form1.html
...links to...
www.server2.com/page2.html
...links to...
www.server2.com/page3.html
I would like to receive Data from my CGI on wwww.server1.com into a JavaScript
on page2.html without using any scripting tools on www.server2.com like perl,
php, etc. It is possible to embed javascript code on form1.html, too.
The data received is used to modify the design of page2.html .
Best regards,
springshopping-ga |
Request for Question Clarification by
mrbuzz-ga
on
31 Dec 2002 10:25 PST
Hi springshopping-ga,
JavaScript can retrieve source files from any domain using the 'src='
parameter in the <script> tag. However, you will have to layout your
HTML code wrapped in JavaScript. Would it be acceptable to design the
page in JavaScript? For example, instead of having standard HTML tags
such as:
<img src="blah.jpg" border=0>
with JavaScript, it'll be like:
document.write ('<img src="blah.jpg" border=0>');
This allows you to script anything you'd like using cgi or php or any
other server-side scripting language on server1.com and you will not
need any server-side scripting language on server2.com and still
accomplish server-side scripting capabilities. If this is acceptable
to you, please let me know and I'll post a full answer.
Regards,
mrbuzz-ga
|
Request for Question Clarification by
mathtalk-ga
on
31 Dec 2002 13:52 PST
Hi, springshopping-ga:
I assume that by JavaScript you mean server-side scripting as opposed
to client-side. Therefore the details of doing what you want will
depend mainly on the Web server used. Which do you use?
A natural approach (at least to me) would be to pull an XML response
from server 1 (running CGI) and manipulate that result in the
server-side JavaScript in the pages on server 2 (to generate HTML
output). Again, the details will depend on your Web server. Once you
identify that, the appropriate experts here can point you to working
examples.
regards, mathtalk-ga
|
Request for Question Clarification by
joseleon-ga
on
01 Jan 2003 10:43 PST
Hello:
You can request a php script on server1 from javascript code hosted
on server2 that doesn't need to have any scripting capabilities. I use
this design to syndicate news to another web sites and provide a
simple installation procedure. Is this what you are looking for?
Regards.
|
Clarification of Question by
springshopping-ga
on
04 Jan 2003 08:22 PST
Hello all!
Thank you for your great comments. However I have limited access on
www.server2.com; I can only insert a javascript.
I have created an info - page for you to get a more detailed view on
my subject. Please check this page. :-)
http://www.dorra.net/gainfo/
Thank you,
springshopping
|