Jump to content

list under list


shamsuljewel

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/85796-list-under-list/
Share on other sites

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....

Link to comment
https://forums.phpfreaks.com/topic/85796-list-under-list/#findComment-439612
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.