-
1. Re: Iframe content and css
SnakEyez02 Dec 23, 2011 6:16 AM (in response to mahendra rajeshirke)Let's see the code. If you have an iframe you just include the CSS and javascript on that page that is within the frame. If it is on Facebook then you need to use an absolute path (http://yourdomain.com/path/to/css.css) to get the CSS to load. Unless Facebook is blocking something that I am unaware of it should work. If it is allowed then we need to see code.
-
2. Re: Iframe content and css
mahendra rajeshirke Dec 25, 2011 9:25 PM (in response to SnakEyez02)hi Mr. SankEyez,
thnx, but i am lil confused on "absolute path and get the css load", u knw any script?
-
3. Re: Iframe content and css
John Waller Dec 25, 2011 11:16 PM (in response to mahendra rajeshirke)Please show us the code you're working with.
-
4. Re: Iframe content and css
mahendra rajeshirke Dec 25, 2011 11:23 PM (in response to John Waller)This is my js code, i have put in <head>tag
<SCRIPT type="text/javascript">
var iFrameObj = $('#myFrameId');
iFrameObj.load(function() {
iFrameObj.contents().find('body').css({
'background-color' : '#ccc'
})
});
</SCRIPT>
this is html iframe code
<iframe src="iframe.html" width="500" height="480" frameborder="0" id="myFrameId" name="myFrameId" ></iframe>




