SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Member ngaisteve1's Avatar
    Join Date
    May 2003
    Location
    Kuala Lumpur, Malaysia (Boleh!)
    Posts
    264
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Collapse drop down menu problem

    I have some problems with my collapse drop down menu. The problem is when I go to another page and click the the collapse drop down menu, it direct me back to the default page.

    How do I make sure even when I am in other page, that collapse drop down menu still works, not just at the default page?

    You may try to go to About Us, Contact Us or Forum and click back the collapse drop down menu.

    Thanks. The link of my page is http://www.recruit.com.my/

    My code:

    Code:
    <tr><td><a href=./ class=Item onClick="processTree (0); return false;">Job Search</a></td></tr>
    <tr id='sub_0_1' class=SubItemRow><td width=150> <a href="">Quick Search</a></td></tr>
    <tr id='sub_0_2' class=SubItemRow><td width=150> Advance Search</td></tr>
    <tr id='sub_0_3' class=SubItemRow><td width=150> Job By Specialization</td></tr>				
    <tr><td><a href=./ class=Item onClick="processTree (1); return false;">Useful Link</a></td></tr>
    <tr id='sub_1_1' class=SubItemRow><td width=100> Career Advice</td></tr>
    <tr id='sub_1_2' class=SubItemRow><td width=100> Bank</td></tr>
    <tr id='sub_1_3' class=SubItemRow><td width=100> Work Law</td></tr>						
    <tr><td><a href="about_us.asp">Forum</a></td></tr>

  2. #2
    SitePoint Evangelist vikrantkorde's Avatar
    Join Date
    Jun 2004
    Location
    Mumbai, India
    Posts
    541
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi ngaisteve1,

    the site u r referring is not working. and the sniplet u have pasted here is also in complete so i am not clear what u want exactly.

    But if u want to keep the collapsed menu in the same state until it is changed then what u need to do is store the state in the cookie. on every page load hide/show the menu depend on the value in the cookie.

    let me know if this is what u was looking for.
    Vikrant Korde
    S Y S T I M E, Mhape,
    Mumbai, Maharashtra, India.

  3. #3
    Member ngaisteve1's Avatar
    Join Date
    May 2003
    Location
    Kuala Lumpur, Malaysia (Boleh!)
    Posts
    264
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The collapse dropdown menu is at the left, "Job Search", "Useful Link". I will think more of your solution, about using cookies. Thanks for the reply.

  4. #4
    Member ngaisteve1's Avatar
    Join Date
    May 2003
    Location
    Kuala Lumpur, Malaysia (Boleh!)
    Posts
    264
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's ok already. I realize what is the problem. I didn't insert my javascript in about_us.asp and contact_us.asp. Now it works fine. Thanks.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •