Modifying a javascript...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hiye, i've got a javascript file *.js which i need to pass in some parameters to it so it can render it. heres the code..

if you notice the link, my actual intention is to query the link from the db and put it into the javascript below. i'm clueless on how this is to be done. anyhelp is appriciated..

Menu2=new Array("News","blank.htm","",2)
Menu2_1=new Array("General","blank.htm","",5,20,150);
Menu2_1_1=new Array("CNN","http://www.cnn.com","",0,20,150)
Menu2_1_2=new Array("ABCNews","http://www.abcnews.com","",0)
Menu2_1_3=new Array("MSNBC","http://www.msnbc.com","",0)
Menu2_1_4=new Array("CBSNews","http://www.cbsnews.com","",0)
Menu2_1_5=new Array("Canadian News","http://news.bbc.co.uk","",2)
Menu2_1_5_1=new Array("Vancouver Sun","http://www.vancouversun.com","",0,20,150)
Menu2_1_5_2=new Array("CTV News","http://www.ctvnews.com","",0)
Menu2_2=new Array("Technology","blank.htm","",3)
Menu2_2_1=new Array("TechWeb","http://www.techweb.com","",0,20,200)
Menu2_2_2=new Array("News.com","http://www.news.com","",0)
Menu2_2_3=new Array("Wired News","http://www.wired.com","",0)
 
For working with javascript in asp.net, check out this article,
http://www.fawcette.com/vsm/2002_07/magazine/columns/aspnet/default_pf.asp

--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com



Krest Kusten said:
hiye, i've got a javascript file *.js which i need to pass in some
parameters to it so it can render it. heres the code...
if you notice the link, my actual intention is to query the link from the
db and put it into the javascript below. i'm clueless on how this is to be
done. anyhelp is appriciated...
 
Back
Top