1
The following is, I need to access a website and do a search on it through my page. I am trying as follows:
<html> <script type="text/javascript" src="js/jquery.js"> </script>
<div class="news"> <iframe src="http://alelo.com.br/consulta-saldo-extrato-alelo.html" style="width:100%; height:100%; float:left;" frameborder="0" id = "jones"></iframe> </div>
<input type = "text" id = "piru">
<script> document.getElementById('jones').onload= function() { var valor = $('#jones').contents().find('#numero').val(); alert(valor); }
</script> </html>
I’m not getting anything done on the page inside the iframe... Help!
If the site is not within the same domain as yours then you will not be able to access the site.
– Sergio
Use Curl. http://php.net/manual/en/book.curl.php http://curl.haxx.se/
– Luis Henrique
I’m gonna take a look at these sites that you gave me, thank you.
– Raphael Araujo