Execute inline JS within the return of an AJAX

2

I have a hotsite that works in AJAX and friendly urls (more specifically with PJAX ). Where the top and footer are fixed, and only the content is injected into the page.

The problem is that right now, I can not perform the inline javascript of content pages. I have read about giving eval in the returned text, but it seems to me that eval is bad for performance. So how is the best way to do it (or what do you usually do)?

    
asked by anonymous 29.08.2014 / 07:31

1 answer

1

I believe that PJAX should be yes executing its blocks <script type="text/javascript">...</script> .

Do you have an example of a block that is not running? Did you put the type="text/javascript" attribute on them?

    
30.08.2014 / 21:55