468,511 Members | 1,700 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,511 developers. It's quick & easy.

How do I call cgi from javascript

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
1 6277
"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.

Similar topics

15 posts views Thread by chirs | last post: by
3 posts views Thread by Roberto Gallo | last post: by
3 posts views Thread by KaNos | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.