Forums
This topic is locked
submit form onload
Posted 14 Oct 2002 19:36:11
1
has voted
14 Oct 2002 19:36:11 Dave Clarke posted:
Is it possible to submit a form on load without the user having to press a button??I need to do this for my "confirm membership" page, the user clicks a link in their email which takes them to the page with the form which then needs to update a table, but i want to do it automatically.
thanks
Dave
ASP|VBScript|IIS5.1|WinXPPro & WinXPHome
Replies
Replied 14 Oct 2002 20:17:09
14 Oct 2002 20:17:09 Rene Bommezijn replied:
Download Massimo's extension for UD called "FormManager". After inserting go to Code View and copy the OnSubmit part from the form-tag to the body-tag and change OnSubmit to OnLoad.
Replied 14 Oct 2002 20:22:09
14 Oct 2002 20:22:09 Dave Thomas replied:
can't u just create a function to submit the form in javascript and then call it in the opening body tag?I'm not big on Jscript as u know already <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle> but something along the lines of
<script language="javascript">
function MyFormSubmit() {
document.form.submit
}
// I don't know proper JS syntax, so forgive any errors
<body onload="MyFormSubmit()">....</body>
// Might be a load of junk, but any input is better than none <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Regards,
Dave
UD4 | Flash 5 | SQL | Access | ASP/VBScript | XP-Pro
<script language="javascript">
function MyFormSubmit() {
document.form.submit
}
// I don't know proper JS syntax, so forgive any errors
<body onload="MyFormSubmit()">....</body>
// Might be a load of junk, but any input is better than none <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Regards,
Dave
UD4 | Flash 5 | SQL | Access | ASP/VBScript | XP-Pro
Replied 14 Oct 2002 23:35:27
14 Oct 2002 23:35:27 Dave Clarke replied:
thanks Habahaba and Dave
will check out both those options and you are right dave any input is better than none!!<img src=../images/dmxzone/forum/icon_smile_tongue.gif border=0 align=middle>
ASP|VBScript|IIS5.1|WinXPPro & WinXPHome
will check out both those options and you are right dave any input is better than none!!<img src=../images/dmxzone/forum/icon_smile_tongue.gif border=0 align=middle>
ASP|VBScript|IIS5.1|WinXPPro & WinXPHome
Replied 15 Oct 2002 01:57:59
15 Oct 2002 01:57:59 Dave Clarke replied:
downloaded that extension and it works by putting a javascript function in so you were both right Habahaba and Dave<img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>
working fine too.
thanks
Dave
ASP|VBScript|IIS5.1|WinXPPro & WinXPHome
working fine too.
thanks
Dave
ASP|VBScript|IIS5.1|WinXPPro & WinXPHome