I am yet a newbiee in JavaScript. I have this logic in mind. I do not know how to put it into action in JavaScript. If someone could help me..
1. First time the form is opened, Declare flag=true; Store this value of flag in the form during form load.
>>>> Then I press the submit button to save the form and it's values.
2. The second time the form is opened, it should check....... if flag=true, do this
<BODY style="margin:10px" onload="setTimeout('chkSubmit()',10000);" class="tabviewer">
and set flag=false.
3. Now when I open the same form again, Now since the flag=false it should just do
If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
Bored? Visit http://www.kaelisspace.com/
Where are you storing the flag info? Database, cookie, session...?
__________________
If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
Bored? Visit http://www.kaelisspace.com/