Re: Package Proposal: HTML_Progress

From: Date: Wed, 28 May 2003 17:43:21 +0000
Subject: Re: Package Proposal: HTML_Progress
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-16785@lists.php.net to get a copy of this message
"Klaus Guenther" <klaus@capitalfocus.org> a écrit dans le message de news: 02c801c32500$682886e0$5300a8c0@desk... > > Hi Laurent, > > > > GetElementById is not supported in every browsers AFAIK. You might want to > > test the browser version first. You could also consider having a look at > > the HTML_Javascript package in PEAR, but I don't know if it can help you > in > > any way, as I've never used it. > > Hmm... GetElementById really should be implemented by all browsers > supporting XHTML. > > I know IE 5.0+ and NS 6.0+ support it (and they also support > GetElementByName). Of course, that means that Netscape 4 doesn't. However, > strict XHTML requires both "id" and "name" (and not simply name), because > XML uses the id tag instead of name. And they must both be set to the same > value. It seems that name will be allowed in form elements until XHTML 2.0, > which will introduce XForms (according to the current working draft). > > > As you are outputting html in the end, maybe you could have your class > > extend HTML_Common that provides methods to handle attributes, tabs and > > line endings. The standard ways to output HTML is via toHtml() and > display(). > > > > A while ago, Klaus Guenther proposed a CSS package IIRC. Maybe you could > > use it to generate your CSS. Klaus ? > > Well, I never got a response on that. I'm going to try to add some features > (such as a definition file) before I propose it again. I'll be coming back > with it sometime in the next few weeks. Of course, any +1s would already be > appreciated :-) And if I get enough, I might release a version right away. > > You can see the source and with some examples in phpdoc here: > http://www.geist.uni-freiburg.de/pear/CSS.phps > http://www.geist.uni-freiburg.de/pear/CSS.txt > http://www.geist.uni-freiburg.de/pear/HTML_CSS-0.1.0.tgz > > A good example can be seen here: > http://www.geist.uni-freiburg.de/pear/CSS/example.phps > > If you want to validate the progress bar output, you can get a prerelease > HTML_Page package here: > http://www.geist.uni-freiburg.de/pear/HTML_Page-2.0.0beta1.tgz > It requires HTML_Common version 1.2 or later. Extensive examples are > included in phpdoc. Example files will be included in the official release. > I'm going to attempt to add support for putting javascript in the head. > Right now you need to either have the javascript in the body or include it > as a separate file. I'll upload this file this file at 4 CET (can't do it > before then). > > Anyway, hth > > Klaus > > > Cheers, > > > > Bertrand Mansion > > Mamasam > I've look examples (marvelous) except a little error on script > http://www.geist.uni-freiburg.de/pear/CSS/example.phps at line 48: You should write $p->addStyleDeclaration(&$css, 'text/css'); and not $p->addStyleDeclaration('text/css', &$css); That all ! Great Works Klaus : I dream it and you did it :o) I 'll try now to fix all pb with my HTML_Progress class and integrate yours (Page and CSS) BTW +1 for Klaus classes Laurent

« previous php.pear.dev (#16785) next »