RE: [PEAR] HTML_Page (or Page2) and framesets

From: Date: Mon, 28 Jun 2004 05:49:07 +0000
Subject: RE: [PEAR] HTML_Page (or Page2) and framesets
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13368@lists.php.net to get a copy of this message
I've used the new files and they look great. I have one wish though. I'd like to have a way of adding custom attributes to the frameset/frame tags. Especially the frameset tags. Or at least a way of setting the "border" and "frameborder" attributes of the frameset and frame tag. Those are the only way to control the border status of a frame. And while it doesn't validate as true XHTML, webdevelopers who use frames have come to accept that frames (well at least good looking frames) don't validate. At least I have. perhaps a ... $page->frameset->setBorder(int borderWidth) this would set both the "border" and "frameborder" attributes since you need both for Mozilla & IE to work, if I remember correctly. matte -----Original Message----- From: Klaus Guenther [mailto:klaus@capitalfocus.org] Sent: Thu 6/24/2004 10:23 AM To: Matte Edens Cc: pear-general@lists.php.net Subject: Re: [PEAR] HTML_Page (or Page2) and framesets Klaus Guenther wrote: > Matte Edens wrote: > >> 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. Check out CVS. There is an example in there, too. Klaus

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