It might be that the form hasn't been added to the dom, though that's usually not the case since the js comes after the form code. However if you'll remember a few days ago I suggested:
> 1. Wrap your JS code at the bottom of the page in a function and execute the function when the ajax call completes. > 2. Add your focus setting code into a callback function on the ajax call. That advice is still sound. On Mon, Sep 27, 2010 at 4:56 PM, John Pullam <jpul...@mcleansystems.com>wrote: > > alert(document.LoginForm); gives the message undefined. > > I assume that means that at the time the JavaScript is executing there is > no such object in the DOM. > > Could the JavaScript be executing at the wrong time? I'm wondering about > using some sort of onAjaxLoad thing (but I have no experience doing that). > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337597 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm