Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 04:09 PM
Stacey
Guest
 
Posts: n/a
Default 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?


  #2  
Old July 20th, 2005, 04:10 PM
FISH
Guest
 
Posts: n/a
Default Re: How do I call cgi from javascript

"Stacey" <stacye@optonline.net> wrote in message news:<MBGOa.10287$EC6.4604328@news4.srv.hcvlny.cv. net>...[color=blue]
> 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?[/color]


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- ><>
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles