As a virtual newbie (once a CF5 virtuoso returning to
programming after a 5 year delay), I'm thrilled to encounter the
AJAX capabilities of version 8. But I just hit a problem: After a
portion of my page loads (into a CFDIV via ColdFusion.navigate), I
would like to focus the cursor on a particular <input> tag
within it, but I get a Javascript error because the focus() tries
to execute before the target <input> tag gets into the page.
(To prove this, all I have to do is put an alert('waiting...')
message just before the focus() statement.) So this is one time I
need it to be synchronous. I notice in Ben Forta et al Adobe
ColdFusion Application Development Volume 2, p. 348, that there's a
setSynchMode for the <cfajaxproxy> tag (for other normally
asynchronous situations, too, I wonder?). And on p. 344 it is
stated that one can obtain 'a complete list of the available
JavaScript APIs at the link below:
http://www.adobe.com/coldfusion/8/htmldocs/help.html?content=Part_3_CFML_Ref_1.html
However, as of this afternoon, 12-24-2007, that link does not
work.
Four Questions:
1. How do I get to the API information? (I'll search the
website but I thought I'd ask now in case my search is fruitless.)
2. Can ColdFusion.navigate be set to be synchronous?
3. If so (in case the answer to question 1 doesn't provide
this), what is the correct syntax?
4. Or is there some other technique I should be using? An
'onload' in the AJAX-loaded form just occurred to me as a possible
solution, but my O'Reilly HTML book does not list that among the
form events...
Thanks for your help.