Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 onSubmit needed 2 times is this possible?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 30 July 2002 :  19:30:18  Show Profile  Visit MaD2ko0l's Homepage
Hi all,
in post.asp on the about line 486 starting with <form action="post_info.asp" method="post" name i have got this on that line

<form action="post_info.asp" method="post" name="PostTopic" onSubmit="document.PostTopic.Submit.disabled=true;document.PostTopic.Submit.value='Please Wait...';">

now what i need to do is add this

onSubmit="return validateForm(this)"

to that line as well.
i need both then onSubmit functions to work.

is this possible??

MaD2ko0l

© 1999-2002 MaD2ko0l
Life Is So Easy When You Are Evil

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 30 July 2002 :  19:57:31  Show Profile
Combine the functions. First do the validation, which will in the end have a return true;. Add the other functions before the return true and it should work.

Roland

http://www.frutzle.com

Snitz Exchange | Snitz Icons | Do's and Dont's
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 31 July 2002 :  05:06:43  Show Profile  Visit MaD2ko0l's Homepage
uummm sorry but i am not good at doing the form things...any chance that u can show me wot it looks like??

i havent learnt this yet.

thankx

MaD2ko0l

© 1999-2002 MaD2ko0l
Life Is So Easy When You Are Evil
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 31 July 2002 :  14:28:41  Show Profile
if they're not too long, you should post the JavaScripts here, otherwise upload them in a .TXT file and post a link to it here.

Roland

http://www.frutzle.com

Snitz Exchange | Snitz Icons | Do's and Dont's
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 31 July 2002 :  15:53:22  Show Profile  Visit MaD2ko0l's Homepage
ok then...
this functin is wot i have got alrdy and that is all of the script

onSubmit="document.PostTopic.Submit.disabled=true;document.PostTopic.Submit.value='Please Wait...';">

now then the next one i need the onSubmit function to make this script work.
all thsat i need this to do is the function above and i want it to check the subject line to see if it is blank

http://www.northbirminghamtrollslayers.co.uk/validate.js.txt

there is the link to the .js script as a .txt form

MaD2ko0l

© 1999-2002 MaD2ko0l
Life Is So Easy When You Are Evil
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 31 July 2002 :  16:04:52  Show Profile
quote:

onSubmit="document.PostTopic.Submit.disabled=true;document.PostTopic.Submit.value='Please Wait...';">



This part of the JavaScript:
if (bDisable) Frm.Submit.disabled=true;
return true;
}

Could be changed to
Frm.Submit.disabled=true;
Frm.Submit.value='Please Wait...';
return true;
}

That should do the trick. Then you could remove the other onSubmit things from the form tag and when the form is submitted, it disables the submit button and changes the text on it.

Keep a backup of your curent files though as I'm not a JavaScript guru

Roland

http://www.frutzle.com

Snitz Exchange | Snitz Icons | Do's and Dont's
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 31 July 2002 :  16:55:25  Show Profile  Visit MaD2ko0l's Homepage
YAY!!!

thankx very much for ur help FurtZle i did it...i added the 1st part to the code where u said to add a part and thne it worked.

thankx very much

MaD2ko0l

© 1999-2002 MaD2ko0l
Life Is So Easy When You Are Evil
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 31 July 2002 :  16:58:12  Show Profile
I'm glad it worked... I'm learning too so it was more of a test to see if my theory worked

Roland

http://www.frutzle.com

Snitz Exchange | Snitz Icons | Do's and Dont's
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 31 July 2002 :  19:21:03  Show Profile  Visit MaD2ko0l's Homepage
yes...ok i saw a post soem time ago sayign that when u forget to put a subject in and press submit that u get the error then when u go back it clears all of the message that u typed so in a few days i will realse this on i just made and see how it goes.

MaD2ko0l

© 1999-2002 MaD2ko0l
Life Is So Easy When You Are Evil
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.52 seconds. Powered By: Snitz Forums 2000 Version 3.4.07