Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how to get/parse input from CGI inside JS ?

Posted on 1997-10-09
2
Medium Priority
?
207 Views
Last Modified: 2012-05-04

0
Comment
Question by:weinerk
2 Comments
 
LVL 10

Accepted Solution

by:
kollegov earned 40 total points
ID: 1271168
Direct answer:
No way with JavaScript!!!

First Way around:
Simple Java applet can do this and pass data to
JavaScript.
But due to security restrictions applet can connect
only to server where from it was loaded.

second way around:
no sence to do it at client-side,
if you can do it inside CGI.

third way around :)
If you can open window for this cgi connection
you can get SOME data from child window with JavaScript
(again if both connections to the same server)
You can get forms data or you can get
links data from child window, so if CGI return
links you can get it, but not plain text of document.

0
 

Expert Comment

by:LFT
ID: 1271169
If you try pass data directly from java to javascript it doesn't work also because javascript refuse to do I/O even trough applet !!!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

972 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