Jump to content



Welcome to AstaHost - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!

Toggle shoutbox Shoutbox Open the Shoutbox in a popup

@  yordan : (19 June 2013 - 02:28 PM) Long Life To Asta New Era
@  agyat : (19 June 2013 - 01:58 PM) New Era Start At Asta Or Asta Start In New Era. :unsure:
@  yordan : (16 June 2013 - 05:41 PM) You're Welcome, Agyat!
@  agyat : (16 June 2013 - 07:38 AM) Thanks Yordan...
@  velma : (16 June 2013 - 12:06 AM) I Have Asked Opa To Check For A Backup.. He'll Let Me Know Soon :)
@  velma : (16 June 2013 - 12:05 AM) T_T It Seems That Someone Has Deleted That Topic Since I Found The Url Of The Topic But It Gives Me An Error
@  yordan : (15 June 2013 - 10:31 PM) @velma : It's A Tuto On How To Create A Login Program.
@  yordan : (15 June 2013 - 10:31 PM) Happy Birthday To Youuuuuu Agyat!
@  yordan : (15 June 2013 - 10:31 PM) Ba$
@  agyat : (15 June 2013 - 04:41 PM) :(
@  agyat : (15 June 2013 - 04:41 PM) Where The Hall I Were? 15Th Is Almost At End And No-One Wished Me "happy Birthday"!!!
@  velma : (14 June 2013 - 10:39 AM) Which Tutorial Is He Searching For?
@  velma : (14 June 2013 - 10:38 AM) Which Tutorial Is He Searching For?
@  yordan : (14 June 2013 - 07:47 AM) Ok, Have A Look Tomorrow.
@  yordan : (13 June 2013 - 03:19 PM) @velma, Can You Have A Look At Feelay's Problem? Seems That His Tutorial Is Not Searchable Today.
@  Feelay : (13 June 2013 - 08:11 AM) Oh, Haha
@  velma : (12 June 2013 - 05:39 PM) T_T Lately My Levels Of Procrastination..... **sigh**
@  velma : (12 June 2013 - 05:38 PM) I'll Do It Later
@  velma : (12 June 2013 - 05:38 PM) Procrastinators.. People Who Keep Saying "i'll Do This In A Bit"
@  Feelay : (12 June 2013 - 02:05 PM) Deal Punishments To What?

Replying to Juggling An Iframe Box With Xhtml Sites


Post Options

    • Can't make it out? Click here to generate a new image

  or Cancel


Topic Summary

Posted 01 November 2009 - 07:31 PM

Thanks for your help. For those who want to fix the IE problem, we might consider cheating an option:

<object data="http://page.Html" type="application/xhtml+xml" style="width: 340px; height: 280px;">

  <!--[if IE]>

       <iframe src="http://page.Html" style="width:340px; height:280px;" allowtransparency="true" frameborder="0" ></iframe>

  <![endif]--> 

</object>


Posted 03 February 2009 - 11:19 PM

Compliant XHTML for Google Calendar. Success!Juggling An Iframe Box With Xhtml Sites

I'm almost there with this code:

<!--[if lte IE 7]><iframe src="(your url goes here)" style=" border-width:0 " width="533" height="800" frameborder="0" scrolling="no"></iframe><![endif]--></p><p><!--[if  !IE]><!--></p><p><object data="(your url goes here)" style="width:533px; height:780px;" type="text/html"></object><!--<![endif]--><noscript><p>You must have JavaScript to display the calendar. </p></noscript>

If you check the wikipedia article on conditional comments, it'll explain why each works. Summary: In IE, it sees the first part as an instruction to process the first and the second part as an instruction to ignore. In standards compliant browsers, it sees the whole first part as a comment and the second part as two comments, a standards-compliant object, then another comment. Ideally everyone's happy, except maybe the webmaster who has to monkey all of this around.

 Naturally, modify the styles and the URL to what google calendar or whatever gives you.When IE 8 comes out, your actual mileage may vary.

 I hope that helps!

-reply by Chris Dillingham

 


Posted 25 November 2008 - 09:42 PM

IE vs FirefoxJuggling An Iframe Box With Xhtml SitesIt worked for me also...Well at least in Firefox it works and it validates but in IE I just get an empty box.I saw some semi-complicated java script things to try and get around this but I couldn't really figure it out. It's called the Improved Satay Method... 
-question by Sientz

Posted 18 April 2008 - 06:03 PM

Google Calendar
Juggling An Iframe Box With Xhtml Sites

Thank you. It worked like a charm for Google Calendar!

-reply by Waner Del Rosario

Posted 02 April 2008 - 04:08 AM

Javascript with the Object Tag
Juggling An Iframe Box With Xhtml Sites

Replying to toby

Getting an HTML page embedded with the OBJECT tag to work in IE requires the addition of the CLASSID parameter

<object
classid="clsid:25336920-03F9-11CF-8FD0-00AA00686F13"
type="text/html"
...
</object>

Putting links in your page to change the displayed page in the OBJECT tag requires Javascript.

I have used:

Document.GetElementById('objectid').ContentDocument.Location = link;

With mixed success. It works once (clicking on the first link) but after that, contentDocument becomes read-only for reasons I do not yet understand.


-reply by Anonymous Coward

Posted 21 March 2008 - 08:21 PM

errata
Juggling An Iframe Box With Xhtml Sites

I can't believe that there is no attribute 'id'.

There is no 'I' in 'deprecated'.

FirefoxRocks

Posted 19 February 2008 - 04:39 AM

Hi and thank you so much for this clear and straightforward tutorial!

Unfortunately, it works perfectly in our beloved Firefox, but in IE and Safari it displays nothing :P

Any ideas, useful links, suggestions? Please help me :P

I can post the code, but I am not sure I can do it since this is not a forum ;)

-Francesca

Erm...as for IE, you can probably use a conditional comment for an <iframe>. It's a dirty trick as XHTML will parse it as a comment but it will still be rendered in IE (as only IE supports conditional comments).
It works for me in Safari, what version are you using? I tried it in Safari 3.0.4 Beta and Konqueror on Ubuntu and they both display the <object> as intended.

toby

Posted 18 February 2008 - 05:49 PM

Not terribly related, but if you have a frames site within an object or frame on your site, can you control the innermost frame (changing url) from your site? Yoursite=(Theirsite=((target)) controls).

Posted 18 February 2008 - 04:10 PM

Hi and thank you so much for this clear and straightforward tutorial!

Unfortunately, it works perfectly in our beloved Firefox, but in IE and Safari it displays nothing :(

Any ideas, useful links, suggestions? Please help me :)

I can post the code, but I am not sure I can do it since this is not a forum :p

-Francesca

Posted 27 January 2008 - 02:15 AM

Iframes are not supported in xhtml strict so use an object instead. Very helpful example Thanks! That's the answer that I was looking for =)

Review the complete topic (launches new window)