Popup ajax form

Aug 18, 2011 at 12:14 PM


I would like to do stuff on the client after a ajax popupform has finished loading. Is this possible?


Aug 18, 2011 at 12:22 PM


yes, inside the popup form you can put some js, that js will get executed when the pf will load

Aug 18, 2011 at 1:03 PM


Yes, but this code is executed before the form is shown. I want to set the focus to some element after the dialog is shown. It is not the first input element of the first form on the page, so the default setfocus does not work for me.

Aug 18, 2011 at 6:36 PM

yes, that's what I meant,

just put an alert('hi') and you will see when it is executed

Aug 18, 2011 at 7:23 PM

'hi' is displayed before the dialog is shown.. When using JQueryUI you could do something like:

    .load('somecontroler...', DoStuffWhenCompleted)

function DoStuffWhenCompleted(..)...

Is this possible using Project Awesome? 


Aug 18, 2011 at 8:03 PM

if you put something like this:


$(function(){ alert('hi); });



inside the view of an action that is used with the popupform

than until the popupform is open the content of this view is not yet in the browser

when you click the link to open the popup form the content of this action (view) comes via ajax and after that the js that came is executed