shamsuljewel Posted January 13, 2008 Share Posted January 13, 2008 Hi I want to do this.. <ul><li onClick('a.php')><ul><li onclick('b.php')></li></ul></li></ul> The following and ajax function worked fine but the problem I am facing.. when clicked on the main <li> the a page comes...but when clicked on inner <li> another page b.php comes but after then the a.php comes. so what can i do? Quote Link to comment Share on other sites More sharing options...
shamsuljewel Posted January 15, 2008 Author Share Posted January 15, 2008 I better submit the code <UL class="select two" onClick="makeRequest('kiosk_user.php','content_main','','','two','');" id="tabtwo"> <LI> <A href="#"><B>Kiosk Users</B> <!--[if IE 7]><!--> </a> <!--<![endif]--> <!--[if lte IE 6]> <TABLE> <TBODY> <TR> <TD><![endif]--> <UL class=sub> <LI onClick="makeRequest('home.php','content_main','','','two','21');" id="tab21" class=""><A href="#">User Benifits</A></LI> <LI onClick="makeRequest('kiosk_user.php','content_main','','','two','22');" id="tab22" class=""><A href="#">User FAQs</A></LI> <LI onClick="makeRequest('kiosk_user.php','content_main','','','two','23');" id="tab23" class=""><A href="#">Help Desk</A></LI> <LI onClick="makeRequest('kiosk_user.php','content_main','','','two','24');" id="tab24" class=""><A href="#">Your Feedback</A> </LI> </UL> <!--[if lte IE 6]></TD></TR></TBODY></TABLE></A><![endif]--> </LI> </UL> When I clicked on the Kiosk User Tab(main tab) the kiosk_user.php page opens in content_main div....thats good. But When I clicked on the Sub list example on first sub tab user benefits that will also open the kiosk_user.php in content_main div....I figure out the problem that is when I clicked on the sub tab two onclick event actively work..at first the home.php on the sub tab opens on the content_main div then another onclick event occur and that is main tab so kiosk_user.php page shows at last on the content_main div....so how shoul I solved this problem? I want that the second onclick will not active.... 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.