npr / responsiveiframe

Responsive IFrames

Home Page:http://npr.github.com/responsiveiframe/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IE issue in parent page

saranyarajendran opened this issue · comments

Am using this responsive iframe jquery in our project and it is really good.

Am getting two issues, could you please help me out..

  1. The line from parent page <script type="text/javascript"> $(document).ready(function() { $('iframe').responsiveIframe({ this: 'isnt', that: 'is' }); });</script> is giving error in IE - and the error is expected identifier, string or number. which is showing near to "this" word.
  2. Could you please provide me an example of using HTML elements inside iframe and that should be responsive. In the example u provided in the child.html is only for the paragraph tag. the contents in the p tags works too good. But we would need help for making the controls inside the iframes in a responsive way.
commented

For number one, please submit your code sample as a gist, just makes it a bit easier to read. then just add the link here. if your not familiar, you can click Gist in top nav of this page.

commented

As for number 2, we do have this running in production on a few member station sites. I will ask around to find out who is using it and send you an example of our responsive music pages wrapped up in a different site. As for general responsive sites, you can take a look at NPR.org, a lot of the content there has been converted to responsive pages. here is a story that is responsive. http://www.npr.org/blogs/thetwo-way/2013/02/26/172971326/senate-allows-nomination-of-chuck-hagel-to-move-forward