Hi everybody!
I'm using jQuery for some time now and can say, that it's the holy grail for developing RIAs. Thanks, jQuery team, for all your good work and I hope that Oracle will never make a second Java bleed out.

I don't know if my question is more related to the UI forum than jQuery itself, but please have a look and tell me what you think about it.
I don't have a real problem. It's more that I don't fully understand a certain behavior.
My goal is to get some HTML content including some UI widgets and other stuff via an ajax call. To clarify my goal and the strange behavior, I attached some HTML files, that you can run for yourself.
Open the index.html will show you some UI widgets, which are pulled from the ajax.html via ajax.
When you scroll to the bottom you can see the same content inserted a second time. But this time, the widgets are not "rendered". It looks if the "button()" calls etc. are not executed.
The only difference is the way I insert the result of the ajax call. The first time I insert the hole content received by the ajax call, the second time I only insert the content of a special div. The goal in this is to get various chunks of content with one ajax request and replace "div#one" and "div#two" with different parts of my site. Which is not working.
My question is:
- Is it generally okay to receive html content which has some script parts to be executed via ajax and
- what is wrong with my second approach?
I hope you can help me to shed some light on this.
Greatings!
Benjamin