sweikert
10-18-2005, 02:32 PM
Hi guys,
I found your AnyLink scripts the other day, and love'em - but I'm looking to use them in a slightly different manner than 'normal'.
In the drop-down menu, one item is a 'delete' function - and in the past, I've had this link tied to a JS function that has a confirm() in it - i.e. a 'You sure you want to delete this?' style bit.
Now putting in "javascript:myDelFunction(x)" in the menu link array, instead of a normal URL, works fine up to a point. Hover over the menu, slide down to the item in question, click it - the confirm message comes up. And in IE 6, it works fine all the way through. But in Firefox (1.0.7 at least), after clicking the 'OK' confirm button, I get a JS error - 'b has no properties'. This seems to be in the function ' contains_ns6'. While trying to figure a workaround, I plopped in 'alert(b)' at the top of that function; when scrolling through the menu items, I'll get alerts with the contents of the link in question - but when clicking on my trouble menu item, the confirm comes up - I move the mouse off the menu to click 'OK' - and since I'm moving the mouse off the menu, the contains_ns6 function gets triggered again, and the alert comes up 'null'.
Any thoughts on a workaround for this issue?
Thanks much!
I found your AnyLink scripts the other day, and love'em - but I'm looking to use them in a slightly different manner than 'normal'.
In the drop-down menu, one item is a 'delete' function - and in the past, I've had this link tied to a JS function that has a confirm() in it - i.e. a 'You sure you want to delete this?' style bit.
Now putting in "javascript:myDelFunction(x)" in the menu link array, instead of a normal URL, works fine up to a point. Hover over the menu, slide down to the item in question, click it - the confirm message comes up. And in IE 6, it works fine all the way through. But in Firefox (1.0.7 at least), after clicking the 'OK' confirm button, I get a JS error - 'b has no properties'. This seems to be in the function ' contains_ns6'. While trying to figure a workaround, I plopped in 'alert(b)' at the top of that function; when scrolling through the menu items, I'll get alerts with the contents of the link in question - but when clicking on my trouble menu item, the confirm comes up - I move the mouse off the menu to click 'OK' - and since I'm moving the mouse off the menu, the contains_ns6 function gets triggered again, and the alert comes up 'null'.
Any thoughts on a workaround for this issue?
Thanks much!