![]() |
using javascript in admincp?
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. |
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. |
All times are GMT. The time now is 02:13 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|