Click here to Skip to main content
15,915,094 members
Home / Discussions / JavaScript
   

JavaScript

 
Questionhow to set focus again on drop down after pressing down key Pin
Syed Salman Raza Zaidi16-May-11 21:53
Syed Salman Raza Zaidi16-May-11 21:53 
AnswerRe: how to set focus again on drop down after pressing down key Pin
twseitex19-May-11 10:33
twseitex19-May-11 10:33 
QuestionJQuery to Mootools Pin
mehrdadc4814-May-11 18:14
mehrdadc4814-May-11 18:14 
AnswerRe: JQuery to Mootools Pin
DaveAuld15-May-11 1:41
professionalDaveAuld15-May-11 1:41 
QuestionJavaScript Framework Pin
Md. Marufuzzaman11-May-11 8:30
professionalMd. Marufuzzaman11-May-11 8:30 
AnswerRe: JavaScript Framework Pin
DaveAuld11-May-11 8:39
professionalDaveAuld11-May-11 8:39 
GeneralRe: JavaScript Framework Pin
Md. Marufuzzaman11-May-11 9:22
professionalMd. Marufuzzaman11-May-11 9:22 
GeneralRe: JavaScript Framework Pin
AjeetPrabhakar16-May-11 19:16
AjeetPrabhakar16-May-11 19:16 
GeneralRe: JavaScript Framework Pin
DaveAuld16-May-11 19:41
professionalDaveAuld16-May-11 19:41 
AnswerRe: JavaScript Framework Pin
Manfred Rudolf Bihy12-May-11 22:41
professionalManfred Rudolf Bihy12-May-11 22:41 
AnswerRe: JavaScript Framework Pin
Ankur\m/16-May-11 20:38
professionalAnkur\m/16-May-11 20:38 
Questioneval() Vs setTimeout() Pin
Ali Al Omairi(Abu AlHassan)10-May-11 3:37
professionalAli Al Omairi(Abu AlHassan)10-May-11 3:37 
AnswerRe: eval() Vs setTimeout() Pin
Pete O'Hanlon10-May-11 3:57
mvePete O'Hanlon10-May-11 3:57 
GeneralRe: eval() Vs setTimeout() Pin
Manfred Rudolf Bihy12-May-11 22:42
professionalManfred Rudolf Bihy12-May-11 22:42 
GeneralRe: eval() Vs setTimeout() Pin
AspDotNetDev14-May-11 22:44
protectorAspDotNetDev14-May-11 22:44 
GeneralRe: eval() Vs setTimeout() Pin
Ankur\m/16-May-11 20:42
professionalAnkur\m/16-May-11 20:42 
GeneralRe: eval() Vs setTimeout() Pin
AspDotNetDev16-May-11 20:46
protectorAspDotNetDev16-May-11 20:46 
GeneralRe: eval() Vs setTimeout() Pin
Ankur\m/16-May-11 20:58
professionalAnkur\m/16-May-11 20:58 
GeneralRe: eval() Vs setTimeout() Pin
AspDotNetDev16-May-11 21:02
protectorAspDotNetDev16-May-11 21:02 
Yeah, the reason eval doesn't work is because "myDiv" isn't created yet, and eval tries to immediately evaluate code that references that element. Using setTimeout seems to put the function call onto a procession queue so that it gets called once the current operation (loading the HTML) is complete.

GeneralRe: eval() Vs setTimeout() Pin
Ankur\m/16-May-11 21:15
professionalAnkur\m/16-May-11 21:15 
AnswerRe: eval() Vs setTimeout() Pin
AspDotNetDev14-May-11 22:46
protectorAspDotNetDev14-May-11 22:46 
GeneralRe: eval() Vs setTimeout() Pin
Ali Al Omairi(Abu AlHassan)15-May-11 3:44
professionalAli Al Omairi(Abu AlHassan)15-May-11 3:44 
GeneralRe: eval() Vs setTimeout() Pin
AspDotNetDev15-May-11 6:56
protectorAspDotNetDev15-May-11 6:56 
GeneralRe: eval() Vs setTimeout() Pin
Ali Al Omairi(Abu AlHassan)15-May-11 11:04
professionalAli Al Omairi(Abu AlHassan)15-May-11 11:04 
Questionjquery wait Pin
fififlowertot5-May-11 0:48
fififlowertot5-May-11 0:48 

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.