|
I never understood this, why are most versions of this code just when you go to the PM page, why not when you press 'send'? If I wanted to PM the admin - I could bypass a popup by going to the New PM Page. Are people crazy?
|
|
|
|
I didn't think it was possible to cancel a PM when send was pressed? The message would still be surely sent even if you were taken back?
|
|
|
|
Nope. It's possible! Sending would invoke a PM to appear. Then a message: 'Are you sure you still want to send this message?' ... Yes/No If no - return false!
|
|
|
|
Do it then nub
|
|
|
|
If I still coded for PB, I would!
|
|
|
|
It's easily possible Wedge. document.postForm.onsubmit = function(){ if(document.postForm.to && document.postForm.to.value == "admin"){ return confirm("This guy hates you. Do you still want to send the PM?"); } } Not tested, but it should work.
|
|
|
|
|
Would you want to go through the effort of writing a PM, to find the person you wrote it for doesn't want to receive it when to try and send it? >.>
|
|
|
|
|
Would you want to go through the effort of writing a PM, to find the person you wrote it for doesn't want to receive it when to try and send it? >.> Then have it appear both times?
|
|
|
|
|
Have it appear on the onblur event of the to input
|
|
|
|
|
All 3? Can't you just do it when the person enters 'admin' into the 'To' field?
|
|
|
|
All 3? Can't you just do it when the person enters 'admin' into the 'To' field? Yup. Which would probably be best.
|
|
|
|
All 3? Can't you just do it when the person enters 'admin' into the 'To' field? Yep. Which is what Simie was saying. Check the "to" value on page load and then assign an onblur of the same function. Onblur events activate when they click outside of the "to" field (aka it loses focus)
|
|
|
|
|
If I still coded for PB, I would! You stopped coding?
|
|
|
|
|
If I still coded for PB, I would! You stopped coding? PB yes!
|
|
|
|
only noobs would quit PB coding.
|
|
|