By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,563 Members | 1,180 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,563 IT Pros & Developers. It's quick & easy.

How do I call cgi from javascript

P: n/a
I have an html page that uses java to zoom in and out of an image. I just
want to be able to call a cgi script from the form in the html. The java
allows the user to drag a box to any size on the jpg. As soon as the user
completes the box, how do I call the cgi script to send the rectangle size
to? It is in a function called 'drawend' where I would put the call to the
cgi script to POST some form parameters.. No information is needed to be
returned.

What to do?
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Stacey" <st****@optonline.net> wrote in message news:<MB*********************@news4.srv.hcvlny.cv. net>...
I have an html page that uses java to zoom in and out of an image. I just
want to be able to call a cgi script from the form in the html. The java
allows the user to drag a box to any size on the jpg. As soon as the user
completes the box, how do I call the cgi script to send the rectangle size
to? It is in a function called 'drawend' where I would put the call to the
cgi script to POST some form parameters.. No information is needed to be
returned.

What to do?

First off, are we dealing with Java or Javascript here? The two
barely have anything to do with each other.

From Java (an applet, I assume) you can use either the java.net.URL
class or the showDocument() methods in java.applet.AppletContext to
call web pages: including GET and POST (although the latter is only
available from URL).

If you're dealing with Javascript, try reposting on
comp.lang.javascript
-FISH- ><>
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.