...

View Full Version : Need help with form submit...



StealthRT
11-07-2006, 06:52 AM
Hello all i need help in automating this webmail script of mine. I need it to just act as a submit button once the page has loaded. However, it does not seem to work when i have the onload command in the body. But it DOES work when i simply click on the submit button... I've even tried a timer but still has the same results... what gives?


<BODY BGCOLOR="#e8e8e8" onload="document.FrmLogin.submit()">
<form name="FrmLogin" method="post" action="login.aspx" id="FrmLogin">
<input type="hidden" name="__VIEWSTATE" value="dDwtMTM3NTQ1MDg0OTt0PDtsPGk8MT47aTwzPjs+O2w8dDw7bDxpPDA+Oz47bDx0PHA8bDxUZXh0Oz47bDxcPExJTksgUkVMPSJz dHlsZXNoZWV0IiBUWVBFPSJ0ZXh0L2NzcyIgSFJFRj0iL01lV2VibWFpbC9lbnRlcnByaXNlL3NraW5zL2VudGVycHJpc2UvbWUu Y3NzIiBcPiA7Pj47Oz47Pj47dDw7bDxpPDA+O2k8MT47aTwyPjtpPDQ+O2k8Nj47aTw3PjtpPDg+O2k8OT47aTwxMD47aTwxMT47 aTwxMj47PjtsPHQ8O2w8aTwwPjs+O2w8dDxwPGw8VGV4dDs+O2w8XDxJTUcgc3JjPScvTWVXZWJtYWlsL2VudGVycHJpc2Uvc2tp bnMvZW50ZXJwcmlzZS9sb2dpbi13aW5kb3dfbG9nby5naWYnXD47Pj47Oz47Pj47dDw7bDxpPDA+Oz47bDx0PHA8bDxUZXh0Oz47 bDxQbGVhc2UgZW50ZXIgeW91ciBVc2VybmFtZSBhbmQgUGFzc3dvcmQgdG8gbG9nIG9uLjs+Pjs7Pjs+Pjt0PDtsPGk8MD47Pjts PHQ8cDxsPFRleHQ7PjtsPFVzZXJuYW1lOjs+Pjs7Pjs+Pjt0PDtsPGk8MD47PjtsPHQ8cDxsPFRleHQ7PjtsPFBhc3N3b3JkOjs+ Pjs7Pjs+Pjt0PDtsPGk8MD47PjtsPHQ8cDxsPFRleHQ7PjtsPFNraW46Oz4+Ozs+Oz4+O3Q8dDw7dDxpPDM+O0A8QmFzaWM7RGVz ZXJ0O0VudGVycHJpc2U7PjtAPEJhc2ljO0Rlc2VydDtFbnRlcnByaXNlOz4+Oz47Oz47dDw7bDxpPDA+Oz47bDx0PHA8bDxUZXh0 Oz47bDxMYW5ndWFnZTo7Pj47Oz47Pj47dDx0PHA8cDxsPERhdGFWYWx1ZUZpZWxkO0RhdGFUZXh0RmllbGQ7PjtsPEtleTtWYWx1 ZTs+Pjs+O3Q8aTw1PjtAPEdlcm1hbjtFbmdsaXNoO1NwYW5pc2g7RnJlbmNoO0l0YWxpYW47PjtAPGRlO2VuO2VzO2ZyO2l0Oz4+ O2w8aTwxPjs+Pjs7Pjt0PHA8cDxsPFRleHQ7PjtsPExvZ2luOz4+Oz47Oz47dDxwPHA8bDxUZXh0Oz47bDxSZW1lbWJlciBteSBz ZXR0aW5ncyBmb3IgdGhpcyBjb21wdXRlcjs+Pjs+Ozs+O3Q8O2w8aTwwPjs+O2w8dDxwPGw8VGV4dDs+O2w8JmNvcHlcOyBNYWls RW5hYmxlIFB0eS4gTHRkLiwgMjAwMS0yMDA2LiBBbGwgcmlnaHRzIHJlc2VydmVkLlw8QlJcPlRoaXMgY29tcHV0ZXIgcHJvZ3Jh bSBpcyBwcm90ZWN0ZWQgYnkgY29weXJpZ2h0IGxhdyBhbmQgaW50ZXJuYXRpb25hbCB0cmVhdGllcy5cPEJSXD5VbmF1dGhvcml6 ZWQgcmVwcm9kdWN0aW9uIG9yIGRpc3RyaWJ1dGlvbiBvZiB0aGlzIHByb2dyYW0sIG9yIGFueSBwb3J0aW9uIG9mIGl0LFw8QlJc Pm1heSByZXN1bHQgaW4gc2V2ZXJlIGNpdmlsIGFuZCBjcmltaW5hbCBwZW5hbHRpZXMuOz4+Ozs+Oz4+Oz4+Oz4+O2w8Y2hrUmVt ZW1iZXI7Pj4=" />
<CENTER>
<div align="center"><b> Username:</b>
<input name="txtUsername" type="hidden" class="ME_Input" id="txtUsername" style="width:170px" value="ME@aol.com" />
<b> <br>
Password:</b>
<input name="txtPassword" type="hidden"" class="ME_Input" id="txtPassword" style="width:170px" value="XXXXXXX" />
<b><br>
Skin:</b><b>
<select name="ddlSkins" id="ddlSkins" style="display: none;"><option selected="selected" value="Enterprise">Enterprise</option></select>
</b> <b><br>
Language:</b><b>
<select name="ddlLanguages" id="ddlLanguages" style="display: none;"><option selected="selected" value="en">English</option></select>
<br>
<input type="submit" name="btnLogin" value="Login" id="btnLogin" class="ME_LoginButton" style="CURSOR:pointer" />
</div>
</CENTER>
</form>

Any help would be great! :)

David



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum