The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Alert Error Popups
Hi All,
Several of my forms use error-checking. At the moment, I use the following PHP function to create Javascript Alert errors and call it whenever information is filled in incorrectly: Code:
function AlertError($message) { print("<script language='Javascript'>alert('" . $message . "')</script>"); } The above function gets executed with 'submit' buttons and works like it should when an error is detected. However, it displays the alert error over a new (blank white) page and then reverts back to the old page after the user hits 'OK'. It's pretty ugly-looking. What I want it to do is the same thing that vB Alert Errors do (see screenshot below). I deal entirely with PHP and HTML when working on my forum. I know absolutely nothing about AJAX or Javascript. What is the easiest way to make this Alert function pop up over the existing page without actually submitting the form? Thank You, OH |
#2
|
|||
|
|||
Isn't this a default feature of vBulletin?
|
#3
|
|||
|
|||
It is, but only for vBulletin's error messages, not my own.
Anyone have any suggestions? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|