Yes, responseText will automatically evaluated by Prototype.
If you just want to display HTML fragment and execute script later, your
code should look like this:
$(container).update(responseText.stripScripts());
responseText.extractScripts().each(function(script){
if (window.execScript) window.execScript(script); // MSIE
else window.eval(script);
// Mozilla Firefox
});
Yuan Yudistira wrote:
> Hi,..
> how are you everyone?
>
> I am playing with Scrip.aculo.us <http://Scrip.aculo.us> Sortable
> feature.
>
> I think I get browser related problems.
>
> I use prototype 1.6, and fire a request, and return a piece of HTML
> coder along with
> Javascript to create a sortable list. (I user .update function)
>
> I check on my FF 2.0, The sortable works just fine. no error or
> warning appear on FireBug .
>
> But when I try using IE 7.0, the list can be sort / drag and drop.
>
> Any suggestion what to look for for this problems?
>
> I appreciate for any suggestion ...
>
>
> Thanks
>
> YUAN
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---