Connecting Tech Pros Worldwide Forums | Help | Site Map

Help in Invoking CGI program from javascript

Vanitha
Guest
 
Posts: n/a
#1: Jul 23 '05
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(continuously 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.location="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
Guest
 
Posts: n/a
#2: Jul 23 '05

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.0503201931.664406ee@posting.google.c om:

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

kaeli
Guest
 
Posts: n/a
#3: Jul 23 '05

re: Help in Invoking CGI program from javascript


In article <15faa2ac.0503201931.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(continuously pull status from my target device) in HTML
> Form.[/color]

Just use dynamically generated javascript.
http://www.ipwebdesign.net/kaelisSpa...alidation.html

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

--
--
~kaeli~
If you drink, don't park. Accidents cause people.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Closed Thread