Solved

how to get/parse input from CGI inside JS ?

Posted on 1997-10-09
2
167 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now