Jump to content


Photo

iframe question...


  • Please log in to reply
4 replies to this topic

#1 heartburn

heartburn
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 18 July 2006 - 08:23 PM

Is it possible to force a source file for an iframe to use your css?

As in, can I link an iframe to a sister-site and then use my own css to control the layout?

#2 ChaosXero

ChaosXero
  • Members
  • PipPipPip
  • Advanced Member
  • 80 posts

Posted 18 July 2006 - 08:25 PM

I can think of a way using JavaScript to edit the tag in the page you are opening, but I don't know if that will actually work.  Using PHP I cant think of a way unless you are actually processing the whole page.

#3 heartburn

heartburn
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 18 July 2006 - 08:46 PM

well, I thought am wondering if there was a way to basically load the source page into memory and then basically re-write it back into the iframe?  Does that make sense?

I know that before this post it wasn't really a php question, more of a js one, but I frequent this forum and figured that someone might have run into this before as well.

#4 ChaosXero

ChaosXero
  • Members
  • PipPipPip
  • Advanced Member
  • 80 posts

Posted 18 July 2006 - 08:55 PM

I think it can be done, but you're out of my realm of experience here.  Couldn't you just keep a copy locally with the alternate stylesheet on it?

#5 heartburn

heartburn
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 18 July 2006 - 09:00 PM

hmmm... it's possible.  Thanks for your ideas.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users