Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

how to get/parse input from CGI inside JS ?

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

0
Comment
Question by:weinerk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…

715 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