Hello!

I have an ajax call generated by cakephp that should update multiple
divs like so:
new Ajax.Updater(
        document.createElement('div'),
        url_to_ajax_call,
        {asynchronous:true, evalScripts:true, requestHeaders:['X-Update',
'div1 div2']});

Now this works fine but problems occure when I add some javascript in
the response. A simple thing like this next line of code has some
unexpected behaviors:

window.myObjectDeclared.anArrayMember[3255] = someData;
alert(window.myObjectDeclared.anArrayMember.length); //returns 3255

While there really is just one element in this array. The exact same
code does work before the ajax (length is 1). Does somebody know what
the problem could be? I hope I made myself clear, it's a bit
complex :-)
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-spinoffs@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to