A seriously flawed and retarded piece of software which goes by the name of "Joomla" is giving me its usual load of headaches.
Sample code
I have the following code:
....
<div id="abc"><!----></div>
<script type="text/javascript">
jQuery.get(url,function(data){
jQuery('#abc').html(data);
},'data');
</script>
....
And I get this code from that url:
....
<script type="text/javascript">
document.write('<span');
// perhaps write classes
document.write('>');
// and the rest of the code
</script>
....
The Issue
Joomla is being modern by using document.write
snipets. This completely obliterates any AJAX html, unless I disable/strip out javascript, which is a huge NO.
The Fix
I need to replace the text/code progressively to look like:
<span id="ob1"><!----></span>
<script type="text/javascript">
_ob_begin(1);
_ob_write(1,'<span');
// perhaps write classes
_ob_write(1,'>');
// and the rest of the code
_ob_end(1);
</script>
Clarification
Joomla-lovers, don't get anywhere near this topic. I feel like burning a joomla dev alive right now.
The generated code (document.write) is strictly joomla's doing...no plugins, components or anything.