What do you do with this line of code?
menunum=0;menus=new Array();_d=document;function addmenu(){menunum++;menus[menunum]=menu;}function dumpmenus(){mt="<script language=javascript>";for(a=1;a<menus.length;a++){mt+=" menu"+a+"=menus["+a+"];"}mt+="<\/script>";_d.write(mt)}
Thanks
I left it ...
Search found 3 matches
- Tue Jun 11, 2002 7:59 pm
- Forum: Archived Topics for the old Version 3.0 JavaScript Menu
- Topic: Creating menu from db using .asp
- Replies: 6
- Views: 6403
- Mon Jun 10, 2002 7:29 pm
- Forum: Archived Topics for the old Version 3.0 JavaScript Menu
- Topic: Creating menu from db using .asp
- Replies: 6
- Views: 6403
Re: what were the first step you took?
what were the first step you took? I am basicly trying to do the same thing with a SQL database, but I am not quite sure what I need to do to get it started... The steps you took would be helpful :?:
I'm not sure if you were asking me or not (but I'm responding anyway ;) )
Here are the steps ...
I'm not sure if you were asking me or not (but I'm responding anyway ;) )
Here are the steps ...
- Thu May 23, 2002 9:31 pm
- Forum: Archived Topics for the old Version 3.0 JavaScript Menu
- Topic: Creating menu from db using .asp
- Replies: 6
- Views: 6403
Re: Creating menu from db using .asp
The problem comes when I incorporate a loop to use all the elements from a recordset.
For instance
<%
for i = 1 to 5
Response.Write(" ,""<img src=newsimage.gif border=0> " & NS("org_name") & """,""" & NS("org_url") & """,,,1")
NS.MoveNext
next i
%>
doesn't work (I get a scripting error ...