[jQuery] Problem with a possible race condition
Hi folks,
I'm having a problem that I hope someone out here can help me solve. I'm
using thickbox to popup a dialog that asks a user for one piece of
information in a text box. I want to set focus to that text box once the
dialog is on screen, but I seem to be running into a race condition (*I
think*).
As the dialog is popping up I get an error that says focus cannot be set
because the item is either invisible or not of the type that accepts focus.
I've got the instruction in the $(function(){}); section of my code, but
no matter where in there I put the focus instruction, it seems to be
running before the element is rendered on screen.
Is this because I'm using thickbox? Or is there something else I may
have missed?
If example code is needed, I'll post it.
Thanks heaps everyone!
Chris
--
http://cjordan.us