mathaw01 Posted May 15, 2013 Share Posted May 15, 2013 I added 3 tabs in clientareaproductdetails.tpl , I would like when I do post back submit on tab number 3 to return on repost to tab number 3 (set focus on tab3)... how can I do it ? 0 Quote Link to comment Share on other sites More sharing options...
synik4l Posted May 15, 2013 Share Posted May 15, 2013 i dont know how well versed you are with php and jquery. and im also not sure if your talking about jquery tabs or not. But if i were you id use: header("Location: http://blah.com/billing/?success=true"); or something similar. That value doesnt have to be the same. Just something you can check for. This goes in the php file that loads that template. And then id use the location object in javascript to read the query string upon page load. And if that value is there. Then use jquery(granted you are using jquery tabs) and use the selection methods on here http://api.jqueryui.com/tabs/?rdfrom=http%3A%2F%2Fdocs.jquery.com%2Fmw%2Findex.php%3Ftitle%3DUI%2FAPI%2F1.8%2FTabs%26redirect%3Dno 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.