| Page 1 of 2 | [ 13 posts ] | Go to page 1, 2 Next |
MarcYUI Contributor
|
Can I use YUI on an iframe?
If I have an iframe which loads content through a page call against the same server, I would expect to be able to call node functions on its content but that doesn't seem to work. Marc |
|
Marc --
You can, but the best way to do it is to wrap the iframe with it's own YUI instance. Something like this: Wrapping a FrameClick here to see the revision history on this Gist. |
MarcYUI Contributor
|
Thanks!
|
Mark
|
I've been meaning to write a post on this for some time based on a working example. Ah well, best of intentions.
Cheers,Please ignore some of the lazy coding including lack of use of Y.sub() for the template. One nut I haven't been able to crack is firing the print call from the parent window. The only way I seem to be able to get this feature to perform reliably is to embed the call to window.print() in the child frame. Anyhow, hope this example is useful to someone. I'll get round to writing that post eventually. Mark codeinfront.com |
|
codeinfront wrote: I've been meaning to write a post on this for some time... Mark -- When you're up for it, we have this <a href="http://yuiblog.com">fantastic little blog</a> you could use.... -Eric |
Mark
|
miraglia wrote: When you're up for it, we have this fantastic little blog</a> you could use... Hey Eric, Sounds good. I have contributed a post already and would love to do another. Let's chat. Mark codeinfront.com |
|
Vote++
Please write that article! This is a very cool feature of YUI that has very nice possibilities - esp with regards to embedding other content into your site. |
Mark
|
@triptych Would you be interested in doing a joint effort. Could tie in nicely with your new series.
Cheers,Mark codeinfront.com |
|
Sure, can you send me your notes? I can write up something and then let you preview before I post it. I'll dm you my email addy.
|
|
Mark,
The working copy link isn't working. Did you two work out something and if so, where? Thanks! |
| Page 1 of 2 | [ 13 posts ] | Go to page 1, 2 Next |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group