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 PHP and MySQL Forum

iframe problem

Moderator: Malcolm

iframe problem

Postby john_zakaria on Wed Jun 10, 2009 9:20 am

i have an iframe that display data from a website..(eg. http://www.example.com)


my problem is that when i dispaly it on my website, i display it with it's css.. but i want to display it with my own css to be displayed like my design not like its source page


[HTML]<iframe name="I1" id="I1" src="http://www.example.com" marginwidth="1" marginheight="1" height="343" border="0" frameborder="0" style="width: 355px" scrolling="auto">

<strong>
here i want to display the contents in http://www.example.com but with my own css not http://www.example.com css
</strong>


</iframe>[/HTML]

thnx in advance for help
john_zakaria
50+ Club
 
Posts: 59
Joined: Sun Feb 08, 2009 7:29 am

Re: iframe problem

Postby rangana on Mon Jun 22, 2009 7:06 am

You cannot do that. Read about SOP (Same Origin Policy) and you'll see that it's the limitation of cross-domain scripting :)

Hope that helps.
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 1 guest