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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.