Yaz's Blog

I am a (php+ruby+js+css+) developer. I am a geek. I am a fiction reader. A movie and tv addict.
An XBOX360 player. A snowboarder. A cyclist. A Softball player. A Venezuelan-Canadian.

Ajax.Updater’s default insert property is weird.

Ajax.Updater’s default insertion option is to replace the contents of the container… So, if I have:

<div id="test"></div>

And I run Ajax.Updater on $(‘test’), the results are:

<div id="test">
       <div id="test"></div>
</div>

Not what I was expecting. You expect it to “replace” itself, not add it as a child.

Blog comments powered by Disqus