On Dec 11, 2005, at 2:36 PM, paqo wrote:
> I am attempting to do the sortable_element tutorial from
> scriptaculous.
> (http://demo.script.aculo.us/ajax/sortable_elements)
>
> Upon viewing the script.aculo.us source, I see this line is
> generated...
>
> <script
type="text/javascript">Sortable.create(''list'',
> {onUpdate:function(){new Ajax.Updater(''list-info'',
''/ajax/order'',
> {onComplete:function(request){new
Effect.Highlight(''list'',{});},
> parameters:Sortable.serialize(''list''), evalScripts:true,
> asynchronous:true})}})</script>
>
> When I try to do the same thing, Webrick generates the following on my
> local machine...
>
> <script type="text/javascript">
> //<![CDATA[
> Sortable.create(''list'', {onUpdate:function(){new
> Ajax.Updater(''list-info'',
''/moving_list/order'', {asynchronous:true,
> evalScripts:true, onComplete:function(request){new
> Effect.Highlight(''list'',{});},
> parameters:Sortable.serialize(''list'')})}})
> //]]>
> </script>
This would be the xhtml way of doing things. Its possible that you''re
not actually sending an xhtml doctype, which could cause the <style>
element to interpreted as a comment. Anyway, a url would help.
-ryan