The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I'm working on a new product and it is going very well.
I've added my cpnav file and am working on my admin functions and I would like to use javascript to get a confirmation before something is deleted. I've tried printing that directly out, closing the php tags, etc, but I can't seem to get javascript from inside the admincp. for example, I've trried the following: PHP Code:
and also PHP Code:
In both cases when do == equipment I get the cp header, but no javascript is printed. |
#2
|
|||
|
|||
![]()
Not sure if it'd make a difference but have you tried return?
return "<script type=\"text/javascript\">alert('confirmation')</script>"; I'd recommend running the script out of PHP tags though.. it could be that the PHP is parsing the ending javascript semi-colon as the end of the PHP string. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|