Help in Invoking CGI program from javascript

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

    #1

    Help in Invoking CGI program from javascript

    Hi All,

    I am usig CGI-C to communicate with my embedded webserver. I am using
    javascript for my client side scripting. I need implement some polling
    operation(conti nuously pull status from my target device) in HTML
    Form. since i am using CGI-C for me to return the response i need to
    regenerate the HTML form in my "C" code. I dont want to do regenerate
    the response each time i do i a GET operation.

    I understand that i can use hidden frames for this purpose. But i am
    not clear in using hidden frames. I have created hidden frames using
    FRAMESET ROW=100%,*, but when i click the GET button my Main Form that
    is visible, i want my hidden form to invoke the CGI that executes some
    command in my target and return the response in name,values
    pairs(which are hidden) and then extract the value from them assign to
    the Main Form.

    ie. basically when the hidden form does the processing, i still want
    to continue to remain in the Main form..and then assign the values
    from the hidden form..

    i tried to give top.documet.all .hidden.locatio n="http://10.0.0.20/cgi-bin/getval.cgi".

    Where hidden is my "hidden" form name. This doesnt seem to work..
    I appreciate any inputs on this
    Thanks
  • John

    #2
    Re: Help in Invoking CGI program from javascript

    Just a thought, have you looked into IFRAMES? Can't give any concrete
    examples of code or anything, sorry.

    vanitha@agilis. st.com.sg (Vanitha) wrote in
    news:15faa2ac.0 503201931.66440 6ee@posting.goo gle.com:

    ....[color=blue]
    > I appreciate any inputs on this
    > Thanks
    >[/color]

    Comment

    • kaeli

      #3
      Re: Help in Invoking CGI program from javascript

      In article <15faa2ac.05032 01931.664406ee@ posting.google. com>,
      vanitha@agilis. st.com.sg enlightened us with...[color=blue]
      > Hi All,
      >
      > I am usig CGI-C to communicate with my embedded webserver. I am using
      > javascript for my client side scripting. I need implement some polling
      > operation(conti nuously pull status from my target device) in HTML
      > Form.[/color]

      Just use dynamically generated javascript.


      Assuming all the clients have JS enabled and DOM browsers...

      --
      --
      ~kaeli~
      If you drink, don't park. Accidents cause people.



      Comment

      Working...