It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Java script professionals help needed

Java script professionals help needed

Postby Zi5 on Mon Dec 28, 2009 9:48 pm

Hello Everyone ,
I hope you to help me with this situation , if for example we go through this link
Code: Select all
http://travel.maktoob.com/vb//redirectLink.php?link=http%3A%2F%2Frapidshare.com%2Ffiles%2F246270511%2FGarmin_WorldMap_v4.part1.rar


the iframe will be removed because the rapidshare is using this code
Code: Select all
<script type="text/javascript">
if (top != self)   top.location = self.location;
if (document.URL.substr(7,7) == "intern.")
    document.write('<base href="http://rapidshare.com">');
</script>


So how prevent this code from removing my iframe ?
I really really hope to get an solution for this .
Thank you too much ,
Zi5
Zi5
 
Posts: 1
Joined: Mon Dec 28, 2009 9:47 pm

Re: Java script professionals help needed

Postby rangana on Wed Dec 30, 2009 10:31 pm

I'm afraid you can't control a script from the other domain. That is governed by the web's SOP (Single Origin Policy)
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines


Who is online

Users browsing this forum: No registered users and 5 guests