Loading ...
Sorry, an error occurred while loading the content.

YAHOO.widget.MenuModule POTENTIAL BUG - PLEASE HELP

Expand Messages
  • jeddah62
    Hello, This is a follow up posting to my previous post where I have noticed that when a menu item is clicked, it appears that the HTTP GET request for the page
    Message 1 of 2 , Jul 1, 2006
    • 0 Attachment
      Hello,

      This is a follow up posting to my previous post where I have noticed
      that when a menu item is clicked, it appears that the HTTP GET
      request for the page occurs TWICE for IE but not for FireFox. I
      first discovered this in an asp.net environment and it appears that
      it also occurs in a pure HTML env. I also added hyperlinks (non
      menu) to the same pages to examine if calling the pages via direct
      href caused the problem and it did not. I included my IIS logs for
      my test to show the multiple GET requests for each menu item click.

      I have created 3 html pages with the exact code from the Basic Menu
      Example
      http://developer.yahoo.com/yui/examples/menu/basicmenufrommarkup.html

      Test Environment
      ------------------
      Windows 2000 Server
      IIS 5.0
      IE 6.0.2800.1106

      Test Preconditions
      ------------------
      1. Verify IIS is logging and include the Referer.
      2. Stop IIS, delete current log file, Start IIS.
      3. Clear your browser cache

      Test Results - you will see 2 GET requests for htmlpage2.htm and 2
      for htmlpage3.htm, one of each is missing the referer url.
      ------------------
      2006-07-01 19:40:12 127.0.0.1 - 127.0.0.1 80
      GET /testjscript/htmlpage1.htm - 200 Mozilla/4.0+
      (compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0
      .50727) -
      2006-07-01 19:40:12 127.0.0.1 - 127.0.0.1 80
      GET /testjscript/YUI/reset/reset.css - 200 Mozilla/4.0+
      (compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0
      .50727) http://localhost/testjscript/htmlpage1.htm
      2006-07-01 19:40:12 127.0.0.1 - 127.0.0.1 80
      GET /testjscript/YUI/fonts/fonts.css - 200 Mozilla/4.0+
      (compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0
      .50727) http://localhost/testjscript/htmlpage1.htm
      2006-07-01 19:40:12 127.0.0.1 - 127.0.0.1 80
      GET /testjscript/YUI/grids/grids.css - 200 Mozilla/4.0+
      (compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0
      .50727) http://localhost/testjscript/htmlpage1.htm
      2006-07-01 19:40:12 127.0.0.1 - 127.0.0.1 80
      GET /testjscript/YUI/menu/assets/menu.css - 200 Mozilla/4.0+
      (compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0
      .50727) http://localhost/testjscript/htmlpage1.htm
      2006-07-01 19:40:12 127.0.0.1 - 127.0.0.1 80
      GET /testjscript/YUI/yahoo/yahoo.js - 200 Mozilla/4.0+
      (compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0
      .50727) http://localhost/testjscript/htmlpage1.htm
      2006-07-01 19:40:12 127.0.0.1 - 127.0.0.1 80
      GET /testjscript/YUI/event/event.js - 200 Mozilla/4.0+
      (compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0
      .50727) http://localhost/testjscript/htmlpage1.htm
      2006-07-01 19:40:12 127.0.0.1 - 127.0.0.1 80
      GET /testjscript/YUI/dom/dom.js - 200 Mozilla/4.0+
      (compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0
      .50727) http://localhost/testjscript/htmlpage1.htm
      2006-07-01 19:40:12 127.0.0.1 - 127.0.0.1 80
      GET /testjscript/YUI/container/container_core.js - 200 Mozilla/4.0+
      (compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0
      .50727) http://localhost/testjscript/htmlpage1.htm
      2006-07-01 19:40:12 127.0.0.1 - 127.0.0.1 80
      GET /testjscript/YUI/menu/menu.js - 200 Mozilla/4.0+
      (compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0
      .50727) http://localhost/testjscript/htmlpage1.htm
      2006-07-01 19:40:17 127.0.0.1 - 127.0.0.1 80
      GET /testjscript/htmlpage2.htm - 200 Mozilla/4.0+
      (compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0
      .50727) -
      2006-07-01 19:40:17 127.0.0.1 - 127.0.0.1 80
      GET /testjscript/htmlpage2.htm - 200 Mozilla/4.0+
      (compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0
      .50727) http://localhost/testjscript/htmlpage1.htm
      2006-07-01 19:40:19 127.0.0.1 - 127.0.0.1 80
      GET /testjscript/htmlpage3.htm - 200 Mozilla/4.0+
      (compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0
      .50727) -
      2006-07-01 19:40:19 127.0.0.1 - 127.0.0.1 80
      GET /testjscript/htmlpage3.htm - 200 Mozilla/4.0+
      (compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0
      .50727) http://localhost/testjscript/htmlpage2.htm
      -------------------------------------

      I have made every attempt to make this a simple yet valid test. I
      will be glad to forward my test project to anyone to see if they can
      duplicate my findings. I am somewhat new to jscript and would be
      thrilled if someone would tell me what I'm doing wrong so I can move
      on. This will be my last posting for this issue and I will be forced
      to find another solution. I really like the toolkit but cannot spend
      any more time on this issue.

      Any help, insight, criticism, or feedback is greatly appreciated,
      Brian
    • Todd Kloots
      Hey Brian - Your bug is a valid one and will be fixed in the next release. If you can t wait until then, you can fix this issue yourself by opening up menu.js
      Message 2 of 2 , Jul 5, 2006
      • 0 Attachment
        Hey Brian -

        Your bug is a valid one and will be fixed in the next
        release. If you can't wait until then, you can fix
        this issue yourself by opening up menu.js in the
        "build" directory and change line 1368 from this:

        else if(!bCurrentPageURL) {

        to this:

        else if(oTarget.tagName != "A" && !bCurrentPageURL) {

        Let me know if you're still having problems after
        putting in that fix.

        Thanks again.

        - Todd


        --- jeddah62 <bb@...> wrote:

        > Hello,
        >
        > This is a follow up posting to my previous post
        > where I have noticed
        > that when a menu item is clicked, it appears that
        > the HTTP GET
        > request for the page occurs TWICE for IE but not for
        > FireFox. I
        > first discovered this in an asp.net environment and
        > it appears that
        > it also occurs in a pure HTML env. I also added
        > hyperlinks (non
        > menu) to the same pages to examine if calling the
        > pages via direct
        > href caused the problem and it did not. I included
        > my IIS logs for
        > my test to show the multiple GET requests for each
        > menu item click.
        >
        > I have created 3 html pages with the exact code from
        > the Basic Menu
        > Example
        >
        http://developer.yahoo.com/yui/examples/menu/basicmenufrommarkup.html
        >
        > Test Environment
        > ------------------
        > Windows 2000 Server
        > IIS 5.0
        > IE 6.0.2800.1106
        >
        > Test Preconditions
        > ------------------
        > 1. Verify IIS is logging and include the Referer.
        > 2. Stop IIS, delete current log file, Start IIS.
        > 3. Clear your browser cache
        >
        > Test Results - you will see 2 GET requests for
        > htmlpage2.htm and 2
        > for htmlpage3.htm, one of each is missing the
        > referer url.
        > ------------------
        > 2006-07-01 19:40:12 127.0.0.1 - 127.0.0.1 80
        > GET /testjscript/htmlpage1.htm - 200 Mozilla/4.0+
        >
        (compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0
        > .50727) -
        > 2006-07-01 19:40:12 127.0.0.1 - 127.0.0.1 80
        > GET /testjscript/YUI/reset/reset.css - 200
        > Mozilla/4.0+
        >
        (compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0
        > .50727) http://localhost/testjscript/htmlpage1.htm
        > 2006-07-01 19:40:12 127.0.0.1 - 127.0.0.1 80
        > GET /testjscript/YUI/fonts/fonts.css - 200
        > Mozilla/4.0+
        >
        (compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0
        > .50727) http://localhost/testjscript/htmlpage1.htm
        > 2006-07-01 19:40:12 127.0.0.1 - 127.0.0.1 80
        > GET /testjscript/YUI/grids/grids.css - 200
        > Mozilla/4.0+
        >
        (compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0
        > .50727) http://localhost/testjscript/htmlpage1.htm
        > 2006-07-01 19:40:12 127.0.0.1 - 127.0.0.1 80
        > GET /testjscript/YUI/menu/assets/menu.css - 200
        > Mozilla/4.0+
        >
        (compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0
        > .50727) http://localhost/testjscript/htmlpage1.htm
        > 2006-07-01 19:40:12 127.0.0.1 - 127.0.0.1 80
        > GET /testjscript/YUI/yahoo/yahoo.js - 200
        > Mozilla/4.0+
        >
        (compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0
        > .50727) http://localhost/testjscript/htmlpage1.htm
        > 2006-07-01 19:40:12 127.0.0.1 - 127.0.0.1 80
        > GET /testjscript/YUI/event/event.js - 200
        > Mozilla/4.0+
        >
        (compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0
        > .50727) http://localhost/testjscript/htmlpage1.htm
        > 2006-07-01 19:40:12 127.0.0.1 - 127.0.0.1 80
        > GET /testjscript/YUI/dom/dom.js - 200 Mozilla/4.0+
        >
        (compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0
        > .50727) http://localhost/testjscript/htmlpage1.htm
        > 2006-07-01 19:40:12 127.0.0.1 - 127.0.0.1 80
        > GET /testjscript/YUI/container/container_core.js -
        > 200 Mozilla/4.0+
        >
        (compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0
        > .50727) http://localhost/testjscript/htmlpage1.htm
        > 2006-07-01 19:40:12 127.0.0.1 - 127.0.0.1 80
        > GET /testjscript/YUI/menu/menu.js - 200 Mozilla/4.0+
        >
        (compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0
        > .50727) http://localhost/testjscript/htmlpage1.htm
        > 2006-07-01 19:40:17 127.0.0.1 - 127.0.0.1 80
        > GET /testjscript/htmlpage2.htm - 200 Mozilla/4.0+
        >
        (compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0
        > .50727) -
        > 2006-07-01 19:40:17 127.0.0.1 - 127.0.0.1 80
        > GET /testjscript/htmlpage2.htm - 200 Mozilla/4.0+
        >
        (compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0
        > .50727) http://localhost/testjscript/htmlpage1.htm
        > 2006-07-01 19:40:19 127.0.0.1 - 127.0.0.1 80
        > GET /testjscript/htmlpage3.htm - 200 Mozilla/4.0+
        >
        (compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0
        > .50727) -
        > 2006-07-01 19:40:19 127.0.0.1 - 127.0.0.1 80
        > GET /testjscript/htmlpage3.htm - 200 Mozilla/4.0+
        >
        (compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0
        > .50727) http://localhost/testjscript/htmlpage2.htm
        > -------------------------------------
        >
        > I have made every attempt to make this a simple yet
        > valid test. I
        > will be glad to forward my test project to anyone to
        > see if they can
        > duplicate my findings. I am somewhat new to jscript
        > and would be
        > thrilled if someone would tell me what I'm doing
        > wrong so I can move
        > on. This will be my last posting for this issue and
        > I will be forced
        > to find another solution. I really like the toolkit
        > but cannot spend
        > any more time on this issue.
        >
        > Any help, insight, criticism, or feedback is greatly
        > appreciated,
        > Brian
        >
        >
        >
        >
        >
        >
        > ------------------------ Yahoo! Groups Sponsor
        > --------------------~-->
        > Great things are happening at Yahoo! Groups. See
        > the new email design.
        >
        http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/edFolB/TM
        >
        --------------------------------------------------------------------~->
        >
        >
        >
        > Yahoo! Groups Links
        >
        >
        > ydn-javascript-unsubscribe@yahoogroups.com
        >
        >
        >
        >
        >
        >
        >
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.