Hi Johannes
Not to say that you didn't come up with a pretty sweet solution there,
but CroNiX's idea wasn't to fix evaluation of the script, it was
eliminate the need for it. If you send a JSON array with objects of
name/replacement value
>reg1.set('html', LOAD HTML-PARTIAL AS STRING HERE);
the id for reg1 (i'll call it id) and the LOAD HTML-PARTIAL AS STRING
HERE
you could iterate through that object and update any regions included.
jsonResponse.each(function(reg){$(reg.id).set
('html',reg.partString);});
If there is some "main content" that comes back standard with every
request regardless of server logic, you could include that as a branch
in your JSON tree as well. The only drawback is that this involves
changing your server logic around to wrap the standard output in JSON
and use of Request.JSON instead of Request.HTML