Hello,
I'm trying to use a javascript to read the source code of another page and write that content inside a div.
<script type="text/javascript">
$.get('teste.php', function(data) {
document.getElementById('somediv').innerHTML = data;
});
</script>
It's something like the file_get_contents of php but in javascript
It's not working ... Can you give me a light? Thank you !!