Recently using Thinksns Discovery with $this->success (' mes ', ' url '), unable to achieve jump, think it is also used TP frame up, which makes me very depressed. And then I looked at the source file,
<script>/** * Global Variables */var SITE_URL = ' <php> echo site _url;</php> ';var upload_url= ' <php> echo UPLOAD_URL;</php> ';var theme_url = ' __theme__ ';var appname = ' <php> echo app_ Name;</php> ';var mid = ' <php> echo $mid;</php> '; var uid = ' <php> echo $uid;</php> ';var initnums = ' <php> echo $initNums;</php> ';var sys_version = ' <php> echo $site [" Sys_version "];</php> '// js language variable Var lang = new array (); Function Jump () { window.location.href = ' {$jumpUrl} ';} Document.onload = settimeout ("Jump ()" , {$waitSecond}* +);</script>
Originally it made a simple modification to the success of TP,
Window.location.href = ' {$jumpUrl} ';
That is, when you have finished prompting the message, you must do so to jump to the specified page:
$this->assign (' Jumpurl ', U (' url ', array (' post_id ' = ') '), $this->success (' Publish successful ');
Then you can also specify the time to jump:
Document.onload = SetTimeout ("Jump ()", {$waitSecond}* 1000);
Also with assign ();
All right, that's it!! Little knowledge, great use!
do not accumulate kuibu, not even thousands of miles, no small stream, no to become Jianghai.
Thinksns unsuccessful operation failed jump