0

I want to do a little javascript library that contains one method that return the content of this page via GET METHOD: http://www.olivettom.com/test/test.php

<script type="text/javascript">
function getFromPage(){
    var result = ?????
    return result;   
}   

var result =getFromPage()   
//should print "result=key:value"
alert("result="+result);
</script>

I tried a lot of things including ajax, but I ended with a cross domain exception. How can I implement this method?

Thomas
  • 5,603
  • 5
  • 32
  • 48

0 Answers0