Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / JScript / April 2004

Tip: Looking for answers? Try searching our database.

Newb jscript question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Zach Wells - 12 Apr 2004 16:33 GMT
I may be in the wrong forum for this question, but due to my lack of
understanding of jscript, I don't know where else to post it. ;)

I was attempting to do something in javascript, and now I'm trying
jscript and I must just be missing something obvious because I know it
can't be this difficult.

I have an ASP.net project using vb.net. It has a listbox control and a
button. All I want to do is know how to cycle through all the selected
items on the listbox in some javascript/jscript/whatever on the client
side. The problem I'm having is that since my listbox is an asp control,
I don't see it in the javascript side (i.e. when I do document.form1. I
don't see listBox).

How do you do this? Moreover, is there a good resource that explains how
you integrate javascript/jscript into asp.net applications? I'm having a
hell of a time finding anything on it in the docs. It seems like MS
assumes that once you use .net you'll not need or want to do any
client-side scripting. :-/

Thanks!
Zach
Jim M - 17 Apr 2004 03:40 GMT
contact_count = document.getElementById("dropContacts").length

for (var i=0;i<contact_count;i++) {

   document.getElementById("dropHTMLContacts").options(i).value = x

   document.getElementById("dropHTMLContacts").options(i).text = y

}

> I may be in the wrong forum for this question, but due to my lack of
> understanding of jscript, I don't know where else to post it. ;)
[quoted text clipped - 18 lines]
> Thanks!
> Zach

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.