LoneStarJack Posted October 13, 2011 Share Posted October 13, 2011 I have a page that when viewed directly with a url works perfectly. JS and CSS do what they are supposed to do. When I include the code in an iframe only the html text shows and all CSS and JS seem to be lost although inline CSS works. Inspecting the source shows a bunch of Google Analytics and Skype toolbar code and generates an error with jquery.min and my JS code. I tried to install the opt-out Google widget but it won't install with my curent Firefox. I question: If JS and CSS are client-side do I need to cell them in every iframe or just once in the Index.php? Quote Link to comment https://forums.phpfreaks.com/topic/249044-iframes-js-and-css/ Share on other sites More sharing options...
ZulfadlyAshBurn Posted October 13, 2011 Share Posted October 13, 2011 Sorry, what was your question again? Quote Link to comment https://forums.phpfreaks.com/topic/249044-iframes-js-and-css/#findComment-1279023 Share on other sites More sharing options...
LoneStarJack Posted October 13, 2011 Author Share Posted October 13, 2011 If JS and CSS are client-side do I need to cell them in every iframe or just once in the Index.php? How do I disable Google Analytics and Skype tool bar code? Do you have any idea why code will work independently and the same code will not work in an iframe? Quote Link to comment https://forums.phpfreaks.com/topic/249044-iframes-js-and-css/#findComment-1279028 Share on other sites More sharing options...
ZulfadlyAshBurn Posted October 13, 2011 Share Posted October 13, 2011 1) what you mean cell them in every iframe or just once in the Index.php? 2) use google chrome and see if the codes are still there. I think you installed a plugin on your browser. 3) what are the code you are using? post the codes. Quote Link to comment https://forums.phpfreaks.com/topic/249044-iframes-js-and-css/#findComment-1279036 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.