Click here to Skip to main content
15,886,362 members
Home / Discussions / JavaScript
   

JavaScript

 
QuestionDiv Create dynamic and click Pin
anishkannan5-Jul-11 1:48
anishkannan5-Jul-11 1:48 
AnswerRe: Div Create dynamic and click [modified] Pin
Manfred Rudolf Bihy6-Jul-11 2:20
professionalManfred Rudolf Bihy6-Jul-11 2:20 
QuestionI don't know why css name is initialization. Pin
buffering833-Jul-11 17:30
buffering833-Jul-11 17:30 
AnswerRe: I don't know why css name is initialization. Pin
Gerben Jongerius3-Jul-11 22:00
Gerben Jongerius3-Jul-11 22:00 
QuestionCapturing the ID of an Element Pin
ASPnoob29-Jun-11 5:10
ASPnoob29-Jun-11 5:10 
AnswerRe: Capturing the ID of an Element Pin
Not Active29-Jun-11 5:44
mentorNot Active29-Jun-11 5:44 
GeneralRe: Capturing the ID of an Element Pin
ASPnoob29-Jun-11 6:38
ASPnoob29-Jun-11 6:38 
GeneralRe: Capturing the ID of an Element Pin
Not Active29-Jun-11 6:54
mentorNot Active29-Jun-11 6:54 
It isn't really automatic but you can pass the id of the element to a function

<a id='someLink'></a>
<span id='someId' onclick="Foo('someLink')"/>

function Foo(id)
{
  document.getElementById(id);
}


or

<a id='someLink' onclick="Foo(this.id)"></a>


however this wouldn't make much sense as you already have the object represented by the this parameter and would not need to use getElementById

I know the language. I've read a book. - _Madmatt

AnswerRe: Capturing the ID of an Element Pin
twseitex29-Jun-11 9:05
twseitex29-Jun-11 9:05 
AnswerRe: Capturing the ID of an Element Pin
AspDotNetDev29-Jun-11 10:17
protectorAspDotNetDev29-Jun-11 10:17 
QuestionAndroid App Windows (NTLM) Authentication Pin
Colin Mullikin22-Jun-11 3:08
professionalColin Mullikin22-Jun-11 3:08 
GeneralRe: Android App Windows (NTLM) Authentication Pin
Colin Mullikin22-Jun-11 5:22
professionalColin Mullikin22-Jun-11 5:22 
Questiondocument.ready() and window.load() events don't fire Pin
benams21-Jun-11 4:41
benams21-Jun-11 4:41 
AnswerRe: document.ready() and window.load() events don't fire Pin
Not Active21-Jun-11 7:36
mentorNot Active21-Jun-11 7:36 
AnswerRe: document.ready() and window.load() events don't fire Pin
DaveAuld21-Jun-11 7:49
professionalDaveAuld21-Jun-11 7:49 
AnswerRe: document.ready() and window.load() events don't fire Pin
DaveAuld21-Jun-11 8:00
professionalDaveAuld21-Jun-11 8:00 
GeneralRe: document.ready() and window.load() events don't fire Pin
benams21-Jun-11 11:35
benams21-Jun-11 11:35 
AnswerRe: document.ready() and window.load() events don't fire [modified] Pin
Monjurul Habib21-Jun-11 12:12
professionalMonjurul Habib21-Jun-11 12:12 
AnswerRe: document.ready() and window.load() events don't fire PinPopular
AspDotNetDev21-Jun-11 15:56
protectorAspDotNetDev21-Jun-11 15:56 
GeneralRe: document.ready() and window.load() events don't fire Pin
vbmike22-Jun-11 9:48
vbmike22-Jun-11 9:48 
AnswerRe: document.ready() and window.load() events don't fire Pin
AspDotNetDev22-Jun-11 9:57
protectorAspDotNetDev22-Jun-11 9:57 
GeneralRe: document.ready() and window.load() events don't fire Pin
vbmike22-Jun-11 12:02
vbmike22-Jun-11 12:02 
Questionreading xml in jquery Pin
Ali Al Omairi(Abu AlHassan)19-Jun-11 23:06
professionalAli Al Omairi(Abu AlHassan)19-Jun-11 23:06 
AnswerRe: reading xml in jquery Pin
Ali Al Omairi(Abu AlHassan)19-Jun-11 23:35
professionalAli Al Omairi(Abu AlHassan)19-Jun-11 23:35 
Questionlearning Jquery Pin
benams14-Jun-11 22:41
benams14-Jun-11 22:41 

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.