Results 1 to 3 of 3

Thread: Smooth Navigational Menu - First Item/Anchor Tag Fires on Page Load.

  1. #1
    Join Date
    May 2012
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Smooth Navigational Menu - First Item/Anchor Tag Fires on Page Load.

    1) Script Title: Smooth Navigational Menu (v1.5)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...smoothmenu.htm

    3) Describe problem: First menu item/anchor tag fires upon page load.

    I define my navigational menu postion/structure, as you see here:
    HTML Code:
    <div id="smoothmenu1" class="ddsmoothmenu" style="position:absolute;left:0px;top:0px;width:100%;">
    <ul>
    <li><a href="#"  onclick="sub_form('app/welcome.fex'); return false;">Home</a></li>
    <li><a href="#">Reports</a>
      <ul>
      <li><a href="#"  onclick="sub_form('app/report1.fex'); return false;">Report 1</a></li>
      <li><a href="#"  onclick="sub_form('app/report2.fex'); return false;">Report 2</a></li>
      </ul>
    </li>
    </ul>
    <br style="clear: left" />
    </div>
    My problem is that the first menu item anchor tag (Home) fires the sub_form JavaScript function upon a page load.

    This scenario occurs on a sporadic basis.

    I know that this is happening, because I can see the results of the execution of the function in Fiddler2.

    Is there some issue with how I've created the menu items?

    Does Smooth Menu have a feature of automatically running the first item, that I am unintentially setting?

    Thanks you for your assistance,
    Dave

  2. #2
    Join Date
    Mar 2011
    Location
    N 11 19' 0.0012 E 142 15' 0
    Posts
    1,591
    Thanks
    57
    Thanked 99 Times in 97 Posts
    Blog Entries
    4

    Default

    Do you have a live link so we can check out the problematic page?

    The fact that it's only happening sometimes suggests an external factor.....
    Posting Tips + FAQ | Issues? Feel free to PM me
    - keyboard1333[at]gmail[dot]com

  3. The Following User Says Thank You to keyboard For This Useful Post:

    DBriars (05-04-2012)

  4. #3
    Join Date
    May 2012
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thank you for your comment.

    You are correct, it was something external, outside of the page itself.

    The browser was firing off a cached copy of the url, created in a prior run of the menu page, upon page load.

    We now prevent this from happening, and all is well.

    Thanks again,
    Dave

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
  •