I know how to do this on your traditional html page by using the onload event 
of the body tag.  But:

I am populating a CFDiv with another cfm page.  I want to set focus on the 
first field in a form.  I use the ajaxonload to call a javascript function to 
do the following:
document.form.somefield.focus() and also 
document.getElementById('somefield').focus()

I can step through the function in Firebug but the text box doesn't take focus. 
 

What am I doing wrong?  

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302487
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to