On Wed, 2 Dec 2009, artmajeur wrote:

> Problem:
> after the lighbox action is hidden, the contact_div is filled with the
> appropriate info, but the "modify" link, supposedly the same as the
> one used in first place to trigger the lighbox, does not work.
> 
> It looks like symfony does not load the sfDynamics::load
> ('jquery.SCRIPTNAME')  library in the ajax action, so the CSS ans JS
> are not available in the rendered Ajax Div.

Sounds like you're expecting an AJAX action to load scripts and css, but 
AJAX actions typically don't and symfony does not use the layout for those 
actions either.

> My Current "solution":
> I reaload manually the dynamics JS and CSS needed for the lightbox,
> directly in the template, wich does work but also sucks.

Why? AJAX assumes your page already has the scripts an d CSS it needs to 
update the page. So they should already be loaded when you call your AJAX 
action.



-- 


--

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