K
Ken Smith
Hi,
Sorry for dumb newbie question:
I have an embedded system with HTTP server that may not be completely
standard. I can successfully get the server to generate dynamic pages
using statements such as:
<!--#exec cgi="/GeneratePage.fn"-->
where GeneratePage.fn is a function in my server application. Now I
want to send data to the server without changing the display in my
browser.
I have tried using <form action="GeneratePage.fn" ......> </form>, along
with a button on the form. This works in that I can receive the data in
the GeneratePage.fn function within my server application - but the
client browser then tries to open a page called GeneratePage.fn. Is
there anyway I can send data using this 'action' mechanism, but prevent
the browser also trying to open the page specified by the action?
The other method I tried is to use an onclick event on the button. I
defined a JavaScript function for the on click event, and can get the
JavaScript to execute (I used an alert() call to check it was running).
But how do I get the JavaScript to call the GeneratePage.fn function in
my server?
Thanks for any advice.
Sorry for dumb newbie question:
I have an embedded system with HTTP server that may not be completely
standard. I can successfully get the server to generate dynamic pages
using statements such as:
<!--#exec cgi="/GeneratePage.fn"-->
where GeneratePage.fn is a function in my server application. Now I
want to send data to the server without changing the display in my
browser.
I have tried using <form action="GeneratePage.fn" ......> </form>, along
with a button on the form. This works in that I can receive the data in
the GeneratePage.fn function within my server application - but the
client browser then tries to open a page called GeneratePage.fn. Is
there anyway I can send data using this 'action' mechanism, but prevent
the browser also trying to open the page specified by the action?
The other method I tried is to use an onclick event on the button. I
defined a JavaScript function for the on click event, and can get the
JavaScript to execute (I used an alert() call to check it was running).
But how do I get the JavaScript to call the GeneratePage.fn function in
my server?
Thanks for any advice.