Submit form automatically with VB-Script at page onLoad 
Author Message
 Submit form automatically with VB-Script at page onLoad

Hi there,

With Java-Script there's a possiblity to automatically submit a form after
loading a page with:
    onLoad="document.form_name.submit()

Is there anyone who knows a piece of code doing the same with ASP-VBScript?

Best regards
Stefan Kalberer



Fri, 11 Jul 2003 21:24:16 GMT  
 Submit form automatically with VB-Script at page onLoad
onLoad="vbscript:document.form_name.submit"
onLoad="javascript:document.form_name.submit()"

It's a DOM method that any script language can call.  The vbscript/javascript protocols are only
necessary when there may be some ambiguity as to what the default client side script language is.
For example, if the client has only language="vbscript" script elements, then the vbscript: isn't
absolutely necessary but javascript: would be...

--
Michael Harris
Microsoft.MVP.Scripting
--

Please do not email questions - post them to the newsgroup instead.
--

Quote:

> Hi there,

> With Java-Script there's a possiblity to automatically submit a form after
> loading a page with:
>     onLoad="document.form_name.submit()

> Is there anyone who knows a piece of code doing the same with ASP-VBScript?

> Best regards
> Stefan Kalberer



Sat, 12 Jul 2003 03:41:32 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. To stop program which is running in TP 7.0

2. Question: is there something like ObjectByName(ObjectName) ?

3. Automatically Submit a form on the page

4. Automatically Submit a form using VBScript

5. tp7 in win98

6. SQL Server

7. Better question: How do you submit a form onload

8. How to automatically populate and submit a form on a site

9. submitting a form automatically

10. submitting a form automatically

11. submit form automatically

12. Why Turbo Pascal for Windows 1.5 ?

 

 
Powered by phpBB® Forum Software