Thinksns unsuccessful operation failed jump

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.