Re: Package Proposal: HTML_Progress
| From: | Farell | Date: | Thu, 29 May 2003 15:38:25 +0000 |
| Subject: | Re: Package Proposal: HTML_Progress | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-16804@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 integrated the fantastic Klaus classes 'HTML_CSS' and 'HTML_Page' on
my
own class 'HTML_Progress'.
I've not so expected what i can do with it: results are surprising !!!
Have a look on links somewhere in this message.
I've found another bug on HTML_Page 2.0 beta1 see setMetaData function
(variable is not define as _meta but as _metaTags)
I've also change a little JavaScript to run on others platform.
I've test version 0.2 of HTML_Progress on IE6, NetScape 7.02, Mozilla
1.3.1 without problems
Please HELP, who can say me why it won't work on Opera 6.05 (my last test
platform) ?!
You can see the source and with some examples in docs directory here:
http://farell.free.fr/pear/HTML_Progress/HTML_Progress-0.2.tgz
You can see presentations resume here:
http://farell.free.fr/pear/HTML_Progress/
Enjoy !
Laurent