Hi,
on my page I start an ajax-request which returns rhtml-code (I use
Rails) looping over some objects. When I place the following code within
the loop my browser (FF) crashs:
<script>
var set_std_objekt = function (id) {
new Ajax.Updater('divname', '/dosomestuff', {
asynchronous:true,
evalScripts:true
})
}
</script>
<a href="#" onclick="set_std_objekt (1); return false;"><img...></a>
What's wrong here ?
Instead when I include the "new Ajax.Updater..." in the
onclick-attribute then it works:
<a href="#" onclick="new Ajax.Updater....; return false;"><img...></a>
I'm new to the prototype stuff so maybe someone could give a hint :)
Thx
Jan
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs