How do I call cgi from javascript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Stacey

    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?


  • FISH

    #2
    Re: How do I call cgi from javascript

    "Stacey" <stacye@optonli ne.net> wrote in message news:<MBGOa.102 87$EC6.4604328@ news4.srv.hcvln y.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.App letContext 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.javas cript


    -FISH- ><>

    Comment

    Working...