Right, I get the whole "single trusted source" control instated in
Javascript. I was under the impression that Mootools JSON/Request
functionality could get around it. I recall seeing older Mootools
docs reference an older JSON.remote call or similar. That doesn't
seem to be in the latest docs or core anymore.
In any case I've concoccted a workaround that is sorta hackish.
Basically, I modified my backend script to produce a new text/
javascript content type header and output a string that looks kinda
like this:
<?php
echo 'var jsondata = '.json_encode($array).';';
?>
Outputs:
var JSONdata = {key:data, key:data, etc...};
Then I created a JS method that writes a new script tag which source
points to my backend script:
function loadJSON(term) {
document.write('
http://remote.host.with.different.domain/backend?
fragment=' + term + '&var=value&etc..' );
}
From there I have everything I need inside the JSONdata var.
Conceptually, this is the direction I've taken and seems successful.
It may not be the best route but given the amount of time I have to
finish my project, it works.
-Dave