HighDots Forums  

Control Reference

Javascript JavaScript language (comp.lang.javascript)


Discuss Control Reference in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jonathan Wood
 
Posts: n/a

Default Control Reference - 07-02-2009 , 10:56 PM






Okay, I give up. I've tried searching every possible term I could think of.
But I cannot find a site that provides a reference to members of various
HTML controls.

In this particular case, I'm trying to read the value of the selected item
in a dropdownlist control. But I'm also interested in where one goes to find
this type of information on their own.

Thanks for any tips.

Jonathan


__________ Information from ESET Smart Security, version of virus signature database 4211 (20090702) __________

The message was checked by ESET Smart Security.

http://www.eset.com

Reply With Quote
  #2  
Old   
David Mark
 
Posts: n/a

Default Re: Control Reference - 07-02-2009 , 11:03 PM






On Jul 2, 10:56*pm, "Jonathan Wood" <jw... (AT) softcircuits (DOT) com> wrote:
Quote:
Okay, I give up.
Fair enough. I'll send an emissary with the terms.

Quote:
I've tried searching every possible term I could think of.
But I cannot find a site that provides a reference to members of various
HTML controls.
Properties of DOM objects? MSDN and MDC are a good start.

[snip]

Reply With Quote
  #3  
Old   
Thomas 'PointedEars' Lahn
 
Posts: n/a

Default Re: Control Reference - 07-02-2009 , 11:49 PM



Jonathan Wood wrote:
Quote:
Okay, I give up. I've tried searching every possible term I could think of.
By virtue of listing the used search terms here you could have been told if
they even made sense.

Quote:
But I cannot find a site that provides a reference to members of various
HTML controls.
You mean _properties_ of _HTML DOM objects_? In addition to what David
said, those can also be found in the W3C DOM Level 2 HTML Specification.
Only there they are named attributes and methods because the Spec defines
interfaces to be implemented by host objects.

As for the Mozilla Developer Center (MDC), last I checked the Gecko DOM
Reference there it was a bit scarce on form controls; you are better off
with XULPlanet or the XUL Reference and W3C DOM 2 HTML.

Quote:
In this particular case, I'm trying to read the value of the selected item
in a dropdownlist control. [...]
(There is no "dropdownlist control", there is a `select' element.)
Discussed here ad nauseam:

/* Reference to the `select' element object */
var s = ...;

s.options[s.selectedIndex]

Quote:
[borken sig]
It would be better for you to disable virus checking for sending text-only
Usenet messages if you can.


PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16

Reply With Quote
  #4  
Old   
Laser Lips
 
Posts: n/a

Default Re: Control Reference - 07-03-2009 , 05:11 AM



On Jul 3, 3:56*am, "Jonathan Wood" <jw... (AT) softcircuits (DOT) com> wrote:
Quote:
Okay, I give up. I've tried searching every possible term I could think of.

In this particular case, I'm trying to read the value of the selected item
in a dropdownlist control. But I'm also interested in where one goes to find
this type of information on their own.

Jonathan
Try 'get selected value javascript'

Graham Vincent

Reply With Quote
Reply




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.