Jump to content

Iframes -- JS and CSS


LoneStarJack

Recommended Posts

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?

 

 

Link to comment
https://forums.phpfreaks.com/topic/249044-iframes-js-and-css/
Share on other sites

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?

Link to comment
https://forums.phpfreaks.com/topic/249044-iframes-js-and-css/#findComment-1279028
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.