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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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