Forum Moderators: phranque

Message Too Old, No Replies

forms and javascript

         

NotAFanOfPrograming

2:27 pm on Jul 13, 2004 (gmt 0)

10+ Year Member



Is there a way to have an HTML page or something to have it so that when the page loads it will GET data right away from a server and then display it on the very same page?

i have something like this and would like this form data to be done when the page loads and then displayed so the user does not have to actually click a submit button to "GET" the data. So onLoad i want to do the 'action' of 'get' and then display the data.

<--
**could I use javascript or something in here to get the live data points on a pageLoad function?
-->

<body>
<form action="http://myServer/processnet/isapi/netportal/netportal.dll/data/PI_ALPHA" method=GET>
Tagename: <select name=tag0>
<option value = 'MET-MAIN100DTSC01'> MET-MAIN100DTSC01
<option value = 'MET-MAIN100WD01'> MET-MAIN100WD01
<option value = 'MET-MAIN200DTSC01'> MET-MAIN200DTSC01
</select>
Format: <select name=format>
<option value = 'HTML'> HTML Table
<option value = 'Excel'> Excel Spreadsheet
</select>
<br>
<input type=submit>
</form>

thanks

coopster

5:37 pm on Jul 13, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



When a user is requesting a page from your server, that is a GET request. Knowing this, why not have the server serve up the information on the initial page request?