PDA

View Full Version : AnyLink Vertical Menu (Back button bug)



Doll-Fin
06-26-2008, 08:07 PM
1) Script Title: AnyLink Vertical Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/anylinkvertical.htm

3) Describe problem: I installed an "AnyLink Vertical Menu" script in a site I am building. I also added the features of the "domroll" from the script found at http://www.dynamicdrive.com/dynamicindex15/domroll.htm so that way I can get an image rollover along with the drop down menu. The problem is that when there are more than six sub menu items under a link button that you navigate to, then you hit your back button on the browser page (mine is ie7), it tears up the appearance of the page you went back to until you hit your refresh button. I have been fighting this for days until I tried removing some ot the sub menu items and then found it works good with six or less, messes up with seven or more on the page you navigate to when back button it pressed. Any suggestions on how to fix this bug.

ddadmin
06-27-2008, 04:35 PM
Please post a link to the page on your site that contains the problematic script so we can check it out.

Doll-Fin
06-29-2008, 11:48 PM
http://www.littlefillydfs.com/test/index.html

I uploaded all to a test space I have. When you are at the home page, hit the personal banking button, then hit your back button on your IE7 browser, same with business banking. I took the Banking conveniences page source (which works good) and saved it as personal banking and then personal banking page still bugged when hitting the browser back button. I am lost.

ddadmin
07-02-2008, 03:33 AM
I see what you're saying. One thing you can do is explicitly get the sub menu to hide when the anchor link is clicked on. In the case of the personal banking link for example, you'd add the part in red:


<a href="http://www.littlefillydfs.com/test/personalbanking.html" onmouseover="dropdownmenu(this, event, menu2, '190px')" onmouseout="delayhidemenu()" onclick="hidemenu()"><img src="buttons/personalbanking.gif" src="style_files/personalbanking.gif" class="domroll buttons/personalbanking1.gif" border="0"></a>

Doll-Fin
07-02-2008, 12:59 PM
No luck, didn't work. I don't understand why it is only the business and personal pages that this is happening with. Stumped on that one. I thought it might be positioning since I saved the conveniences page code as personal page at one time and new personal page even messed up when conveniences page works good.

ddadmin
07-02-2008, 07:53 PM
Are you sure what I posted doesn't work for you? I saved a local copy of your page, added the above in red, then clicked on the image. Clicking "back" to return to that page, the drop down menu is hidden by default.


No luck, didn't work. I don't understand why it is only the business and personal pages that this is happening with.

In general if the current page (A) and destination page (B) contains the exact same layout, at least where the user's mouse is when clicking through from A to B, then the browser may still think the mouse is over page A's anchor link, even though it's actually on page B's anchor link once clicked through.

Doll-Fin
07-08-2008, 02:13 PM
If you go to the home page, just for grins click on the home button again. Then click on the fourth button which is Personal Banking, wait till that page comes up, ignore the slide out menu. Now click on the "browser" back button. I get a screen like attached bugpic1.gif. If I go from home to business banking then browser back button, I get bugpic2.gif.