User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP section within the Web Development category of DaniWeb, a massive community of 402,693 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,483 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP advertiser: Lunarpages ASP Web Hosting

using VbScript object in javascript..

Join Date: Apr 2008
Posts: 13
Reputation: VidVB6 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
VidVB6 VidVB6 is offline Offline
Newbie Poster

using VbScript object in javascript..

  #1  
Apr 30th, 2008
Hi

I have a collection in VbScript (on an asp page) named coll
The UI of the ASP page has dropdown thats is to be populated based on the iteration I do in the collection "coll"
I iterate it based on it s count...but How to I add each of its item into the dropdown??
adding it to dropdown is to be done in javascript(it is not client side)...
so can anyone tell me how do I get each item of the "coll" collection & add it to the dropdwn?
i tried something like this....
<%
dim objGetComm 
dim coll 
dim itemcomm 
set objGetComm=server.CreateObject("GetComm3.GetComm3Mod") 'object of GetComm3.dll
set coll=server.CreateObject("scripting.dictionary")
set coll=objGetComm.GetComm3Mod 'calling the specific function of the dll
for i=0 to coll.Count -1
  set coll.Item=itemcomm
 
%>
<script language=javascript>
document.Frm1eRoom.cboComm.add(<%=itemcomm%>)
</script>
<%next%>

This gives me error at red line
can anyone tell me how to resolve this?..pls
AddThis Social Bookmark Button
Reply With Quote  
All times are GMT -4. The time now is 5:33 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC