For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > June 2004 > HTML_Page (or Page2) and framesets









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author HTML_Page (or Page2) and framesets
Matte Edens

2004-06-24, 1:22 am

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.

Has anyone implemented a fix or possibly extended the current classes to
take care of frames?

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);

until we can ...

$frameset = HTML_Frameset::HTML_Frameset(array $attributes)

Thought I'd ask before I tackled it myself.

[1] http://marc.theaimsgroup.com/?l=pear-general&m=107530564518384&w=4

--
matte - matte@arubanetworks.com
webmonkey / arubanetworks.com / airheads04.com / wi-fi-it.com

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com