I know, there's JSONP, which involves server cooperation to name-space the data.
What is bothering me is the fact that the content of script tag src
is evaluated, but it's NOT available to read.
<script src="http://www.google.com"></script>
All we need to figure out is how to namespace the data, that's all. Of course I tried pretty idiotic things with no relevant result (I know this doesn't work, but you can see what I'm trying to achieve):
<script>eval('var namespace="');</script>
<script src="http://www.google.com"></script>
<script>eval('";');</script>
Since there's really no relevant info on how the src
content is evaluated, I know it's global scope, but if we could trace evaluation steps or maybe chain evals scope somehow (not much documentation about this as well), we could solve this annoying "evaluated but not readable" thing.
Any ideas?