Re: [whatwg] Detecting Web Forms for future proof scripts?

2006-10-02 Thread Shawn Wilsher

Ric,

Hopefully, you aren't duplicating work that has already been done here:
https://sourceforge.net/projects/wf2/

Granted, this is only for IE, but nearly half of your work is already done then.

Cheers,

Shawn

On 10/2/06, Ric Hardacre [EMAIL PROTECTED] wrote:

I'm attempting to write Javascript scriptlets to emulate some of the Web
Forms 2.0 spec in HTML 4 documents. Firstly, they obviously need to
degrade for non-scripting UAs, which is easy enough. Secondly they need
to check that they're running on a compatible scripting engine, just
checking for the existence of document.getElementById is the simple way
(If there are better ways then I'm always open to learning). But I'm
presented with an issue, suppose for example I wanted to emulate the
datalist element for a text box. I can use the DOM and some on-the fly
CSS to build a Javascript emulated datalist, but how would one go about
ensuring that if/when it encounters a browser that can handle the
datalist that it does not execute? This is probably quite an open
question and yes I'm aware of the embedding-a-select-inside-the-datalist
solution to this particular example, but the general question remains:
How to script WF2 functionality for current browsers in a way that both
degrades AND yields to the UA when it can handle the functionality natively?

Ric Hardacre
http://www.cyclomedia.co.uk/



Re: [whatwg] Detecting Web Forms for future proof scripts?

2006-10-02 Thread Shawn Wilsher

This project appears to be dead for over a year now. It seems to have at
least intention to support Gecko, but I couldn't get it to work properly
in Firefox.


Just because the project appears to be dead doesn't mean you should
just disregard all the work that has been done with it before.  It's
original aim is only for IE (as stated in the description).  However,
it has a large amount of work already done - why reinvent the wheel?

Cheers,

Shawn


Re: [whatwg] Web Forms 2.0 in Gecko design document

2006-08-18 Thread Shawn Wilsher

Gervase Markham [EMAIL PROTECTED] wrote:

Given that, as you state, Web Forms 2.0 is a big specification, I'd be
interested in some ideas about what priority you plan to give to
different bits of the spec. Is it just whatever anyone wants to work
on? Or are we going to prioritise things implemented by others, or
things we agree with other browser vendors are most useful, or things
web authors are shouting for loudest?


Alex and myself intend to implement everything.  As for order of
implementation, I don't know if we've put much thought into that.

Shawn