[quote=215157:@Steve Upton]I want it to execute inline. Script tags placed within the HTML will execute as they are added to the DOM.
except in Xojo for some reason[/quote]
Actually… Script tags run when they’re part of the html when its first delivered to the browser. That’s not the case here. The html sent through the SetupHTML event is inserted later, and browsers don’t just run that code. My suggestion is to wrap it in a function declaration and call it.
well… don’t mean to argue, as I think we’re talking about different things.
The HTML/javascript fragments I’m referring to are currently working through a “normal” AJAX mechanism. It’s not an entire page but rather just HTML divs with a trailing section.
So, considering that it works via AJAX, I’m wondering why it doesn’t work via Xojo…
It depends a lot on what your “normal Ajax” code does after it receives the new code. All I’m saying is that’s what you’ll have to do with our framework.
This is one of those places where we had to do some magic to get consistent behavior on all supported browsers. As I recall, one of the early supported IE versions had issues with inserting tags at runtime.