put your js inside a document.ready function:
http://www.learningjquery.com/2006/09/introducing-document-ready

On Tue, Jan 19, 2010 at 11:44 AM, Dineu Henrique <[email protected]> wrote:
> Hi guys,
>
> I'm having some trouble here trying to output an alert script after loading
> a Form.
> Look what I've done until now:
>
> 1) Created a Form using Ajax to embed another form inside it. (The user
> clicks on a link called "embed it!" and than the embed field appears)
> 2) User clicks on Save button, the form is saved (the common field inside
> its refered table, and the embed field in another table)
> 3) User is redirected to Edit Page
>
> Here I've got the problem... Is there a way to fake a click on "embed it!",
> so that the embed fild appears and gets filed?
>
> If I use "echo" inside executeEdit function, the script appears first than
> the rest of the page, so that the element "embed it!" isn't accessible yet.
>
> Hope you can help me.
> Thanks.
> --
> Dineu Assis
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "symfony users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.


Reply via email to