Click here to Skip to main content
15,890,123 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: Account delete! Pin
Hakan Bulut18-May-13 3:07
Hakan Bulut18-May-13 3:07 
GeneralRe: Account delete! Pin
dusty_dex18-May-13 4:42
dusty_dex18-May-13 4:42 
AnswerRe: Account delete! Pin
Thomas Daniels18-May-13 4:53
mentorThomas Daniels18-May-13 4:53 
QuestionHow to show long message in pop up Pin
InderK16-May-13 21:56
InderK16-May-13 21:56 
QuestionScrollbar in div Pin
InderK16-May-13 4:01
InderK16-May-13 4:01 
AnswerRe: Scrollbar in div Pin
ZurdoDev21-May-13 10:32
professionalZurdoDev21-May-13 10:32 
Questionhow to access datasource for ListDropDown in java script Pin
mhd.sbt13-May-13 9:16
mhd.sbt13-May-13 9:16 
AnswerRe: how to access datasource for ListDropDown in java script Pin
Dennis E White13-May-13 18:29
professionalDennis E White13-May-13 18:29 
there is no concept of the datasource in javascript. your asp dropdown is rendered as an html select which is containing one or more option elements.

example:

HTML
<select>
    <option value="index1">Some Display Info</option>
    <option value="index2">Some More Display Info</option>
</select>


The code that you listed:
mehdi.sabet wrote:
myDropDown.DataSource=mydatatable;

is run server side where that HTML gets rendered and sent down to the clients browsers where it will be visually rendered for the user(s) to see. if you want access to all of the items in the dropdown you will have to get the select element and then iterate through its children.
as if the facebook, twitter and message boards weren't enough - blogged

AnswerRe: how to access datasource for ListDropDown in java script Pin
dusty_dex15-May-13 13:36
dusty_dex15-May-13 13:36 
GeneralRe: how to access datasource for ListDropDown in java script Pin
Dennis E White15-May-13 18:26
professionalDennis E White15-May-13 18:26 
GeneralRe: how to access datasource for ListDropDown in java script Pin
dusty_dex15-May-13 23:14
dusty_dex15-May-13 23:14 
GeneralRe: how to access datasource for ListDropDown in java script Pin
Dennis E White16-May-13 4:04
professionalDennis E White16-May-13 4:04 
GeneralRe: how to access datasource for ListDropDown in java script Pin
Dennis E White16-May-13 4:09
professionalDennis E White16-May-13 4:09 
GeneralRe: how to access datasource for ListDropDown in java script Pin
dusty_dex16-May-13 4:31
dusty_dex16-May-13 4:31 
QuestionWhy can't I click on any element in the class ? Pin
blksamurai10-May-13 10:46
blksamurai10-May-13 10:46 
AnswerRe: Why can't I click on any element in the class ? Pin
Dennis E White13-May-13 5:30
professionalDennis E White13-May-13 5:30 
Questionhow can i get shortDateString in java script Pin
mhd.sbt8-May-13 7:30
mhd.sbt8-May-13 7:30 
AnswerRe: how can i get shortDateString in java script Pin
Hakan Bulut8-May-13 8:06
Hakan Bulut8-May-13 8:06 
GeneralRe: how can i get shortDateString in java script Pin
mhd.sbt8-May-13 8:14
mhd.sbt8-May-13 8:14 
GeneralRe: how can i get shortDateString in java script Pin
Hakan Bulut8-May-13 21:24
Hakan Bulut8-May-13 21:24 
GeneralRe: how can i get shortDateString in java script Pin
mhd.sbt8-May-13 22:38
mhd.sbt8-May-13 22:38 
GeneralRe: how can i get shortDateString in java script Pin
Hakan Bulut10-May-13 7:09
Hakan Bulut10-May-13 7:09 
GeneralRe: how can i get shortDateString in java script Pin
mhd.sbt11-May-13 5:10
mhd.sbt11-May-13 5:10 
AnswerRe: how can i get shortDateString in java script Pin
dusty_dex8-May-13 23:27
dusty_dex8-May-13 23:27 
Questionis it possible? Pin
Hakan Bulut8-May-13 7:02
Hakan Bulut8-May-13 7:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.