Re: HTML_Page (or Page2) and framesets

From: Date: Thu, 24 Jun 2004 07:33:37 +0000
Subject: Re: HTML_Page (or Page2) and framesets
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13299@lists.php.net to get a copy of this message
Matte Edens wrote:
A question was asked back in January [1] about using HTML_Page for generating framesets. There is no builtin way of doing this at the current time and I see that the CVS code hasn't been updated to handle this yet (Page2). The code that was suggested is attached (I hope. dunno if attachments are ok on the list). This code isn't W3C kosher though. In the code, the <noframes> content is outside the <frameset> tag which doesn't validate per any DTD.
Ah yes, I said it was a ditry hack :-) But it still must be w3c compliant.
Has anyone implemented a fix or possibly extended the current classes to take care of frames?
No, it's been on my list, but I've been busy with so many other things that I completely forgot about it...
off the top of my head couldn't there be something like this (until there's an HTML_Frameset package) ... $frameset = $page->createFrameset(array $attributes); $frameset->addFrame(array $attributes); $page->addBodyContent('To view this page properly, your browser must support framesets.'); $page->addFrameset($frameset);
Today I'll try to write HTML_Page2_Frameset, an instance of which will be located at $page->frameset, and it can be nested at will. Of course, if you're interested in contributing, contact me offlist or on pear-dev :-) Klaus

« previous php.pear.general (#13299) next »