473,383 Members | 1,877 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

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(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
Jul 23 '05 #1
2 1373
Just a thought, have you looked into IFRAMES? Can't give any concrete
examples of code or anything, sorry.

va*****@agilis.st.com.sg (Vanitha) wrote in
news:15**************************@posting.google.c om:

....
I appreciate any inputs on this
Thanks


Jul 23 '05 #2
In article <15**************************@posting.google.com >,
va*****@agilis.st.com.sg enlightened us with...
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.


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

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: mark4asp | last post by:
Why won't the window.status message change ? IE ver. 6.0.2800.1106 displays the tooltip OK. <td> <A HREF="editAuthor.asp?item=4" title="Edit author details"...
8
by: Mike Gifford | last post by:
Hello, I've got a number of html fragments (in a template file) which are bundled together in a cms. I'm sure that there's a way through javascript to convert a piece of code like this: ...
11
by: ricolee99 | last post by:
Hi everyone, I'm trying to invoke my .exe application from a remote server. Here is the code: ManagementClass processClass = new ManagementClass ("\\\\" +"RemoteServerName" +...
2
by: JCE | last post by:
I need to programmatically invoke an asp:Button click event from a javascript function. The page containing the script and the button is the HTML page associated with a WebUserControl-derived...
0
by: balaji krishna | last post by:
Hi, I need to handle the return set from COBOL stored procedure from my invoking Java program. I do not know, how many rows the stored proc SQL fetches.I have declared the cursor in that proc, but i...
8
by: Richard Maher | last post by:
Hi, I am in a mouseup event for button A and I'd like to disable=false button B before starting some work. Is there anyway that an event for button B can then fire before my event processing for...
12
by: =?ISO-8859-1?Q?Thomas_B=F8rlum?= | last post by:
Hey all, I'm writing a c++ program that needs to read a file. I'm trying to read a file that is in the same directory as the executable. Everything works fine if I execute the program while in...
2
by: =?Utf-8?B?SmltIE93ZW4=?= | last post by:
Hi John, Hopefully this post will find its way back to you - or perhaps be answered by someone else. As I mentioned in my last post on the earlier portion of this thread, changing the...
6
by: John O'Flaherty | last post by:
Hello. I have an ms acess database that I use to track my mp3 files. I have included code that lets me select and play files by invoking an mp3 player (Winamp). This is done by using visual basic...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.