Hi,

I was wondering waht is the best way to include javascript with or
without ajax.
In a normal layout, there is an include of the javascripts file.
include_javascript()
But I dont want to include them again in the ajax layout.

I use often a single js file with livequery. But I am wondering about
the performance.
And sometimes, it s really useless to have a js script in all the
page.

So, what could be the best practice ?
- include all the javascripts even in ajax response ?
- have a single js file with livequery?
- put the js script in the template with a
<?php if(!$sf_request->isXmlHttpRequest()): ?>
  jQuery(window).load(function(){
<?php endif; ?>
- extends sfWebResponse and add : addAjaxJavascript() function and
include_ajax_javascript() in the ajax layout ?

Thank you

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

Reply via email to