Hi,
I setup the Ajax Nest Tabs Content successful and it works fine. However, I have problem that the tabs are disappeared after submitted to another page.
1. My first main.asp page contains the main tabs, when I click Information, it will trigger another page called Mainsub.asp has nested tabs.
2. My Mainsub.asp has this code to links to different page.Code:<body> <h3><a href="#" rel="#default" class="selected"></a></h3> <ul id="countrytabs" class="shadetabs"> <li><a href="#" rel="#default" class="selected"></a></li> <li><a href="MainSub.asp" rel="countrycontainer">Information</a></li> <li><a href="external3.htm" rel="countrycontainer">Skill Set</a></li> <li><a href="external4.htm" rel="#iframe">Skill Matrix</a></li> <li><a href="http://www.dynamicdrive.com">Search</a></li> </ul> <div id="countrydivcontainer" class="custombody" style="border:1px; width:90%; height:auto margin-bottom: 1em; background:#FFFFFF padding: 10px"> <script type="text/javascript"> var countries=new ddajaxtabs("countrytabs", "countrydivcontainer") countries.setpersist(true) countries.setselectedClassTarget("link") //"link" or "linkparent" countries.init() countries.onajaxpageload=function(pageurl){ if (pageurl.indexOf("MainSub.asp")!=-1){ var provinces=new ddajaxtabs("provincetabs", "provincedivcontainer") provinces.setpersist(true) provinces.setselectedClassTarget("link") //"link" or "linkparent" provinces.init() } } </script> </body>
The problem is the AddTech.asp page is adding record into database, and after that it response.redirect to another page call AddTechResult.asp to inform that record has been inserted successful. This is when I lost all the tabs.Code:<body> <h3><a href="#" rel="#default" class="selected"></a></h3> <ul id="provincetabs" class="steven1"> <li><a href="Techlist.asp" rel="provincedivcontainer">Tech List</a></li> <li><a href="AddTech.asp" rel="provincedivcontainer">Add Tech</a></li> <li><a href="external4.htm" rel="#iframe">Test3</a></li> <li><a href="http://www.dynamicdrive.com">Test4</a></li> </ul> <div id="provincedivcontainer" class="custombody" style="border:1px; width:90%; height:auto margin-bottom: 1em; background:#FFFFFF padding: 10px"> </body>
Is there a way to make the AddTechResult.asp stay in the same frame of the previous page (AddTech.asp).
Thanks in advance,



Reply With Quote

Bookmarks