View Full Version : XHTML1.1 Iframe Module

01-08-2004, 10:44 PM
Well it's there in the specs, clear as glass - but it's not in the doctype...

anyone know where to find it as i kinda like using it in my code now and then but it wont validate without.

Atm i'm cheating by hiding it from the validator with PHP :o

01-11-2004, 09:17 AM
Here's what W3 says (http://www.w3.org/TR/2001/WD-xhtml-m12n-schema-20010322/schema_module_defs.html#a_smodule_Iframe) about it. Sure looks like a long workaround to an otherwise really simple element though.

01-11-2004, 09:38 AM
The idea is that you should put together a DTD of your own with the modules you want included. As long as you use only the W3C modules you may even use a custom public DOCTYPE in the name of W3C as long as you add a unique subset name for it.

01-11-2004, 12:29 PM
Does it need to be an iframe? You could use <object>:

<object type="text/html" data="page.html" width="350" height="250">

... content for old browsers ...



<object type="application/xhtml+xml" data="page.xhtml" width="350" height="250">

... content for old browsers ...


01-11-2004, 02:31 PM
well to be honest it doesn't really need to be an iframe atm, i could have used a popup.

Basically it's a script that reloads an Iframe every 2 mins to stop your connection doing a 20 mins idle timeout. I'm assuming the <object> tag wont have the reload method in JS?

01-11-2004, 05:04 PM
I don't know, but it occurs to me that what you're doing isn't very fair. What if I'm visiting your site and I want my auto-disconnect to work, because I pay by the minute for dialup?

01-11-2004, 05:59 PM

I'm not forcing it on the user, you click a button to activate, click again to stop, I find it useful for playing online games because they used to disconnect after 20 mins as in thinking i was idle, even when i wasn't. Never found out why they thought i was idle, but this solved it.

I figure other people could also be having the same prob so i put it up on my site.

Can anyone direct me to a tutorial on how to write my own XHTML modular doctype to include the modules i want?

01-11-2004, 06:10 PM
That's fair :) I had to mention it .. just in case..

01-11-2004, 06:19 PM
Not a tutorial, really, but this W3C recommendation is intended to clarify and explain that, among other things that has to do with modules. <http://www.w3.org/TR/xhtml-modularization/>
This working draft also deals with that: <http://www.w3.org/TR/xhtml-building/>