0
Hello, my problem is this. After loading a div from another domain, I want to change the Urls of these images from the uploaded div to my domain. Ex:
<img class="InfoBarSmallElement"
src="http://exemplo.com/img.png" />
Switching to:
<img class="InfoBarSmallElement"
src="http://meudominio.com/img.png" />
Below is the script I’m using for . load:
<script>
$(function(){
var contentURI= 'http://www.exemplo.com/ .Div';
$('.Result').load('../system/getp.php?url='+ contentURI);
});
</script>
getp.php
<?php echo file_get_contents($_GET['url']); ?>
Thank you very much if someone can help me, thank you.
Is the loading done in PHP or Javascript? Depending on the answer the solution changes.
– Robson França
javascript
– SowberScripts