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) 2 1014
Hi,
You can consider using the RegisterClientScriptBlock method for this requirement. Get all the links from the database in the codebehind and generate the scriptblock. Then use the RegisterClientScriptBlock method which emits this as a client side script.
Formore info refer to http://msdn.microsoft.com/library/de...BlockTopic.asp
The best
srini
For working with javascript in asp.net, check out this article, http://www.fawcette.com/vsm/2002_07/...default_pf.asp
--
Saravana
Microsoft MVP - ASP.NET www.extremeexperts.com
"Krest Kusten" <an*******@discussions.microsoft.com> wrote in message
news:84**********************************@microsof t.com... 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); This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: LC's No-Spam Newsreading account |
last post by:
I asked a couple of days ago about the following arrangement
(simplified). I made some progress using
netscape.security.PrivilegeManager.enablePrivilege but still have to ask
some further help.
...
|
by: Kirk Is |
last post by:
Hi there.
I'm trying to improve a simple javascript based graphics editor for
Atari 2600 games (long story) with better use of CSS and Javascript.
I'm a little weak on what CSS can and can't...
|
by: VA |
last post by:
I am using a JS library of functions that I include in my web page
using the usual
<script type="text/javascript" src=...>
method
Is there a way to automatically call one of my own functions...
|
by: chuck |
last post by:
Hi,
I am modifying some code from here
http://www.quirksmode.org/dom/domform.html
I have a div 'readroot' that I clone. I change the change the id and
name of the childnodes of 'readroot' to...
|
by: GaryB |
last post by:
Hi Guys,
I've been battling with this one for hours - I hope that you can help
me!
My code modifies the <aon a page, from a standard document link into
a link with a tailored onclick event.
...
|
by: AES |
last post by:
Can an HTML web page dynamically modify its own code?
(without resort to Java or any other non-HTML complexities)
That is, is there any provision in HTML such that a single
"Next" button on a...
|
by: tuxedo |
last post by:
I have a fixed html structure, where only one form and a simple select menu
will exist on an html page, as follows:
<form action="order" method="POST">
<select name="dinner">
<option...
|
by: IUnknown |
last post by:
Ok, we are all aware of the situation where modifying the folder
structure (adding files, folders, deleting files, etc) will result in
ASP.NET triggering a recompilation/restart of the application....
|
by: Sean |
last post by:
I have a situation whereby I need to modify the text string appearing on an
ASP button with some text derived from a Javascript function. But I am
unsure of the correct syntax to do so.
...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
| |