Solved

how to get/parse input from CGI inside JS ?

Posted on 1997-10-09
2
189 Views
Last Modified: 2012-05-04

0
Comment
Question by:weinerk
2 Comments
 
LVL 10

Accepted Solution

by:
kollegov earned 10 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
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…

828 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