Current location: Hot Scripts Forums » General Web Coding » JavaScript » Mixing Javascript with ASP


Mixing Javascript with ASP

Reply
  #1 (permalink)  
Old 06-17-04, 04:09 PM
noviceforever noviceforever is offline
Newbie Coder
 
Join Date: May 2004
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Mixing Javascript with ASP

Im using a table which can add rows dynamically.This is pure javascript.
However, first cell of each row, is a 'select' drop down menu, which has to be populated with entries from the database.So i have to use ASP to connect to the db, retrive the file with the values and pass on these numbers to the 'value' part of the 'select' element of each row.
How can I do this?
Reply With Quote
  #2 (permalink)  
Old 06-17-04, 11:36 PM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
I don't know ASP very well but I would try to print out all those values as a Javascript array first and then loop through it when each new row is added.
That way you'll only need to access the server once, unless there are different values for each new selectbox...
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
javascript menu covered by java applet shaisachs JavaScript 7 12-28-04 11:38 PM
Order of vbscript and javascript in ASP marlin ASP 0 06-03-04 03:01 PM
Can ASP check registry janice_2k ASP 0 05-31-04 03:28 AM
PHP integrated with ASP Mikeirv PHP 7 05-25-04 05:00 AM
Reaaly stuck about javascript over frames muratisik JavaScript 1 12-14-03 11:58 AM


All times are GMT -5. The time now is 10:24 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.