Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: css style iframe content

Started 2 years, 8 months ago by hiropowers
I have xthml page with an iframe that has src="dynamic-source" for a wysiwyg editor... ok not drupal... I'm trying to style the content inside the iframe from the page that contains the iframe. The browser sees the iframe as a separate frame therefore a separate page. As the iframe content is dynamic, I cannot include the css on the iframe's src page... There must be a way to apply css...
Site: Forums | drupal.org  Forums | drupal.org - site profile
Forum: Deprecated - Social software and communities  Deprecated - Social software and communities - forum profile
Total authors: 5 authors
Total thread posts: 6 posts
Thread activity: no new posts during last week
Domain info for: drupal.org

Other posts in this thread:

jaykali replied 2 years, 3 months ago
Can it be done??

mcd replied 2 years, 2 months ago
I was wondering about this myself for styling amazon product links. You can't do it with css alone, but apparently you can do it with javascript. See here: http://thedesignspace.net/MT2archives/000115.html Note that the javascript goes into the framed page, so you must have control over that page as well as the parent page.

jaykali replied 2 years, 2 months ago
The way to go is to do a , point it to a url that delivers javascript encoded html. It can be a dynamic page. So I made a php page that checks the user session var to see if the person is logged in and if so it shows login details, otherwise it shows a login block. I use a little php function that encodes a string in javascript so the last thing i do is encode my html and voila.

lenniegordo replied 1 year, 10 months ago
( This lets you insert css in to the iframe with out having to edit the iframe function populateIframe\(\) { var ifrm = document.getElementById\('myIframe'\); ifrm = \(ifrm.contentWindow\) ? ifrm.contentWindow : \(ifrm.contentDocument.document\) ? ifrm.contentDocument.document : ifrm.contentDocument; ifrm.document.open\(\); ifrm.document....

my-family replied 1 month, 2 weeks ago
Could you tell me please, where should I put the code? (I would like to add styles to Google CSE iframe). Thank you in advance.

 

Top contributing authors

Name
Posts
jaykali
2
user's latest post:
css style iframe content
Published (2007-10-20 23:41:00)
The way to go is to do a , point it to a url that delivers javascript encoded html. It can be a dynamic page. So I made a php page that checks the user session var to see if the person is logged in and if so it shows login details, otherwise it shows a login block. I use a little php function that encodes a string in javascript so the last thing i do is encode my html and voila.
mcd
1
user's latest post:
css style iframe content
Published (2007-10-03 19:35:00)
I was wondering about this myself for styling amazon product links. You can't do it with css alone, but apparently you can do it with javascript. See here: http://thedesignspace.net/MT2archives/000115.html Note that the javascript goes into the framed page, so you must have control over that page as well as the parent page.
lenniegordo
1
user's latest post:
css style iframe content
Published (2008-01-31 02:48:00)
( This lets you insert css in to the iframe with out having to edit the iframe function populateIframe\(\) { var ifrm = document.getElementById\('myIframe'\); ifrm = \(ifrm.contentWindow\) ? ifrm.contentWindow : \(ifrm.contentDocument.document\) ? ifrm.contentDocument.document : ifrm.contentDocument; ifrm.document.open\(\); ifrm.document.write\('Hello World!'\); ifrm.document.close\(\); }...
my-family
1
user's latest post:
css style iframe content
Published (2009-11-07 10:31:00)
Could you tell me please, where should I put the code? (I would like to add styles to Google CSE iframe). Thank you in advance.
hiropowers
1
user's latest post:
css style iframe content
Published (2007-04-20 13:16:00)
I have xthml page with an iframe that has src="dynamic-source" for a wysiwyg editor... ok not drupal... I'm trying to style the content inside the iframe from the page that contains the iframe. The browser sees the iframe as a separate frame therefore a separate page. As the iframe content is dynamic, I cannot include the css on the iframe's src page... There must be a way to apply css style to the iframe content from the...

Related threads on "Forums | drupal.org":

Related threads on other sites:

Thread profile page for "css style iframe content" on http://drupal.org. This report page is a snippet summary view from a single thread "css style iframe content", located on the Message Board at http://drupal.org. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity