Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:08

followscroll problem in NS 7.1


Poster: mckee __at__ newsstand.com
Dated: Tuesday September 30 2003 - 22:04:54 BST

I am getting the following error message when my menu reaches the bottom of the screen.

Error: uncaught exception: [Exception... "Not enough arguments [nsIDOMWindowInternal.alert]" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame :: http://mckeewwwn/js/mmenudom.js :: followScroll :: line 16" data: no]

The URL is not the licensed one but it is a development box within our company.

I would swear that with the free code I downloaded last week this worked fine. Granted I have tweaked several things since then so there is no guarantee that going back to that download would change things.

Shawn


Poster: John
Dated: Tuesday September 30 2003 - 22:57:07 BST

Not much we can do without a URL or at least code to look at :?

Do you have the latest release? RC13 has already been updated 4 or 5 times at least just today alone.


Poster: mckee __at__ newsstand.com
Dated: Wednesday October 1 2003 - 0:16:08 BST

Here is the code.

I haven't downloaded since this morning. So I gather that users are not notified when new minor releases happen?

I noticed that this error in NS seems to happen at the same place as the pop-ups start in IE.

<script language="JavaScript" type="text/javascript">
_menuCloseDelay=500 // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150 // The time delay before menus open on mouse over
_followSpeed=5 // Follow scrolling speed
_followRate=40 // Follow scrolling Rate
_subOffsetTop=5 // Sub menu top offset
_subOffsetLeft=-10 // Sub menu left offset
var showText = true;
var showTB = true;


with(menuStyle=new mm_style())
{
onbgcolor="lightgrey";
oncolor="black";
offbgcolor="lightgrey";
offcolor="black";
bordercolor="#296488";
borderstyle="solid";
borderwidth=1;
separatorcolor="#2D729D";
separatorsize="1";
padding=5;
fontsize="75%";
fontstyle="normal";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="black";
headercolor="#000000";
headerbgcolor="#ffffff";
subimage="/images/T_arrow.gif";
subimagepadding="2";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}
with(menuStyle2=new mm_style())
{
onbgcolor="lightgrey";
oncolor="black";
offbgcolor="lightgrey";
offcolor="black";
bordercolor="#296488";
borderstyle="solid";
borderwidth=1;
separatorcolor="lightgrey";
separatorsize="1";
padding=5;
fontsize="75%";
fontstyle="normal";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="black";
headercolor="#000000";
headerbgcolor="#ffffff";
subimage="/images/arrow.gif";
subimagepadding="2";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}

with(milonic=new menuname("Issues"))
{
style=menuStyle;
top=0;
left=0;
alwaysvisible=1;
orientation="horizontal";
followscroll="1";
if(showText)
{
itemwidth="100%";
aI("image=/images/ns-icon1.jpg;text=NewsStand;url=http://mckeewwwn;status=NewsStand;");
aI("image=/images/pref1.jpg;text=Preferences;showmenu=Prefs;status=Preferences;");

aI("image=/images/help1.jpg;text=Help;url=http://support.newsstand.com;target=_blank;status=Help;");
}
else
{
aI("image=/images/ns-icon1.jpg;url=http://mckeewwwn;status=NewsStand;");
aI("image=/images/pref1.jpg;showmenu=Prefs;status=Preferences;");

aI("image=/images/help1.jpg;url=http://support.newsstand.com;target=_blank;status=Help;");
}
}


with(milonic=new menuname("Prefs"))
{
style=menuStyle2;
aI("text=Edit Reader Settings;showmenu=settings;status=Reader Settings;separatorcolor=#2D729D");
aI("text=Account Information;url=/index.cfm?AccountSetting;");
aI("text=Account Settings;url=/index.cfm?AccountSetting;separatorcolor=#2D729D");
aI("image=/images/S_checkmark.jpg;text=Show Icons and Text;url=javascript:changeTextDisp();separatorcolor=#2D729D");
aI("text=Help;url=http://support.newsstand.com;target=_blank;status=Help;");
aI("text=Disable Toolbar;url=javascript:disable();");
}

with(milonic=new menuname("settings"))
{
style=menuStyle;
aI("text=Profile...;url=javascript:alert('Show Profile Window'):status=Reader Settings;");
aI("text=Download...;url=javascript:alert('Pop Download Options Window');");
aI("text=Viewer...;url=javascript:alert('Pop Viewer Options Window');");
aI("text=Media...;url=javascript:alert('Pop Media Options Window');");
aI("text=General...;url=javascript:alert('Pop General Options Window');");
aI("text=Server...;url=javascript:alert('Pop Server Options Window');");
aI("text=EDM Server...;url=javascript:alert('Pop EDM Server Options Window');");
aI("text=Message Manager...;url=javascript:alert('Pop Message Manager Options Window');");
aI("text=Advanced...;url=javascript:alert('Pop Advanced Options Window');");
}

with(milonic=new menuname("Search"))
{
style=menuStyle;
aI("text=<FORM METHOD=GET ACTION=javascript:rdrSearch(this) name=search><table><tr><td><input name=q size=11></td></tr><tr><td><input type=submit value=Search></td></tr></table></form>;type=form;align=center");
}

drawMenus();

function rdrSearch(frm)
{
alert(frm.document.search.q.value);
}
function changeTextDisp()
{
var url = "/";
if(url.indexOf("?") == -1)
window.location.href=url+"?showText="+!showText;
else if(url.indexOf("showText") == -1)
window.location.href=url+"&showText="+!showText;
else if(url.indexOf("showText=false") > -1)
window.location.href=url.replace("showText=false", "showText=true");
else
window.location.href=url.replace("showText=true", "showText=false");
}
function disable()
{
var url = "/";
if(url.indexOf("?") == -1)
window.location.href=url+"?showTB="+!showTB;
else if(url.indexOf("showTB") == -1)
window.location.href=url+"&showTB="+!showTB;
else if(url.indexOf("showTB=false") > -1)
window.location.href=url.replace("showTB=false", "showTB=true");
else
window.location.href=url.replace("showTB=true", "showTB=false");
}

</script>


Poster: Hergio
Dated: Wednesday October 1 2003 - 1:22:22 BST

(1) No, users are not currently notified of updates to the menu at the current time. This is because the menu is still in development (RC13 = release candidate 13) so it would be WAY too annoying to email everybody with every little change since there are still alot going on.

(2) You have this in your code frm.document.search.q.value
Does this work? Shouldnt it be just frm.search.q.value

(3)If you take out some of that javascript, does it work? I would try toning down the page slightly with regards to the javascript stuff and see if you can get it stable, and then add things incrementally and see where the error comes back into play.

followscroll in NS 7.1


Poster: mckee __at__ newsstand.com
Dated: Wednesday October 1 2003 - 14:56:14 BST

Latest RC seems to have cleared the problem.

When do you anticipate a gold version of the menu?

Re: followscroll in NS 7.1


Poster: John
Dated: Wednesday October 1 2003 - 19:38:31 BST

mckee __at__ newsstand.com wrote:
Latest RC seems to have cleared the problem.

Glad to hear it. I actually lost track of how many RC13s came out just yesterday. Nobody cares about his customers and his product like Andy does!
mckee __at__ newsstand.com wrote:
When do you anticipate a gold version of the menu?

Andy has listed only 2 remaining items he wants cleared before a final version. The way he's been pumping stuff out that could be a matter of just a few days.

followscroll in 7.1


Poster: mckee __at__ newsstand.com
Dated: Wednesday October 1 2003 - 20:08:41 BST

I realized I didn't comment on you question about the JavaScript :

alert(frm.document.search.q.value);

I would have thought that

alert(frm.search.q.value);

would be correct too but I get a an error "frm.search" has no properties when I do it that way.