Click "SUBMIT" and have the button disabled???

This forum is now closed as part of retiring phpBB2.
Forum rules
READ: Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
Post Reply
Registered User
Posts: 76
Joined: Wed May 05, 2004 8:54 pm

Click "SUBMIT" and have the button disabled???

Post by itsallgood »

Hi guys, i've looked in the .tpl file for posting.php

And notice this:

formObj.submit.disabled = true;

Is there anway to make the button become disabled in a grayed out sense (alla ebay), where the buttons text turns to "please wait..." and you cannot click it?

I would love somthing simple that could just be put into the checkForm function

Cheers guys.
Former Team Member
Posts: 1146
Joined: Thu Jul 22, 2004 6:30 pm
Location: Éire

Post by Manipe »

In posting_body.tpl, find this:

Code: Select all

		//formObj.preview.disabled = true;
		//formObj.submit.disabled = true;
		return true;
Uncomment out the two lines (Only the second one if you want to have the preview button clickable. Then add this BEFORE the "return true;"

Code: Select all

formObj.submit.value = 'Please wait...';
This will change the text from submit to Please wait. I suggest adding a language variable, to improve combatilbility accross langs.
My MODs: [ Topics a user has started ] , [ Profile views ] , [ Colour on poll results ] , [ Topic posters ] , [ Add number to PM ] , [ Default avatar ] , [ View category name ] , [ Null vote ] , [ Forum description in viewforum ] , [ Resync forum ids ] , [ View PM while replying ] , [ Quick poll insert ] , [ Limit login attempts ] , [ Track PMs ]
Post Reply

Return to “[2.0.x] MOD Writers Discussion”