For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > June 2004 > Re: [PEAR] 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 Re: [PEAR] HTML_Page (or Page2) and framesets
Klaus Guenther

2004-06-24, 3:55 pm

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
Klaus Guenther

2004-06-24, 3:55 pm

Klaus Guenther wrote:

> Matte Edens wrote:
>
>
>
> 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
Sponsored Links







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

Copyright 2008 codecomments.com