From bc979 at lafn.org Thu May 3 16:13:05 2012 From: bc979 at lafn.org (Doug Hardie) Date: Thu, 3 May 2012 16:13:05 -0700 Subject: [html5] Large Datalist Message-ID: <84DFC579-23DB-4ABD-A018-A3A77874DECB@lafn.org> I have a large datalist that I would like to store in a file that can be downloaded to the browser when the user first establishes a session and then is used by the browser much like a javascript file. Is there any way to do that? From tatham at oddie.com.au Thu May 3 16:17:21 2012 From: tatham at oddie.com.au (Tatham Oddie) Date: Thu, 3 May 2012 23:17:21 +0000 Subject: [html5] Large Datalist In-Reply-To: <84DFC579-23DB-4ABD-A018-A3A77874DECB@lafn.org> References: <84DFC579-23DB-4ABD-A018-A3A77874DECB@lafn.org> Message-ID: <913F550AEE09194E9D4B5BFB9CF3FD4B4B78570F@EXMBX08.netplexity.local> Store it as JSON and load it as a .js file? -- Tatham -----Original Message----- From: help-bounces at lists.whatwg.org [mailto:help-bounces at lists.whatwg.org] On Behalf Of Doug Hardie Sent: Friday, 4 May 2012 9:13 AM To: help at lists.whatwg.org Subject: [html5] Large Datalist I have a large datalist that I would like to store in a file that can be downloaded to the browser when the user first establishes a session and then is used by the browser much like a javascript file. Is there any way to do that? _______________________________________________ Help mailing list Help at lists.whatwg.org http://lists.whatwg.org/listinfo.cgi/help-whatwg.org From bc979 at lafn.org Thu May 3 23:17:29 2012 From: bc979 at lafn.org (Doug Hardie) Date: Thu, 3 May 2012 23:17:29 -0700 Subject: [html5] Large Datalist In-Reply-To: <764B6E38-7E69-4B48-92CF-A77CDB361722@lafn.org> References: <84DFC579-23DB-4ABD-A018-A3A77874DECB@lafn.org> <913F550AEE09194E9D4B5BFB9CF3FD4B4B78570F@EXMBX08.netplexity.local> <764B6E38-7E69-4B48-92CF-A77CDB361722@lafn.org> Message-ID: <3EC2FD56-B5AB-4DFF-98A7-C89237B2FDF8@lafn.org> On 3 May 2012, at 23:16, Doug Hardie wrote: > Great idea. Here is the content of the js file: > > {"DATALIST": { > "ID": "facilities", > "OPTION": [ > {"LABEL": "St. Johns Hospital, Oxnard", "VALUE": "St. Johns"}, > {"LABEL": "Pleasant Valley, Camarillo", "VALUE": "Pleasant Valley"}, > {"LABEL": "Los Robles Hospital, Thousand Oaks", "VALUE": "Los Robles"} > ] > }} > > Loading it with: > > > > I get an "Unexpected token ":" on the first line. Have I done something wrong? > > > > On 3 May 2012, at 16:17, Tatham Oddie wrote: > >> Store it as JSON and load it as a .js file? >> >> -- Tatham >> >> >> -----Original Message----- >> From: help-bounces at lists.whatwg.org [mailto:help-bounces at lists.whatwg.org] On Behalf Of Doug Hardie >> Sent: Friday, 4 May 2012 9:13 AM >> To: help at lists.whatwg.org >> Subject: [html5] Large Datalist >> >> I have a large datalist that I would like to store in a file that can be downloaded to the browser when the user first establishes a session and then is used by the browser much like a javascript file. Is there any way to do that? >> _______________________________________________ >> Help mailing list >> Help at lists.whatwg.org >> http://lists.whatwg.org/listinfo.cgi/help-whatwg.org >> > From tatham at oddie.com.au Thu May 3 23:29:26 2012 From: tatham at oddie.com.au (Tatham Oddie) Date: Fri, 4 May 2012 06:29:26 +0000 Subject: [html5] Large Datalist In-Reply-To: <3EC2FD56-B5AB-4DFF-98A7-C89237B2FDF8@lafn.org> References: <84DFC579-23DB-4ABD-A018-A3A77874DECB@lafn.org> <913F550AEE09194E9D4B5BFB9CF3FD4B4B78570F@EXMBX08.netplexity.local> <764B6E38-7E69-4B48-92CF-A77CDB361722@lafn.org> <3EC2FD56-B5AB-4DFF-98A7-C89237B2FDF8@lafn.org> Message-ID: <913F550AEE09194E9D4B5BFB9CF3FD4B4B785D5E@EXMBX08.netplexity.local> You'll need to put it in a variable to access it later. var datalist = { "ID": "facilities", "OPTION": [ {"LABEL": "St. Johns Hospital, Oxnard", "VALUE": "St. Johns"}, {"LABEL": "Pleasant Valley, Camarillo", "VALUE": "Pleasant Valley"}, {"LABEL": "Los Robles Hospital, Thousand Oaks", "VALUE": "Los Robles"} ] }; -- Tatham -----Original Message----- From: Doug Hardie [mailto:bc979 at lafn.org] Sent: Friday, 4 May 2012 4:17 PM To: Tatham Oddie; help at lists.whatwg.org Subject: Re: [html5] Large Datalist On 3 May 2012, at 23:16, Doug Hardie wrote: > Great idea. Here is the content of the js file: > > {"DATALIST": { > "ID": "facilities", > "OPTION": [ > {"LABEL": "St. Johns Hospital, Oxnard", "VALUE": "St. Johns"}, > {"LABEL": "Pleasant Valley, Camarillo", "VALUE": "Pleasant Valley"}, > {"LABEL": "Los Robles Hospital, Thousand Oaks", "VALUE": "Los Robles"} > ] > }} > > Loading it with: > > > > I get an "Unexpected token ":" on the first line. Have I done something wrong? > > > > On 3 May 2012, at 16:17, Tatham Oddie wrote: > >> Store it as JSON and load it as a .js file? >> >> -- Tatham >> >> >> -----Original Message----- >> From: help-bounces at lists.whatwg.org [mailto:help-bounces at lists.whatwg.org] On Behalf Of Doug Hardie >> Sent: Friday, 4 May 2012 9:13 AM >> To: help at lists.whatwg.org >> Subject: [html5] Large Datalist >> >> I have a large datalist that I would like to store in a file that can be downloaded to the browser when the user first establishes a session and then is used by the browser much like a javascript file. Is there any way to do that? >> _______________________________________________ >> Help mailing list >> Help at lists.whatwg.org >> http://lists.whatwg.org/listinfo.cgi/help-whatwg.org >> > From bc979 at lafn.org Fri May 4 00:10:07 2012 From: bc979 at lafn.org (Doug Hardie) Date: Fri, 4 May 2012 00:10:07 -0700 Subject: [html5] Large Datalist In-Reply-To: <913F550AEE09194E9D4B5BFB9CF3FD4B4B785D5E@EXMBX08.netplexity.local> References: <84DFC579-23DB-4ABD-A018-A3A77874DECB@lafn.org> <913F550AEE09194E9D4B5BFB9CF3FD4B4B78570F@EXMBX08.netplexity.local> <764B6E38-7E69-4B48-92CF-A77CDB361722@lafn.org> <3EC2FD56-B5AB-4DFF-98A7-C89237B2FDF8@lafn.org> <913F550AEE09194E9D4B5BFB9CF3FD4B4B785D5E@EXMBX08.netplexity.local> Message-ID: <45C79668-825B-470F-8CD3-4FF0C4EFFCF3@lafn.org> That certainly eliminates the error and now I see that script in the browser. I am unable to figure out how to reference a variable in a HTML element. I tried the following but it doesn't work (I didn't think it would): . It kept facilities as a string rather than using the var. The following attempt to just check the var also failed: That gives an alert dialog with [object Object]. I suspect I will need something like " You'll need to put it in a variable to access it later. > > var datalist = { > "ID": "facilities", > "OPTION": [ > {"LABEL": "St. Johns Hospital, Oxnard", "VALUE": "St. Johns"}, > {"LABEL": "Pleasant Valley, Camarillo", "VALUE": "Pleasant Valley"}, > {"LABEL": "Los Robles Hospital, Thousand Oaks", "VALUE": "Los Robles"} > ] > }; > > -- Tatham > > -----Original Message----- > From: Doug Hardie [mailto:bc979 at lafn.org] > Sent: Friday, 4 May 2012 4:17 PM > To: Tatham Oddie; help at lists.whatwg.org > Subject: Re: [html5] Large Datalist > > > On 3 May 2012, at 23:16, Doug Hardie wrote: > >> Great idea. Here is the content of the js file: >> >> {"DATALIST": { >> "ID": "facilities", >> "OPTION": [ >> {"LABEL": "St. Johns Hospital, Oxnard", "VALUE": "St. Johns"}, >> {"LABEL": "Pleasant Valley, Camarillo", "VALUE": "Pleasant Valley"}, >> {"LABEL": "Los Robles Hospital, Thousand Oaks", "VALUE": "Los Robles"} >> ] >> }} >> >> Loading it with: >> >> >> >> I get an "Unexpected token ":" on the first line. Have I done something wrong? >> >> >> >> On 3 May 2012, at 16:17, Tatham Oddie wrote: >> >>> Store it as JSON and load it as a .js file? >>> >>> -- Tatham >>> >>> >>> -----Original Message----- >>> From: help-bounces at lists.whatwg.org [mailto:help-bounces at lists.whatwg.org] On Behalf Of Doug Hardie >>> Sent: Friday, 4 May 2012 9:13 AM >>> To: help at lists.whatwg.org >>> Subject: [html5] Large Datalist >>> >>> I have a large datalist that I would like to store in a file that can be downloaded to the browser when the user first establishes a session and then is used by the browser much like a javascript file. Is there any way to do that? >>> _______________________________________________ >>> Help mailing list >>> Help at lists.whatwg.org >>> http://lists.whatwg.org/listinfo.cgi/help-whatwg.org >>> >> > > From simonp at opera.com Fri May 4 03:44:39 2012 From: simonp at opera.com (Simon Pieters) Date: Fri, 04 May 2012 12:44:39 +0200 Subject: [html5] Large Datalist In-Reply-To: <45C79668-825B-470F-8CD3-4FF0C4EFFCF3@lafn.org> References: <84DFC579-23DB-4ABD-A018-A3A77874DECB@lafn.org> <913F550AEE09194E9D4B5BFB9CF3FD4B4B78570F@EXMBX08.netplexity.local> <764B6E38-7E69-4B48-92CF-A77CDB361722@lafn.org> <3EC2FD56-B5AB-4DFF-98A7-C89237B2FDF8@lafn.org> <913F550AEE09194E9D4B5BFB9CF3FD4B4B785D5E@EXMBX08.netplexity.local> <45C79668-825B-470F-8CD3-4FF0C4EFFCF3@lafn.org> Message-ID: On Fri, 04 May 2012 09:10:07 +0200, Doug Hardie wrote: > That certainly eliminates the error and now I see that script in the > browser. I am unable to figure out how to reference a variable in a > HTML element. I tried the following but it doesn't work (I didn't think > it would): > > . > > It kept facilities as a string rather than using the var. > > The following attempt to just check the var also failed: > > > > That gives an alert dialog with [object Object]. > > I suspect I will need something like " I need to get the variable working first. Fetch the JSON file with XHR and use JSON.parse, then populate a with the data. http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1509 > > On 3 May 2012, at 23:29, Tatham Oddie wrote: > >> You'll need to put it in a variable to access it later. >> >> var datalist = { >> "ID": "facilities", >> "OPTION": [ >> {"LABEL": "St. Johns Hospital, Oxnard", "VALUE": "St. >> Johns"}, >> {"LABEL": "Pleasant Valley, Camarillo", "VALUE": "Pleasant >> Valley"}, >> {"LABEL": "Los Robles Hospital, Thousand Oaks", "VALUE": >> "Los Robles"} >> ] >> }; I wouldn't recommend doing this since it executes it as code, which is a potential risk. -- Simon Pieters Opera Software From mfidelman at meetinghouse.net Mon May 7 09:35:40 2012 From: mfidelman at meetinghouse.net (Miles Fidelman) Date: Mon, 07 May 2012 12:35:40 -0400 Subject: [html5] AppCache <-> HTTP interactions when offline Message-ID: <4FA7F9DC.5080002@meetinghouse.net> Hi Folks, I'm looking at alternative ways to edit documents in a browser, then store the results - that will work both online and offline. Something that I can't seem to find documented anywhere is the behavior of AppCache vis-a-vis any HTTP operation other than GET. In particular, if one uses JavaScript to modify the DOM on an active page, then tries to PUT a replacement page - what is a browser supposed to do when it's offline? What do current browsers actually do? Is any of this documented anywhere. Come to think of it... is there any documentation on how browsers should/do respond to changes to active documents (e.g., if one uses JavaScript to modify the DOM then tries to save the page as a file - what should/does get saved)? Pointers to standards, design documents, presentations, would be very much appreciated. Thanks much, Miles Fidelman -- In theory, there is no difference between theory and practice. In practice, there is. .... Yogi Berra From weirdave at aol.com Mon May 7 12:31:31 2012 From: weirdave at aol.com (R David Paine III / WeirDave) Date: Mon, 7 May 2012 15:31:31 -0400 (EDT) Subject: [html5] ASP and Random Text Files Message-ID: <8CEFA9F239D1F3E-1D78-5722@webmail-d129.sysops.aol.com> I am a casual web developer with simplistic sites that I work on for barter. My personal website has been up for over two decades and still has pretty decent traffic, but I would like to increase that by including my poetry on the website but I don't feel like making a page for each poem as I have a couple of hundred. I was wondering if there was a way to randomly include from a folder of my works a poem a day or something like that. I have them in word doc format and text at the moment. I used ASP to make formatting easier and have been using it in its simple form for awhile and I am certain there are more advanced features I am certain I am missing. Any assistance would be appreciated. R David Paine III / WeirDave weirdave at aol.com Find me at about.me/weirdave and http://www.weirdave.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at nms.de Mon May 7 12:46:56 2012 From: andy at nms.de (Andy Wenk) Date: Mon, 7 May 2012 21:46:56 +0200 Subject: [html5] ASP and Random Text Files In-Reply-To: <8CEFA9F239D1F3E-1D78-5722@webmail-d129.sysops.aol.com> References: <8CEFA9F239D1F3E-1D78-5722@webmail-d129.sysops.aol.com> Message-ID: Hi David, why not putting the poems (txt format) in a folder structure eg: + year + month and refer to them via a link you put into a poems.html page:

2011

This would be the simplest way. I guess there is also a way to create a list with ASP. But you should also give JavaScript and AJAX a try. A good starting point would be to use http://www.jquery.com. You could create a simple data-structure in JavaScript which is corresponding to the folder structure with the poems. You could open the text-files (http://api.jquery.com/load/) and put the contents to the page (http://api.jquery.com/append/, http://api.jquery.com/html/). So you would have one poems.html page and change the content dynamically with AJAX and the support of jQuery. Hope this is kind of a starting point ;-) Cheers Andy On 7 May 2012 21:31, R David Paine III / WeirDave wrote: > I am a casual web developer with simplistic sites that I work on for barter. > My personal website has been up for over two decades and still has pretty > decent traffic, but I would like to increase that by including my poetry on > the website but I don't feel like making a page for each poem as I have a > couple of hundred. I was wondering if there was a way to randomly include > from a folder of my works a poem a day or something like that. I have them > in word doc format and text at the moment. I used ASP to make formatting > easier and have been using it in its simple form for awhile and I am certain > there are more advanced features I am certain I am missing. Any assistance > would be appreciated. > > > R David Paine III / WeirDave > weirdave at aol.com > Find me at about.me/weirdave and http://www.weirdave.com > > _______________________________________________ > Help mailing list > Help at lists.whatwg.org > http://lists.whatwg.org/listinfo.cgi/help-whatwg.org > -- Andy Wenk Hamburg - Germany RockIt! "CouchDB - Das Praxisbuch f?r Entwickler und Administratoren" http://www.galileocomputing.de/2462 http://www.couchdb-buch.de +++ english version is coming +++ http://www.couchdb-book.com "PostgreSQL 8.4: Das Praxisbuch" http://www.galileocomputing.de/2008 http://www.pg-praxisbuch.de From themoran2 at gmail.com Tue May 8 13:02:17 2012 From: themoran2 at gmail.com (Marcus Hansson) Date: Tue, 8 May 2012 22:02:17 +0200 Subject: [html5] ASP and Random Text Files In-Reply-To: <8CEFA9F239D1F3E-1D78-5722@webmail-d129.sysops.aol.com> References: <8CEFA9F239D1F3E-1D78-5722@webmail-d129.sysops.aol.com> Message-ID: Why not put the data in a database? That way you'll be able to get a random (or just about any) poem with a single file. Unfortunately I can't help you with asp (never used it), but you could take a look at the following for some reference: http://net.tutsplus.com/tutorials/databases/sql-for-beginners/ http://www.w3schools.com/aspnet/aspnet_dbconnection.asp Also, as mentioned earlier, you could use Javascript and either link to the file or embed it with a frame or what-not. With some clever naming convention of your files (e.g. poem1.doc, poem2.doc, etc.), you could use something like (alert: pseudo-code): // get a random number between 1 and 100 // (of course, this should map to your filenames in some way) var article_id = Math.floor((Math.random()*100)); // and here you pull it in with ajax, or simply just create a link node in the html var article = .... //Marcus 2012/5/7 R David Paine III / WeirDave > I am a casual web developer with simplistic sites that I work on for > barter. My personal website has been up for over two decades and still has > pretty decent traffic, but I would like to increase that by including my > poetry on the website but I don't feel like making a page for each poem as > I have a couple of hundred. I was wondering if there was a way to randomly > include from a folder of my works a poem a day or something like that. I > have them in word doc format and text at the moment. I used ASP to make > formatting easier and have been using it in its simple form for awhile and > I am certain there are more advanced features I am certain I am missing. > Any assistance would be appreciated. > > > R David Paine III / WeirDave > weirdave at aol.com > Find me at about.me/weirdave and http://www.weirdave.com > > > _______________________________________________ > Help mailing list > Help at lists.whatwg.org > http://lists.whatwg.org/listinfo.cgi/help-whatwg.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shevche24 at gmail.com Tue May 8 19:25:44 2012 From: shevche24 at gmail.com (=?UTF-8?B?5YKF5oyv5rSL?=) Date: Wed, 9 May 2012 10:25:44 +0800 Subject: [html5] confirm 0eb8cb1abb8612425c29099d55625ec2924fe8fe In-Reply-To: References: Message-ID: ---------- Forwarded message ---------- From: Date: 9 May 2012 10:24 Subject: confirm 0eb8cb1abb8612425c29099d55625ec2924fe8fe To: shevche24 at gmail.com Mailing list subscription confirmation notice for mailing list Help We have received a request from 111.78.108.34 for subscription of your email address, "shevche24 at gmail.com", to the help at lists.whatwg.org mailing list. To confirm that you want to be added to this mailing list, simply reply to this message, keeping the Subject: header intact. Or visit this web page: http://lists.whatwg.org/confirm.cgi/help-whatwg.org/0eb8cb1abb8612425c29099d55625ec2924fe8fe Or include the following line -- and only the following line -- in a message to help-request at lists.whatwg.org: confirm 0eb8cb1abb8612425c29099d55625ec2924fe8fe Note that simply sending a `reply' to this message should work from most mail readers, since that usually leaves the Subject: line in the right form (additional "Re:" text in the Subject: is okay). If you do not wish to be subscribed to this list, please simply disregard this message. If you think you are being maliciously subscribed to the list, or have any other questions, send them to help-owner at lists.whatwg.org. -------------- next part -------------- An HTML attachment was scrubbed... URL: From derernst at gmx.ch Mon May 14 05:14:25 2012 From: derernst at gmx.ch (Markus Ernst) Date: Mon, 14 May 2012 14:14:25 +0200 Subject: [html5] Thread about runat (or "server") attribute in WHATWG mailing list Message-ID: <4FB0F721.5040204@gmx.ch> Hello I hope this is the appropriate place for my question; otherwise feel free to ignore it. I read a discussion on an attribute to specify server-side Javascript in the WHATWG mailing list. Now I do not know a lot about server-side Javascript, but I know that server-side code does usually (well, at least in the scripting languages I am familiar with) not appear in HTML, but rather the results of the server-side execution of that code. Thus I am very surprised to read HTML experts discuss about server-side stuff. Why should server-side code appear in the HTML spec? Thanks for enlightening me! Markus From svartman95 at gmail.com Mon May 14 05:54:13 2012 From: svartman95 at gmail.com (Bjartur Thorlacius) Date: Mon, 14 May 2012 12:54:13 +0000 Subject: [html5] Thread about runat (or "server") attribute in WHATWG mailing list In-Reply-To: <4FB0F721.5040204@gmx.ch> References: <4FB0F721.5040204@gmx.ch> Message-ID: On 5/14/12, Markus Ernst wrote: > I read a discussion on an attribute to specify server-side Javascript in > the WHATWG mailing list. Now I do not know a lot about server-side > Javascript, but I know that server-side code does usually (well, at > least in the scripting languages I am familiar with) not appear in HTML, > but rather the results of the server-side execution of that code. Thus I > am very surprised to read HTML experts discuss about server-side stuff. > Why should server-side code appear in the HTML spec? > The discussion is not so much about standardizing server-side code, but rather about reserving the attribute for internal usage. That is, rather than defining semantics for @runat or @server, WHATWG would simply promise to never standardize an attribute so named for other purposes. Reserving the attribute would allow servers to use a strict superset of HTML internally without worrying about forward-compatibility. If, on the other hand, an independent standardization group or any HTML generator decided to start using @server without ever contacting WHATWG, the WHATWG might incompatibly decide to use @server for something else, perhaps web worker related. That would make the HTML generators markup language into a subtly incompatible dialect of HTML, instead of a compatible superset. That can be resolved by using a different syntax that will not become valid HTML in the foreseeable future. In theory, SGML would have made this easier, but in practice SGML is too general and the standard never was followed completely by every page out there. But server-side includes solved this quite nicely. But if you prefer a syntax that looks like HTML, smells like HTML, parses like HTML and could validate as HTML - you'll have to prevent it from becoming valid differently. And standards groups are precisely the place to do that sort of thing. From bc979 at lafn.org Wed May 16 22:41:30 2012 From: bc979 at lafn.org (Doug Hardie) Date: Wed, 16 May 2012 22:41:30 -0700 Subject: [html5] Large Datalist In-Reply-To: References: <84DFC579-23DB-4ABD-A018-A3A77874DECB@lafn.org> <913F550AEE09194E9D4B5BFB9CF3FD4B4B78570F@EXMBX08.netplexity.local> <764B6E38-7E69-4B48-92CF-A77CDB361722@lafn.org> <3EC2FD56-B5AB-4DFF-98A7-C89237B2FDF8@lafn.org> <913F550AEE09194E9D4B5BFB9CF3FD4B4B785D5E@EXMBX08.netplexity.local> <45C79668-825B-470F-8CD3-4FF0C4EFFCF3@lafn.org> Message-ID: <927572EC-7F80-4607-9183-0705CB8E2F4C@lafn.org> On 4 May 2012, at 03:44, Simon Pieters wrote: > On Fri, 04 May 2012 09:10:07 +0200, Doug Hardie wrote: > >> That certainly eliminates the error and now I see that script in the browser. I am unable to figure out how to reference a variable in a HTML element. I tried the following but it doesn't work (I didn't think it would): >> >> . >> >> It kept facilities as a string rather than using the var. >> >> The following attempt to just check the var also failed: >> >> >> >> That gives an alert dialog with [object Object]. >> >> I suspect I will need something like " > Fetch the JSON file with XHR and use JSON.parse, then populate a with the data. > > http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1509 > > >> >> On 3 May 2012, at 23:29, Tatham Oddie wrote: >> >>> You'll need to put it in a variable to access it later. >>> >>> var datalist = { >>> "ID": "facilities", >>> "OPTION": [ >>> {"LABEL": "St. Johns Hospital, Oxnard", "VALUE": "St. Johns"}, >>> {"LABEL": "Pleasant Valley, Camarillo", "VALUE": "Pleasant Valley"}, >>> {"LABEL": "Los Robles Hospital, Thousand Oaks", "VALUE": "Los Robles"} >>> ] >>> }; > > I wouldn't recommend doing this since it executes it as code, which is a potential risk. Now that the school year is over, all the finals graded and grades entered, I can get back to this. I found what appears to be a simpler approach. In the js file is: var DATALIST = "" + ""; then in the HTML is: This approach seems quite simple and works well with 3 entries. However, when there are several hundred entries is it going to have scaling issues? From webmaster at tsmchughs.com Sat May 19 21:35:53 2012 From: webmaster at tsmchughs.com (Brian Tremblay) Date: Sat, 19 May 2012 21:35:53 -0700 Subject: [html5] microdata and the dl element Message-ID: <4FB874A9.6030006@tsmchughs.com> I've marked up a restaurant menu using the
element, with a
for each item, followed by 2 or more
elements, one for price, description, and, where appropriate, additional options. I want to add microdata product markup (http://schema.org/Product) but can't find a way to do it. It seems like I need a wrapper for each menu item, which I sort of think should be there anyways. Can such a thing be added to html5? Perhaps , like so:
Artichoke Hearts Au Gratin
$6.50
baked artichoke hearts, with Irish soda bread
Peel & Eat Shrimp
$7.50
half pound of chilled shrimp with cocktail sauce
Barring the addition of a new element to be nested inside
, the only solution I can see is to make each item its own description list, but that would be grossly abusive. (Does one item really constitute a list? Menu url: http://www.tsmchughs.com/menus/dinner Any ideas? -- Brian Tremblay From bhawkeslewis at googlemail.com Sun May 20 01:01:20 2012 From: bhawkeslewis at googlemail.com (Benjamin Hawkes-Lewis) Date: Sun, 20 May 2012 09:01:20 +0100 Subject: [html5] microdata and the dl element In-Reply-To: <4FB874A9.6030006@tsmchughs.com> References: <4FB874A9.6030006@tsmchughs.com> Message-ID: On Sun, May 20, 2012 at 5:35 AM, Brian Tremblay wrote: > I've marked up a restaurant menu using the
element, with a
for > each item, followed by 2 or more
elements, one for price, description, > and, where appropriate, additional options. > > I want to add microdata product markup (http://schema.org/Product) but can't > find a way to do it. It seems like I need a wrapper for each menu item No. You can use @itemref: http://www.whatwg.org/specs/web-apps/current-work/multipage/microdata.html#attr-itemref For example:
Artichoke Hearts Au Gratin
$6.50
Diced artichoke hearts baked in a cheddar-parmesan sauce. Served with our Irish soda bread and molasses wheat bread.
Peel & Eat Shrimp
$7.50
A half pound of chilled shrimp with our cocktail sauce.
> which I sort of think should be there anyways. This has been discussed many times before, mostly recently at: http://www.w3.org/Search/Mail/Public/advanced_search?keywords=&hdr-1-name=subject&hdr-1-query=%3Cdi%3E+please&hdr-2-name=from&hdr-2-query=&hdr-3-name=message-id&hdr-3-query=&period_month=&period_year=&index-grp=Public__FULL&index-type=t&type-index=public-whatwg-archive&resultsperpage=100&sortby=date-asc The editor's take was that features should be added to CSS to support styling definition names and values as groups. -- Benjamin Hawkes-Lewis From webmaster at tsmchughs.com Sun May 20 01:35:17 2012 From: webmaster at tsmchughs.com (Brian Tremblay) Date: Sun, 20 May 2012 01:35:17 -0700 Subject: [html5] microdata and the dl element In-Reply-To: References: <4FB874A9.6030006@tsmchughs.com> Message-ID: <4FB8ACC5.6060604@tsmchughs.com> On 5/20/12 1:01 AM, Benjamin Hawkes-Lewis wrote: > On Sun, May 20, 2012 at 5:35 AM, Brian Tremblay wrote: >> I've marked up a restaurant menu using the
element, with a
for >> each item, followed by 2 or more
elements, one for price, description, >> and, where appropriate, additional options. >> >> I want to add microdata product markup (http://schema.org/Product) but can't >> find a way to do it. It seems like I need a wrapper for each menu item > > No. You can use @itemref: > >
>
itemscope > itemtype=http://schema.org/Product > itemref="artichokes-offers artichokes-description"> > Artichoke Hearts Au Gratin >
>
itemprop=offers > itemscope > itemtype=http://schema.org/Offer> > $6.50 >
>
> Diced artichoke hearts baked in a cheddar-parmesan sauce. > Served with our Irish soda bread and molasses wheat bread. >
> >
itemscope > itemtype=http://schema.org/Product > itemref="shrimp-cocktail-offers shrimp-cocktail-description"> > Peel& Eat Shrimp >
>
itemprop=offers > itemscope > itemtype=http://schema.org/Offer> > $7.50 >
>
> A half pound of chilled shrimp with our cocktail sauce. >
> >
Yikes! That's a lot more markup than the original. And I'd have to manage unique ids for each menu item, too. It's getting mighty complicated. :-( >> which I sort of think should be there anyways. > > The editor's take was that features should be added to CSS to support > styling definition names and values as groups. I'd agree. But my case does not involve styling. It involves trees and subtrees and scoping. Without a there's no clear item parent for any
or
element. -- Brian Tremblay From jay at peepo.com Mon May 21 00:58:15 2012 From: jay at peepo.com (jonathan chetwynd) Date: Mon, 21 May 2012 08:58:15 +0100 Subject: [html5] Forms: how to replace checkbox with active graphic? Message-ID: <53AE532A-50D5-4272-90F1-5C796D0BE704@peepo.com> can anyone point me to examples of active graphics in html5 forms? similarly for radio buttons? is there a technical description, or specification? regards Jonathan Chetwynd ~:" jay at peepo.com http://www.peepo.com +44 (0) 20 7978 1764 -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.chetwynd at btinternet.com Mon May 21 00:59:25 2012 From: j.chetwynd at btinternet.com (Jonathan Chetwynd) Date: Mon, 21 May 2012 08:59:25 +0100 Subject: [html5] Forms: how to replace checkbox with active graphic? Message-ID: can anyone point me to examples of active graphics in html5 forms? similarly for radio buttons? is there a technical description, or specification? regards Jonathan Chetwynd jay at peepo.com From mampir at lavabit.com Mon May 21 14:09:12 2012 From: mampir at lavabit.com (Mampir) Date: Tue, 22 May 2012 00:09:12 +0300 Subject: [html5] The specification for offline use Message-ID: <20120521210912.GA7944@localhost> Hi! How or where can I get the current version of the HTML specification for easy offline use? I want to be able to write HTML code with the help of the current specification (Web Dev Edition or not), without a connection to Internet. From andy at nms.de Mon May 21 23:10:57 2012 From: andy at nms.de (Andy Wenk) Date: Tue, 22 May 2012 08:10:57 +0200 Subject: [html5] The specification for offline use In-Reply-To: <20120521210912.GA7944@localhost> References: <20120521210912.GA7944@localhost> Message-ID: Hi, On 21 May 2012 23:09, Mampir wrote: > Hi! > > How or where can I get the current version of the HTML specification > for easy offline use? ?I want to be able to write HTML code with the > help of the current specification (Web Dev Edition or not), without a > connection to Internet. one way is to use wget -r http://your.html5specdomain.com The program is available via the shell in Linux-like OS http://www.gnu.org/software/wget/ Cheers Andy -- Andy Wenk Hamburg - Germany RockIt! "CouchDB - Das Praxisbuch f?r Entwickler und Administratoren" http://www.galileocomputing.de/2462 http://www.couchdb-buch.de +++ english version is coming +++ http://www.couchdb-book.com "PostgreSQL 8.4: Das Praxisbuch" http://www.galileocomputing.de/2008 http://www.pg-praxisbuch.de From bhawkeslewis at googlemail.com Tue May 22 21:35:05 2012 From: bhawkeslewis at googlemail.com (Benjamin Hawkes-Lewis) Date: Wed, 23 May 2012 05:35:05 +0100 Subject: [html5] Forms: how to replace checkbox with active graphic? In-Reply-To: References: Message-ID: On Mon, May 21, 2012 at 8:59 AM, Jonathan Chetwynd wrote: > can anyone point me to ?examples of active graphics in html5 forms? What are "active graphics"? > similarly for radio buttons? > > is there a technical description, or specification? I assume you're not asking about input type=radio ? what are you asking about though? -- Benjamin Hawkes-Lewis From bhawkeslewis at googlemail.com Tue May 22 21:37:02 2012 From: bhawkeslewis at googlemail.com (Benjamin Hawkes-Lewis) Date: Wed, 23 May 2012 05:37:02 +0100 Subject: [html5] Forms: how to replace checkbox with active graphic? In-Reply-To: References: Message-ID: On Mon, May 21, 2012 at 8:59 AM, Jonathan Chetwynd wrote: > can anyone point me to ?examples of active graphics in html5 forms? > similarly for radio buttons? > > is there a technical description, or specification? http://dvcs.w3.org/hg/webcomponents/raw-file/tip/explainer/index.html might be the most immediately relevant work here. -- Benjamin Hawkes-Lewis From j.chetwynd at btinternet.com Fri May 25 07:31:58 2012 From: j.chetwynd at btinternet.com (Jonathan Chetwynd) Date: Fri, 25 May 2012 15:31:58 +0100 Subject: [html5] Forms: how to replace checkbox with active graphic? In-Reply-To: References: Message-ID: <600B760F-F127-4E77-AF3A-5E6F796C39CF@btinternet.com> On 23 May 2012, at 05:35, Benjamin Hawkes-Lewis wrote: > What are "active graphics"? Ben, currently checkboxes show a tick and radio buttons an active centre. however in a game GUI this may spoil the illusion, particularly where there is a single modality. hence forms may appear as displays, and a highlight suggest active instead of a tick in a checkbox I'm looking for one in a technical specification, or else the wild, but one that specification conformant, ie accessibility etc... regards Jonathan Chetwynd jay at peepo.com From j.chetwynd at btinternet.com Sat May 26 01:45:59 2012 From: j.chetwynd at btinternet.com (Jonathan Chetwynd) Date: Sat, 26 May 2012 09:45:59 +0100 Subject: [html5] Forms: radio example was: how to replace checkbox with active graphic? In-Reply-To: References: Message-ID: <27500C49-1CE4-4D03-B7AB-777A49F59CAD@btinternet.com> Ben http://www.peepo.com now hosts a basic example to discuss the size selector* resembles a radio button, with the one in use having a stroke. however it is not currently a form, and hence script is being used. it may be worthwhile creating a reduced testcase, however one then loses the context, or rationale... regards Jonathan Chetwynd jay at peepo.com only 9 and 19 are selectable as 13 is not implemented yet From bc979 at lafn.org Thu May 3 16:13:05 2012 From: bc979 at lafn.org (Doug Hardie) Date: Thu, 3 May 2012 16:13:05 -0700 Subject: [html5] Large Datalist Message-ID: <84DFC579-23DB-4ABD-A018-A3A77874DECB@lafn.org> I have a large datalist that I would like to store in a file that can be downloaded to the browser when the user first establishes a session and then is used by the browser much like a javascript file. Is there any way to do that? From tatham at oddie.com.au Thu May 3 16:17:21 2012 From: tatham at oddie.com.au (Tatham Oddie) Date: Thu, 3 May 2012 23:17:21 +0000 Subject: [html5] Large Datalist In-Reply-To: <84DFC579-23DB-4ABD-A018-A3A77874DECB@lafn.org> References: <84DFC579-23DB-4ABD-A018-A3A77874DECB@lafn.org> Message-ID: <913F550AEE09194E9D4B5BFB9CF3FD4B4B78570F@EXMBX08.netplexity.local> Store it as JSON and load it as a .js file? -- Tatham -----Original Message----- From: help-bounces at lists.whatwg.org [mailto:help-bounces at lists.whatwg.org] On Behalf Of Doug Hardie Sent: Friday, 4 May 2012 9:13 AM To: help at lists.whatwg.org Subject: [html5] Large Datalist I have a large datalist that I would like to store in a file that can be downloaded to the browser when the user first establishes a session and then is used by the browser much like a javascript file. Is there any way to do that? _______________________________________________ Help mailing list Help at lists.whatwg.org http://lists.whatwg.org/listinfo.cgi/help-whatwg.org From bc979 at lafn.org Thu May 3 23:17:29 2012 From: bc979 at lafn.org (Doug Hardie) Date: Thu, 3 May 2012 23:17:29 -0700 Subject: [html5] Large Datalist In-Reply-To: <764B6E38-7E69-4B48-92CF-A77CDB361722@lafn.org> References: <84DFC579-23DB-4ABD-A018-A3A77874DECB@lafn.org> <913F550AEE09194E9D4B5BFB9CF3FD4B4B78570F@EXMBX08.netplexity.local> <764B6E38-7E69-4B48-92CF-A77CDB361722@lafn.org> Message-ID: <3EC2FD56-B5AB-4DFF-98A7-C89237B2FDF8@lafn.org> On 3 May 2012, at 23:16, Doug Hardie wrote: > Great idea. Here is the content of the js file: > > {"DATALIST": { > "ID": "facilities", > "OPTION": [ > {"LABEL": "St. Johns Hospital, Oxnard", "VALUE": "St. Johns"}, > {"LABEL": "Pleasant Valley, Camarillo", "VALUE": "Pleasant Valley"}, > {"LABEL": "Los Robles Hospital, Thousand Oaks", "VALUE": "Los Robles"} > ] > }} > > Loading it with: > > > > I get an "Unexpected token ":" on the first line. Have I done something wrong? > > > > On 3 May 2012, at 16:17, Tatham Oddie wrote: > >> Store it as JSON and load it as a .js file? >> >> -- Tatham >> >> >> -----Original Message----- >> From: help-bounces at lists.whatwg.org [mailto:help-bounces at lists.whatwg.org] On Behalf Of Doug Hardie >> Sent: Friday, 4 May 2012 9:13 AM >> To: help at lists.whatwg.org >> Subject: [html5] Large Datalist >> >> I have a large datalist that I would like to store in a file that can be downloaded to the browser when the user first establishes a session and then is used by the browser much like a javascript file. Is there any way to do that? >> _______________________________________________ >> Help mailing list >> Help at lists.whatwg.org >> http://lists.whatwg.org/listinfo.cgi/help-whatwg.org >> > From tatham at oddie.com.au Thu May 3 23:29:26 2012 From: tatham at oddie.com.au (Tatham Oddie) Date: Fri, 4 May 2012 06:29:26 +0000 Subject: [html5] Large Datalist In-Reply-To: <3EC2FD56-B5AB-4DFF-98A7-C89237B2FDF8@lafn.org> References: <84DFC579-23DB-4ABD-A018-A3A77874DECB@lafn.org> <913F550AEE09194E9D4B5BFB9CF3FD4B4B78570F@EXMBX08.netplexity.local> <764B6E38-7E69-4B48-92CF-A77CDB361722@lafn.org> <3EC2FD56-B5AB-4DFF-98A7-C89237B2FDF8@lafn.org> Message-ID: <913F550AEE09194E9D4B5BFB9CF3FD4B4B785D5E@EXMBX08.netplexity.local> You'll need to put it in a variable to access it later. var datalist = { "ID": "facilities", "OPTION": [ {"LABEL": "St. Johns Hospital, Oxnard", "VALUE": "St. Johns"}, {"LABEL": "Pleasant Valley, Camarillo", "VALUE": "Pleasant Valley"}, {"LABEL": "Los Robles Hospital, Thousand Oaks", "VALUE": "Los Robles"} ] }; -- Tatham -----Original Message----- From: Doug Hardie [mailto:bc979 at lafn.org] Sent: Friday, 4 May 2012 4:17 PM To: Tatham Oddie; help at lists.whatwg.org Subject: Re: [html5] Large Datalist On 3 May 2012, at 23:16, Doug Hardie wrote: > Great idea. Here is the content of the js file: > > {"DATALIST": { > "ID": "facilities", > "OPTION": [ > {"LABEL": "St. Johns Hospital, Oxnard", "VALUE": "St. Johns"}, > {"LABEL": "Pleasant Valley, Camarillo", "VALUE": "Pleasant Valley"}, > {"LABEL": "Los Robles Hospital, Thousand Oaks", "VALUE": "Los Robles"} > ] > }} > > Loading it with: > > > > I get an "Unexpected token ":" on the first line. Have I done something wrong? > > > > On 3 May 2012, at 16:17, Tatham Oddie wrote: > >> Store it as JSON and load it as a .js file? >> >> -- Tatham >> >> >> -----Original Message----- >> From: help-bounces at lists.whatwg.org [mailto:help-bounces at lists.whatwg.org] On Behalf Of Doug Hardie >> Sent: Friday, 4 May 2012 9:13 AM >> To: help at lists.whatwg.org >> Subject: [html5] Large Datalist >> >> I have a large datalist that I would like to store in a file that can be downloaded to the browser when the user first establishes a session and then is used by the browser much like a javascript file. Is there any way to do that? >> _______________________________________________ >> Help mailing list >> Help at lists.whatwg.org >> http://lists.whatwg.org/listinfo.cgi/help-whatwg.org >> > From bc979 at lafn.org Fri May 4 00:10:07 2012 From: bc979 at lafn.org (Doug Hardie) Date: Fri, 4 May 2012 00:10:07 -0700 Subject: [html5] Large Datalist In-Reply-To: <913F550AEE09194E9D4B5BFB9CF3FD4B4B785D5E@EXMBX08.netplexity.local> References: <84DFC579-23DB-4ABD-A018-A3A77874DECB@lafn.org> <913F550AEE09194E9D4B5BFB9CF3FD4B4B78570F@EXMBX08.netplexity.local> <764B6E38-7E69-4B48-92CF-A77CDB361722@lafn.org> <3EC2FD56-B5AB-4DFF-98A7-C89237B2FDF8@lafn.org> <913F550AEE09194E9D4B5BFB9CF3FD4B4B785D5E@EXMBX08.netplexity.local> Message-ID: <45C79668-825B-470F-8CD3-4FF0C4EFFCF3@lafn.org> That certainly eliminates the error and now I see that script in the browser. I am unable to figure out how to reference a variable in a HTML element. I tried the following but it doesn't work (I didn't think it would): . It kept facilities as a string rather than using the var. The following attempt to just check the var also failed: That gives an alert dialog with [object Object]. I suspect I will need something like " You'll need to put it in a variable to access it later. > > var datalist = { > "ID": "facilities", > "OPTION": [ > {"LABEL": "St. Johns Hospital, Oxnard", "VALUE": "St. Johns"}, > {"LABEL": "Pleasant Valley, Camarillo", "VALUE": "Pleasant Valley"}, > {"LABEL": "Los Robles Hospital, Thousand Oaks", "VALUE": "Los Robles"} > ] > }; > > -- Tatham > > -----Original Message----- > From: Doug Hardie [mailto:bc979 at lafn.org] > Sent: Friday, 4 May 2012 4:17 PM > To: Tatham Oddie; help at lists.whatwg.org > Subject: Re: [html5] Large Datalist > > > On 3 May 2012, at 23:16, Doug Hardie wrote: > >> Great idea. Here is the content of the js file: >> >> {"DATALIST": { >> "ID": "facilities", >> "OPTION": [ >> {"LABEL": "St. Johns Hospital, Oxnard", "VALUE": "St. Johns"}, >> {"LABEL": "Pleasant Valley, Camarillo", "VALUE": "Pleasant Valley"}, >> {"LABEL": "Los Robles Hospital, Thousand Oaks", "VALUE": "Los Robles"} >> ] >> }} >> >> Loading it with: >> >> >> >> I get an "Unexpected token ":" on the first line. Have I done something wrong? >> >> >> >> On 3 May 2012, at 16:17, Tatham Oddie wrote: >> >>> Store it as JSON and load it as a .js file? >>> >>> -- Tatham >>> >>> >>> -----Original Message----- >>> From: help-bounces at lists.whatwg.org [mailto:help-bounces at lists.whatwg.org] On Behalf Of Doug Hardie >>> Sent: Friday, 4 May 2012 9:13 AM >>> To: help at lists.whatwg.org >>> Subject: [html5] Large Datalist >>> >>> I have a large datalist that I would like to store in a file that can be downloaded to the browser when the user first establishes a session and then is used by the browser much like a javascript file. Is there any way to do that? >>> _______________________________________________ >>> Help mailing list >>> Help at lists.whatwg.org >>> http://lists.whatwg.org/listinfo.cgi/help-whatwg.org >>> >> > > From simonp at opera.com Fri May 4 03:44:39 2012 From: simonp at opera.com (Simon Pieters) Date: Fri, 04 May 2012 12:44:39 +0200 Subject: [html5] Large Datalist In-Reply-To: <45C79668-825B-470F-8CD3-4FF0C4EFFCF3@lafn.org> References: <84DFC579-23DB-4ABD-A018-A3A77874DECB@lafn.org> <913F550AEE09194E9D4B5BFB9CF3FD4B4B78570F@EXMBX08.netplexity.local> <764B6E38-7E69-4B48-92CF-A77CDB361722@lafn.org> <3EC2FD56-B5AB-4DFF-98A7-C89237B2FDF8@lafn.org> <913F550AEE09194E9D4B5BFB9CF3FD4B4B785D5E@EXMBX08.netplexity.local> <45C79668-825B-470F-8CD3-4FF0C4EFFCF3@lafn.org> Message-ID: On Fri, 04 May 2012 09:10:07 +0200, Doug Hardie wrote: > That certainly eliminates the error and now I see that script in the > browser. I am unable to figure out how to reference a variable in a > HTML element. I tried the following but it doesn't work (I didn't think > it would): > > . > > It kept facilities as a string rather than using the var. > > The following attempt to just check the var also failed: > > > > That gives an alert dialog with [object Object]. > > I suspect I will need something like " I need to get the variable working first. Fetch the JSON file with XHR and use JSON.parse, then populate a with the data. http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1509 > > On 3 May 2012, at 23:29, Tatham Oddie wrote: > >> You'll need to put it in a variable to access it later. >> >> var datalist = { >> "ID": "facilities", >> "OPTION": [ >> {"LABEL": "St. Johns Hospital, Oxnard", "VALUE": "St. >> Johns"}, >> {"LABEL": "Pleasant Valley, Camarillo", "VALUE": "Pleasant >> Valley"}, >> {"LABEL": "Los Robles Hospital, Thousand Oaks", "VALUE": >> "Los Robles"} >> ] >> }; I wouldn't recommend doing this since it executes it as code, which is a potential risk. -- Simon Pieters Opera Software From mfidelman at meetinghouse.net Mon May 7 09:35:40 2012 From: mfidelman at meetinghouse.net (Miles Fidelman) Date: Mon, 07 May 2012 12:35:40 -0400 Subject: [html5] AppCache <-> HTTP interactions when offline Message-ID: <4FA7F9DC.5080002@meetinghouse.net> Hi Folks, I'm looking at alternative ways to edit documents in a browser, then store the results - that will work both online and offline. Something that I can't seem to find documented anywhere is the behavior of AppCache vis-a-vis any HTTP operation other than GET. In particular, if one uses JavaScript to modify the DOM on an active page, then tries to PUT a replacement page - what is a browser supposed to do when it's offline? What do current browsers actually do? Is any of this documented anywhere. Come to think of it... is there any documentation on how browsers should/do respond to changes to active documents (e.g., if one uses JavaScript to modify the DOM then tries to save the page as a file - what should/does get saved)? Pointers to standards, design documents, presentations, would be very much appreciated. Thanks much, Miles Fidelman -- In theory, there is no difference between theory and practice. In practice, there is. .... Yogi Berra From weirdave at aol.com Mon May 7 12:31:31 2012 From: weirdave at aol.com (R David Paine III / WeirDave) Date: Mon, 7 May 2012 15:31:31 -0400 (EDT) Subject: [html5] ASP and Random Text Files Message-ID: <8CEFA9F239D1F3E-1D78-5722@webmail-d129.sysops.aol.com> I am a casual web developer with simplistic sites that I work on for barter. My personal website has been up for over two decades and still has pretty decent traffic, but I would like to increase that by including my poetry on the website but I don't feel like making a page for each poem as I have a couple of hundred. I was wondering if there was a way to randomly include from a folder of my works a poem a day or something like that. I have them in word doc format and text at the moment. I used ASP to make formatting easier and have been using it in its simple form for awhile and I am certain there are more advanced features I am certain I am missing. Any assistance would be appreciated. R David Paine III / WeirDave weirdave at aol.com Find me at about.me/weirdave and http://www.weirdave.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at nms.de Mon May 7 12:46:56 2012 From: andy at nms.de (Andy Wenk) Date: Mon, 7 May 2012 21:46:56 +0200 Subject: [html5] ASP and Random Text Files In-Reply-To: <8CEFA9F239D1F3E-1D78-5722@webmail-d129.sysops.aol.com> References: <8CEFA9F239D1F3E-1D78-5722@webmail-d129.sysops.aol.com> Message-ID: Hi David, why not putting the poems (txt format) in a folder structure eg: + year + month and refer to them via a link you put into a poems.html page:

2011

This would be the simplest way. I guess there is also a way to create a list with ASP. But you should also give JavaScript and AJAX a try. A good starting point would be to use http://www.jquery.com. You could create a simple data-structure in JavaScript which is corresponding to the folder structure with the poems. You could open the text-files (http://api.jquery.com/load/) and put the contents to the page (http://api.jquery.com/append/, http://api.jquery.com/html/). So you would have one poems.html page and change the content dynamically with AJAX and the support of jQuery. Hope this is kind of a starting point ;-) Cheers Andy On 7 May 2012 21:31, R David Paine III / WeirDave wrote: > I am a casual web developer with simplistic sites that I work on for barter. > My personal website has been up for over two decades and still has pretty > decent traffic, but I would like to increase that by including my poetry on > the website but I don't feel like making a page for each poem as I have a > couple of hundred. I was wondering if there was a way to randomly include > from a folder of my works a poem a day or something like that. I have them > in word doc format and text at the moment. I used ASP to make formatting > easier and have been using it in its simple form for awhile and I am certain > there are more advanced features I am certain I am missing. Any assistance > would be appreciated. > > > R David Paine III / WeirDave > weirdave at aol.com > Find me at about.me/weirdave and http://www.weirdave.com > > _______________________________________________ > Help mailing list > Help at lists.whatwg.org > http://lists.whatwg.org/listinfo.cgi/help-whatwg.org > -- Andy Wenk Hamburg - Germany RockIt! "CouchDB - Das Praxisbuch f?r Entwickler und Administratoren" http://www.galileocomputing.de/2462 http://www.couchdb-buch.de +++ english version is coming +++ http://www.couchdb-book.com "PostgreSQL 8.4: Das Praxisbuch" http://www.galileocomputing.de/2008 http://www.pg-praxisbuch.de From themoran2 at gmail.com Tue May 8 13:02:17 2012 From: themoran2 at gmail.com (Marcus Hansson) Date: Tue, 8 May 2012 22:02:17 +0200 Subject: [html5] ASP and Random Text Files In-Reply-To: <8CEFA9F239D1F3E-1D78-5722@webmail-d129.sysops.aol.com> References: <8CEFA9F239D1F3E-1D78-5722@webmail-d129.sysops.aol.com> Message-ID: Why not put the data in a database? That way you'll be able to get a random (or just about any) poem with a single file. Unfortunately I can't help you with asp (never used it), but you could take a look at the following for some reference: http://net.tutsplus.com/tutorials/databases/sql-for-beginners/ http://www.w3schools.com/aspnet/aspnet_dbconnection.asp Also, as mentioned earlier, you could use Javascript and either link to the file or embed it with a frame or what-not. With some clever naming convention of your files (e.g. poem1.doc, poem2.doc, etc.), you could use something like (alert: pseudo-code): // get a random number between 1 and 100 // (of course, this should map to your filenames in some way) var article_id = Math.floor((Math.random()*100)); // and here you pull it in with ajax, or simply just create a link node in the html var article = .... //Marcus 2012/5/7 R David Paine III / WeirDave > I am a casual web developer with simplistic sites that I work on for > barter. My personal website has been up for over two decades and still has > pretty decent traffic, but I would like to increase that by including my > poetry on the website but I don't feel like making a page for each poem as > I have a couple of hundred. I was wondering if there was a way to randomly > include from a folder of my works a poem a day or something like that. I > have them in word doc format and text at the moment. I used ASP to make > formatting easier and have been using it in its simple form for awhile and > I am certain there are more advanced features I am certain I am missing. > Any assistance would be appreciated. > > > R David Paine III / WeirDave > weirdave at aol.com > Find me at about.me/weirdave and http://www.weirdave.com > > > _______________________________________________ > Help mailing list > Help at lists.whatwg.org > http://lists.whatwg.org/listinfo.cgi/help-whatwg.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shevche24 at gmail.com Tue May 8 19:25:44 2012 From: shevche24 at gmail.com (=?UTF-8?B?5YKF5oyv5rSL?=) Date: Wed, 9 May 2012 10:25:44 +0800 Subject: [html5] confirm 0eb8cb1abb8612425c29099d55625ec2924fe8fe In-Reply-To: References: Message-ID: ---------- Forwarded message ---------- From: Date: 9 May 2012 10:24 Subject: confirm 0eb8cb1abb8612425c29099d55625ec2924fe8fe To: shevche24 at gmail.com Mailing list subscription confirmation notice for mailing list Help We have received a request from 111.78.108.34 for subscription of your email address, "shevche24 at gmail.com", to the help at lists.whatwg.org mailing list. To confirm that you want to be added to this mailing list, simply reply to this message, keeping the Subject: header intact. Or visit this web page: http://lists.whatwg.org/confirm.cgi/help-whatwg.org/0eb8cb1abb8612425c29099d55625ec2924fe8fe Or include the following line -- and only the following line -- in a message to help-request at lists.whatwg.org: confirm 0eb8cb1abb8612425c29099d55625ec2924fe8fe Note that simply sending a `reply' to this message should work from most mail readers, since that usually leaves the Subject: line in the right form (additional "Re:" text in the Subject: is okay). If you do not wish to be subscribed to this list, please simply disregard this message. If you think you are being maliciously subscribed to the list, or have any other questions, send them to help-owner at lists.whatwg.org. -------------- next part -------------- An HTML attachment was scrubbed... URL: From derernst at gmx.ch Mon May 14 05:14:25 2012 From: derernst at gmx.ch (Markus Ernst) Date: Mon, 14 May 2012 14:14:25 +0200 Subject: [html5] Thread about runat (or "server") attribute in WHATWG mailing list Message-ID: <4FB0F721.5040204@gmx.ch> Hello I hope this is the appropriate place for my question; otherwise feel free to ignore it. I read a discussion on an attribute to specify server-side Javascript in the WHATWG mailing list. Now I do not know a lot about server-side Javascript, but I know that server-side code does usually (well, at least in the scripting languages I am familiar with) not appear in HTML, but rather the results of the server-side execution of that code. Thus I am very surprised to read HTML experts discuss about server-side stuff. Why should server-side code appear in the HTML spec? Thanks for enlightening me! Markus From svartman95 at gmail.com Mon May 14 05:54:13 2012 From: svartman95 at gmail.com (Bjartur Thorlacius) Date: Mon, 14 May 2012 12:54:13 +0000 Subject: [html5] Thread about runat (or "server") attribute in WHATWG mailing list In-Reply-To: <4FB0F721.5040204@gmx.ch> References: <4FB0F721.5040204@gmx.ch> Message-ID: On 5/14/12, Markus Ernst wrote: > I read a discussion on an attribute to specify server-side Javascript in > the WHATWG mailing list. Now I do not know a lot about server-side > Javascript, but I know that server-side code does usually (well, at > least in the scripting languages I am familiar with) not appear in HTML, > but rather the results of the server-side execution of that code. Thus I > am very surprised to read HTML experts discuss about server-side stuff. > Why should server-side code appear in the HTML spec? > The discussion is not so much about standardizing server-side code, but rather about reserving the attribute for internal usage. That is, rather than defining semantics for @runat or @server, WHATWG would simply promise to never standardize an attribute so named for other purposes. Reserving the attribute would allow servers to use a strict superset of HTML internally without worrying about forward-compatibility. If, on the other hand, an independent standardization group or any HTML generator decided to start using @server without ever contacting WHATWG, the WHATWG might incompatibly decide to use @server for something else, perhaps web worker related. That would make the HTML generators markup language into a subtly incompatible dialect of HTML, instead of a compatible superset. That can be resolved by using a different syntax that will not become valid HTML in the foreseeable future. In theory, SGML would have made this easier, but in practice SGML is too general and the standard never was followed completely by every page out there. But server-side includes solved this quite nicely. But if you prefer a syntax that looks like HTML, smells like HTML, parses like HTML and could validate as HTML - you'll have to prevent it from becoming valid differently. And standards groups are precisely the place to do that sort of thing. From bc979 at lafn.org Wed May 16 22:41:30 2012 From: bc979 at lafn.org (Doug Hardie) Date: Wed, 16 May 2012 22:41:30 -0700 Subject: [html5] Large Datalist In-Reply-To: References: <84DFC579-23DB-4ABD-A018-A3A77874DECB@lafn.org> <913F550AEE09194E9D4B5BFB9CF3FD4B4B78570F@EXMBX08.netplexity.local> <764B6E38-7E69-4B48-92CF-A77CDB361722@lafn.org> <3EC2FD56-B5AB-4DFF-98A7-C89237B2FDF8@lafn.org> <913F550AEE09194E9D4B5BFB9CF3FD4B4B785D5E@EXMBX08.netplexity.local> <45C79668-825B-470F-8CD3-4FF0C4EFFCF3@lafn.org> Message-ID: <927572EC-7F80-4607-9183-0705CB8E2F4C@lafn.org> On 4 May 2012, at 03:44, Simon Pieters wrote: > On Fri, 04 May 2012 09:10:07 +0200, Doug Hardie wrote: > >> That certainly eliminates the error and now I see that script in the browser. I am unable to figure out how to reference a variable in a HTML element. I tried the following but it doesn't work (I didn't think it would): >> >> . >> >> It kept facilities as a string rather than using the var. >> >> The following attempt to just check the var also failed: >> >> >> >> That gives an alert dialog with [object Object]. >> >> I suspect I will need something like " > Fetch the JSON file with XHR and use JSON.parse, then populate a with the data. > > http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1509 > > >> >> On 3 May 2012, at 23:29, Tatham Oddie wrote: >> >>> You'll need to put it in a variable to access it later. >>> >>> var datalist = { >>> "ID": "facilities", >>> "OPTION": [ >>> {"LABEL": "St. Johns Hospital, Oxnard", "VALUE": "St. Johns"}, >>> {"LABEL": "Pleasant Valley, Camarillo", "VALUE": "Pleasant Valley"}, >>> {"LABEL": "Los Robles Hospital, Thousand Oaks", "VALUE": "Los Robles"} >>> ] >>> }; > > I wouldn't recommend doing this since it executes it as code, which is a potential risk. Now that the school year is over, all the finals graded and grades entered, I can get back to this. I found what appears to be a simpler approach. In the js file is: var DATALIST = "" + ""; then in the HTML is: This approach seems quite simple and works well with 3 entries. However, when there are several hundred entries is it going to have scaling issues? From webmaster at tsmchughs.com Sat May 19 21:35:53 2012 From: webmaster at tsmchughs.com (Brian Tremblay) Date: Sat, 19 May 2012 21:35:53 -0700 Subject: [html5] microdata and the dl element Message-ID: <4FB874A9.6030006@tsmchughs.com> I've marked up a restaurant menu using the
element, with a
for each item, followed by 2 or more
elements, one for price, description, and, where appropriate, additional options. I want to add microdata product markup (http://schema.org/Product) but can't find a way to do it. It seems like I need a wrapper for each menu item, which I sort of think should be there anyways. Can such a thing be added to html5? Perhaps , like so:
Artichoke Hearts Au Gratin
$6.50
baked artichoke hearts, with Irish soda bread
Peel & Eat Shrimp
$7.50
half pound of chilled shrimp with cocktail sauce
Barring the addition of a new element to be nested inside
, the only solution I can see is to make each item its own description list, but that would be grossly abusive. (Does one item really constitute a list? Menu url: http://www.tsmchughs.com/menus/dinner Any ideas? -- Brian Tremblay From bhawkeslewis at googlemail.com Sun May 20 01:01:20 2012 From: bhawkeslewis at googlemail.com (Benjamin Hawkes-Lewis) Date: Sun, 20 May 2012 09:01:20 +0100 Subject: [html5] microdata and the dl element In-Reply-To: <4FB874A9.6030006@tsmchughs.com> References: <4FB874A9.6030006@tsmchughs.com> Message-ID: On Sun, May 20, 2012 at 5:35 AM, Brian Tremblay wrote: > I've marked up a restaurant menu using the
element, with a
for > each item, followed by 2 or more
elements, one for price, description, > and, where appropriate, additional options. > > I want to add microdata product markup (http://schema.org/Product) but can't > find a way to do it. It seems like I need a wrapper for each menu item No. You can use @itemref: http://www.whatwg.org/specs/web-apps/current-work/multipage/microdata.html#attr-itemref For example:
Artichoke Hearts Au Gratin
$6.50
Diced artichoke hearts baked in a cheddar-parmesan sauce. Served with our Irish soda bread and molasses wheat bread.
Peel & Eat Shrimp
$7.50
A half pound of chilled shrimp with our cocktail sauce.
> which I sort of think should be there anyways. This has been discussed many times before, mostly recently at: http://www.w3.org/Search/Mail/Public/advanced_search?keywords=&hdr-1-name=subject&hdr-1-query=%3Cdi%3E+please&hdr-2-name=from&hdr-2-query=&hdr-3-name=message-id&hdr-3-query=&period_month=&period_year=&index-grp=Public__FULL&index-type=t&type-index=public-whatwg-archive&resultsperpage=100&sortby=date-asc The editor's take was that features should be added to CSS to support styling definition names and values as groups. -- Benjamin Hawkes-Lewis From webmaster at tsmchughs.com Sun May 20 01:35:17 2012 From: webmaster at tsmchughs.com (Brian Tremblay) Date: Sun, 20 May 2012 01:35:17 -0700 Subject: [html5] microdata and the dl element In-Reply-To: References: <4FB874A9.6030006@tsmchughs.com> Message-ID: <4FB8ACC5.6060604@tsmchughs.com> On 5/20/12 1:01 AM, Benjamin Hawkes-Lewis wrote: > On Sun, May 20, 2012 at 5:35 AM, Brian Tremblay wrote: >> I've marked up a restaurant menu using the
element, with a
for >> each item, followed by 2 or more
elements, one for price, description, >> and, where appropriate, additional options. >> >> I want to add microdata product markup (http://schema.org/Product) but can't >> find a way to do it. It seems like I need a wrapper for each menu item > > No. You can use @itemref: > >
>
itemscope > itemtype=http://schema.org/Product > itemref="artichokes-offers artichokes-description"> > Artichoke Hearts Au Gratin >
>
itemprop=offers > itemscope > itemtype=http://schema.org/Offer> > $6.50 >
>
> Diced artichoke hearts baked in a cheddar-parmesan sauce. > Served with our Irish soda bread and molasses wheat bread. >
> >
itemscope > itemtype=http://schema.org/Product > itemref="shrimp-cocktail-offers shrimp-cocktail-description"> > Peel& Eat Shrimp >
>
itemprop=offers > itemscope > itemtype=http://schema.org/Offer> > $7.50 >
>
> A half pound of chilled shrimp with our cocktail sauce. >
> >
Yikes! That's a lot more markup than the original. And I'd have to manage unique ids for each menu item, too. It's getting mighty complicated. :-( >> which I sort of think should be there anyways. > > The editor's take was that features should be added to CSS to support > styling definition names and values as groups. I'd agree. But my case does not involve styling. It involves trees and subtrees and scoping. Without a there's no clear item parent for any
or
element. -- Brian Tremblay From jay at peepo.com Mon May 21 00:58:15 2012 From: jay at peepo.com (jonathan chetwynd) Date: Mon, 21 May 2012 08:58:15 +0100 Subject: [html5] Forms: how to replace checkbox with active graphic? Message-ID: <53AE532A-50D5-4272-90F1-5C796D0BE704@peepo.com> can anyone point me to examples of active graphics in html5 forms? similarly for radio buttons? is there a technical description, or specification? regards Jonathan Chetwynd ~:" jay at peepo.com http://www.peepo.com +44 (0) 20 7978 1764 -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.chetwynd at btinternet.com Mon May 21 00:59:25 2012 From: j.chetwynd at btinternet.com (Jonathan Chetwynd) Date: Mon, 21 May 2012 08:59:25 +0100 Subject: [html5] Forms: how to replace checkbox with active graphic? Message-ID: can anyone point me to examples of active graphics in html5 forms? similarly for radio buttons? is there a technical description, or specification? regards Jonathan Chetwynd jay at peepo.com From mampir at lavabit.com Mon May 21 14:09:12 2012 From: mampir at lavabit.com (Mampir) Date: Tue, 22 May 2012 00:09:12 +0300 Subject: [html5] The specification for offline use Message-ID: <20120521210912.GA7944@localhost> Hi! How or where can I get the current version of the HTML specification for easy offline use? I want to be able to write HTML code with the help of the current specification (Web Dev Edition or not), without a connection to Internet. From andy at nms.de Mon May 21 23:10:57 2012 From: andy at nms.de (Andy Wenk) Date: Tue, 22 May 2012 08:10:57 +0200 Subject: [html5] The specification for offline use In-Reply-To: <20120521210912.GA7944@localhost> References: <20120521210912.GA7944@localhost> Message-ID: Hi, On 21 May 2012 23:09, Mampir wrote: > Hi! > > How or where can I get the current version of the HTML specification > for easy offline use? ?I want to be able to write HTML code with the > help of the current specification (Web Dev Edition or not), without a > connection to Internet. one way is to use wget -r http://your.html5specdomain.com The program is available via the shell in Linux-like OS http://www.gnu.org/software/wget/ Cheers Andy -- Andy Wenk Hamburg - Germany RockIt! "CouchDB - Das Praxisbuch f?r Entwickler und Administratoren" http://www.galileocomputing.de/2462 http://www.couchdb-buch.de +++ english version is coming +++ http://www.couchdb-book.com "PostgreSQL 8.4: Das Praxisbuch" http://www.galileocomputing.de/2008 http://www.pg-praxisbuch.de From bhawkeslewis at googlemail.com Tue May 22 21:35:05 2012 From: bhawkeslewis at googlemail.com (Benjamin Hawkes-Lewis) Date: Wed, 23 May 2012 05:35:05 +0100 Subject: [html5] Forms: how to replace checkbox with active graphic? In-Reply-To: References: Message-ID: On Mon, May 21, 2012 at 8:59 AM, Jonathan Chetwynd wrote: > can anyone point me to ?examples of active graphics in html5 forms? What are "active graphics"? > similarly for radio buttons? > > is there a technical description, or specification? I assume you're not asking about input type=radio ? what are you asking about though? -- Benjamin Hawkes-Lewis From bhawkeslewis at googlemail.com Tue May 22 21:37:02 2012 From: bhawkeslewis at googlemail.com (Benjamin Hawkes-Lewis) Date: Wed, 23 May 2012 05:37:02 +0100 Subject: [html5] Forms: how to replace checkbox with active graphic? In-Reply-To: References: Message-ID: On Mon, May 21, 2012 at 8:59 AM, Jonathan Chetwynd wrote: > can anyone point me to ?examples of active graphics in html5 forms? > similarly for radio buttons? > > is there a technical description, or specification? http://dvcs.w3.org/hg/webcomponents/raw-file/tip/explainer/index.html might be the most immediately relevant work here. -- Benjamin Hawkes-Lewis From j.chetwynd at btinternet.com Fri May 25 07:31:58 2012 From: j.chetwynd at btinternet.com (Jonathan Chetwynd) Date: Fri, 25 May 2012 15:31:58 +0100 Subject: [html5] Forms: how to replace checkbox with active graphic? In-Reply-To: References: Message-ID: <600B760F-F127-4E77-AF3A-5E6F796C39CF@btinternet.com> On 23 May 2012, at 05:35, Benjamin Hawkes-Lewis wrote: > What are "active graphics"? Ben, currently checkboxes show a tick and radio buttons an active centre. however in a game GUI this may spoil the illusion, particularly where there is a single modality. hence forms may appear as displays, and a highlight suggest active instead of a tick in a checkbox I'm looking for one in a technical specification, or else the wild, but one that specification conformant, ie accessibility etc... regards Jonathan Chetwynd jay at peepo.com From j.chetwynd at btinternet.com Sat May 26 01:45:59 2012 From: j.chetwynd at btinternet.com (Jonathan Chetwynd) Date: Sat, 26 May 2012 09:45:59 +0100 Subject: [html5] Forms: radio example was: how to replace checkbox with active graphic? In-Reply-To: References: Message-ID: <27500C49-1CE4-4D03-B7AB-777A49F59CAD@btinternet.com> Ben http://www.peepo.com now hosts a basic example to discuss the size selector* resembles a radio button, with the one in use having a stroke. however it is not currently a form, and hence script is being used. it may be worthwhile creating a reduced testcase, however one then loses the context, or rationale... regards Jonathan Chetwynd jay at peepo.com only 9 and 19 are selectable as 13 is not implemented yet From bc979 at lafn.org Thu May 3 16:13:05 2012 From: bc979 at lafn.org (Doug Hardie) Date: Thu, 3 May 2012 16:13:05 -0700 Subject: [html5] Large Datalist Message-ID: <84DFC579-23DB-4ABD-A018-A3A77874DECB@lafn.org> I have a large datalist that I would like to store in a file that can be downloaded to the browser when the user first establishes a session and then is used by the browser much like a javascript file. Is there any way to do that? From tatham at oddie.com.au Thu May 3 16:17:21 2012 From: tatham at oddie.com.au (Tatham Oddie) Date: Thu, 3 May 2012 23:17:21 +0000 Subject: [html5] Large Datalist In-Reply-To: <84DFC579-23DB-4ABD-A018-A3A77874DECB@lafn.org> References: <84DFC579-23DB-4ABD-A018-A3A77874DECB@lafn.org> Message-ID: <913F550AEE09194E9D4B5BFB9CF3FD4B4B78570F@EXMBX08.netplexity.local> Store it as JSON and load it as a .js file? -- Tatham -----Original Message----- From: help-bounces at lists.whatwg.org [mailto:help-bounces at lists.whatwg.org] On Behalf Of Doug Hardie Sent: Friday, 4 May 2012 9:13 AM To: help at lists.whatwg.org Subject: [html5] Large Datalist I have a large datalist that I would like to store in a file that can be downloaded to the browser when the user first establishes a session and then is used by the browser much like a javascript file. Is there any way to do that? _______________________________________________ Help mailing list Help at lists.whatwg.org http://lists.whatwg.org/listinfo.cgi/help-whatwg.org From bc979 at lafn.org Thu May 3 23:17:29 2012 From: bc979 at lafn.org (Doug Hardie) Date: Thu, 3 May 2012 23:17:29 -0700 Subject: [html5] Large Datalist In-Reply-To: <764B6E38-7E69-4B48-92CF-A77CDB361722@lafn.org> References: <84DFC579-23DB-4ABD-A018-A3A77874DECB@lafn.org> <913F550AEE09194E9D4B5BFB9CF3FD4B4B78570F@EXMBX08.netplexity.local> <764B6E38-7E69-4B48-92CF-A77CDB361722@lafn.org> Message-ID: <3EC2FD56-B5AB-4DFF-98A7-C89237B2FDF8@lafn.org> On 3 May 2012, at 23:16, Doug Hardie wrote: > Great idea. Here is the content of the js file: > > {"DATALIST": { > "ID": "facilities", > "OPTION": [ > {"LABEL": "St. Johns Hospital, Oxnard", "VALUE": "St. Johns"}, > {"LABEL": "Pleasant Valley, Camarillo", "VALUE": "Pleasant Valley"}, > {"LABEL": "Los Robles Hospital, Thousand Oaks", "VALUE": "Los Robles"} > ] > }} > > Loading it with: > > > > I get an "Unexpected token ":" on the first line. Have I done something wrong? > > > > On 3 May 2012, at 16:17, Tatham Oddie wrote: > >> Store it as JSON and load it as a .js file? >> >> -- Tatham >> >> >> -----Original Message----- >> From: help-bounces at lists.whatwg.org [mailto:help-bounces at lists.whatwg.org] On Behalf Of Doug Hardie >> Sent: Friday, 4 May 2012 9:13 AM >> To: help at lists.whatwg.org >> Subject: [html5] Large Datalist >> >> I have a large datalist that I would like to store in a file that can be downloaded to the browser when the user first establishes a session and then is used by the browser much like a javascript file. Is there any way to do that? >> _______________________________________________ >> Help mailing list >> Help at lists.whatwg.org >> http://lists.whatwg.org/listinfo.cgi/help-whatwg.org >> > From tatham at oddie.com.au Thu May 3 23:29:26 2012 From: tatham at oddie.com.au (Tatham Oddie) Date: Fri, 4 May 2012 06:29:26 +0000 Subject: [html5] Large Datalist In-Reply-To: <3EC2FD56-B5AB-4DFF-98A7-C89237B2FDF8@lafn.org> References: <84DFC579-23DB-4ABD-A018-A3A77874DECB@lafn.org> <913F550AEE09194E9D4B5BFB9CF3FD4B4B78570F@EXMBX08.netplexity.local> <764B6E38-7E69-4B48-92CF-A77CDB361722@lafn.org> <3EC2FD56-B5AB-4DFF-98A7-C89237B2FDF8@lafn.org> Message-ID: <913F550AEE09194E9D4B5BFB9CF3FD4B4B785D5E@EXMBX08.netplexity.local> You'll need to put it in a variable to access it later. var datalist = { "ID": "facilities", "OPTION": [ {"LABEL": "St. Johns Hospital, Oxnard", "VALUE": "St. Johns"}, {"LABEL": "Pleasant Valley, Camarillo", "VALUE": "Pleasant Valley"}, {"LABEL": "Los Robles Hospital, Thousand Oaks", "VALUE": "Los Robles"} ] }; -- Tatham -----Original Message----- From: Doug Hardie [mailto:bc979 at lafn.org] Sent: Friday, 4 May 2012 4:17 PM To: Tatham Oddie; help at lists.whatwg.org Subject: Re: [html5] Large Datalist On 3 May 2012, at 23:16, Doug Hardie wrote: > Great idea. Here is the content of the js file: > > {"DATALIST": { > "ID": "facilities", > "OPTION": [ > {"LABEL": "St. Johns Hospital, Oxnard", "VALUE": "St. Johns"}, > {"LABEL": "Pleasant Valley, Camarillo", "VALUE": "Pleasant Valley"}, > {"LABEL": "Los Robles Hospital, Thousand Oaks", "VALUE": "Los Robles"} > ] > }} > > Loading it with: > > > > I get an "Unexpected token ":" on the first line. Have I done something wrong? > > > > On 3 May 2012, at 16:17, Tatham Oddie wrote: > >> Store it as JSON and load it as a .js file? >> >> -- Tatham >> >> >> -----Original Message----- >> From: help-bounces at lists.whatwg.org [mailto:help-bounces at lists.whatwg.org] On Behalf Of Doug Hardie >> Sent: Friday, 4 May 2012 9:13 AM >> To: help at lists.whatwg.org >> Subject: [html5] Large Datalist >> >> I have a large datalist that I would like to store in a file that can be downloaded to the browser when the user first establishes a session and then is used by the browser much like a javascript file. Is there any way to do that? >> _______________________________________________ >> Help mailing list >> Help at lists.whatwg.org >> http://lists.whatwg.org/listinfo.cgi/help-whatwg.org >> > From bc979 at lafn.org Fri May 4 00:10:07 2012 From: bc979 at lafn.org (Doug Hardie) Date: Fri, 4 May 2012 00:10:07 -0700 Subject: [html5] Large Datalist In-Reply-To: <913F550AEE09194E9D4B5BFB9CF3FD4B4B785D5E@EXMBX08.netplexity.local> References: <84DFC579-23DB-4ABD-A018-A3A77874DECB@lafn.org> <913F550AEE09194E9D4B5BFB9CF3FD4B4B78570F@EXMBX08.netplexity.local> <764B6E38-7E69-4B48-92CF-A77CDB361722@lafn.org> <3EC2FD56-B5AB-4DFF-98A7-C89237B2FDF8@lafn.org> <913F550AEE09194E9D4B5BFB9CF3FD4B4B785D5E@EXMBX08.netplexity.local> Message-ID: <45C79668-825B-470F-8CD3-4FF0C4EFFCF3@lafn.org> That certainly eliminates the error and now I see that script in the browser. I am unable to figure out how to reference a variable in a HTML element. I tried the following but it doesn't work (I didn't think it would): . It kept facilities as a string rather than using the var. The following attempt to just check the var also failed: That gives an alert dialog with [object Object]. I suspect I will need something like " You'll need to put it in a variable to access it later. > > var datalist = { > "ID": "facilities", > "OPTION": [ > {"LABEL": "St. Johns Hospital, Oxnard", "VALUE": "St. Johns"}, > {"LABEL": "Pleasant Valley, Camarillo", "VALUE": "Pleasant Valley"}, > {"LABEL": "Los Robles Hospital, Thousand Oaks", "VALUE": "Los Robles"} > ] > }; > > -- Tatham > > -----Original Message----- > From: Doug Hardie [mailto:bc979 at lafn.org] > Sent: Friday, 4 May 2012 4:17 PM > To: Tatham Oddie; help at lists.whatwg.org > Subject: Re: [html5] Large Datalist > > > On 3 May 2012, at 23:16, Doug Hardie wrote: > >> Great idea. Here is the content of the js file: >> >> {"DATALIST": { >> "ID": "facilities", >> "OPTION": [ >> {"LABEL": "St. Johns Hospital, Oxnard", "VALUE": "St. Johns"}, >> {"LABEL": "Pleasant Valley, Camarillo", "VALUE": "Pleasant Valley"}, >> {"LABEL": "Los Robles Hospital, Thousand Oaks", "VALUE": "Los Robles"} >> ] >> }} >> >> Loading it with: >> >> >> >> I get an "Unexpected token ":" on the first line. Have I done something wrong? >> >> >> >> On 3 May 2012, at 16:17, Tatham Oddie wrote: >> >>> Store it as JSON and load it as a .js file? >>> >>> -- Tatham >>> >>> >>> -----Original Message----- >>> From: help-bounces at lists.whatwg.org [mailto:help-bounces at lists.whatwg.org] On Behalf Of Doug Hardie >>> Sent: Friday, 4 May 2012 9:13 AM >>> To: help at lists.whatwg.org >>> Subject: [html5] Large Datalist >>> >>> I have a large datalist that I would like to store in a file that can be downloaded to the browser when the user first establishes a session and then is used by the browser much like a javascript file. Is there any way to do that? >>> _______________________________________________ >>> Help mailing list >>> Help at lists.whatwg.org >>> http://lists.whatwg.org/listinfo.cgi/help-whatwg.org >>> >> > > From simonp at opera.com Fri May 4 03:44:39 2012 From: simonp at opera.com (Simon Pieters) Date: Fri, 04 May 2012 12:44:39 +0200 Subject: [html5] Large Datalist In-Reply-To: <45C79668-825B-470F-8CD3-4FF0C4EFFCF3@lafn.org> References: <84DFC579-23DB-4ABD-A018-A3A77874DECB@lafn.org> <913F550AEE09194E9D4B5BFB9CF3FD4B4B78570F@EXMBX08.netplexity.local> <764B6E38-7E69-4B48-92CF-A77CDB361722@lafn.org> <3EC2FD56-B5AB-4DFF-98A7-C89237B2FDF8@lafn.org> <913F550AEE09194E9D4B5BFB9CF3FD4B4B785D5E@EXMBX08.netplexity.local> <45C79668-825B-470F-8CD3-4FF0C4EFFCF3@lafn.org> Message-ID: On Fri, 04 May 2012 09:10:07 +0200, Doug Hardie wrote: > That certainly eliminates the error and now I see that script in the > browser. I am unable to figure out how to reference a variable in a > HTML element. I tried the following but it doesn't work (I didn't think > it would): > > . > > It kept facilities as a string rather than using the var. > > The following attempt to just check the var also failed: > > > > That gives an alert dialog with [object Object]. > > I suspect I will need something like " I need to get the variable working first. Fetch the JSON file with XHR and use JSON.parse, then populate a with the data. http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1509 > > On 3 May 2012, at 23:29, Tatham Oddie wrote: > >> You'll need to put it in a variable to access it later. >> >> var datalist = { >> "ID": "facilities", >> "OPTION": [ >> {"LABEL": "St. Johns Hospital, Oxnard", "VALUE": "St. >> Johns"}, >> {"LABEL": "Pleasant Valley, Camarillo", "VALUE": "Pleasant >> Valley"}, >> {"LABEL": "Los Robles Hospital, Thousand Oaks", "VALUE": >> "Los Robles"} >> ] >> }; I wouldn't recommend doing this since it executes it as code, which is a potential risk. -- Simon Pieters Opera Software From mfidelman at meetinghouse.net Mon May 7 09:35:40 2012 From: mfidelman at meetinghouse.net (Miles Fidelman) Date: Mon, 07 May 2012 12:35:40 -0400 Subject: [html5] AppCache <-> HTTP interactions when offline Message-ID: <4FA7F9DC.5080002@meetinghouse.net> Hi Folks, I'm looking at alternative ways to edit documents in a browser, then store the results - that will work both online and offline. Something that I can't seem to find documented anywhere is the behavior of AppCache vis-a-vis any HTTP operation other than GET. In particular, if one uses JavaScript to modify the DOM on an active page, then tries to PUT a replacement page - what is a browser supposed to do when it's offline? What do current browsers actually do? Is any of this documented anywhere. Come to think of it... is there any documentation on how browsers should/do respond to changes to active documents (e.g., if one uses JavaScript to modify the DOM then tries to save the page as a file - what should/does get saved)? Pointers to standards, design documents, presentations, would be very much appreciated. Thanks much, Miles Fidelman -- In theory, there is no difference between theory and practice. In practice, there is. .... Yogi Berra From weirdave at aol.com Mon May 7 12:31:31 2012 From: weirdave at aol.com (R David Paine III / WeirDave) Date: Mon, 7 May 2012 15:31:31 -0400 (EDT) Subject: [html5] ASP and Random Text Files Message-ID: <8CEFA9F239D1F3E-1D78-5722@webmail-d129.sysops.aol.com> I am a casual web developer with simplistic sites that I work on for barter. My personal website has been up for over two decades and still has pretty decent traffic, but I would like to increase that by including my poetry on the website but I don't feel like making a page for each poem as I have a couple of hundred. I was wondering if there was a way to randomly include from a folder of my works a poem a day or something like that. I have them in word doc format and text at the moment. I used ASP to make formatting easier and have been using it in its simple form for awhile and I am certain there are more advanced features I am certain I am missing. Any assistance would be appreciated. R David Paine III / WeirDave weirdave at aol.com Find me at about.me/weirdave and http://www.weirdave.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at nms.de Mon May 7 12:46:56 2012 From: andy at nms.de (Andy Wenk) Date: Mon, 7 May 2012 21:46:56 +0200 Subject: [html5] ASP and Random Text Files In-Reply-To: <8CEFA9F239D1F3E-1D78-5722@webmail-d129.sysops.aol.com> References: <8CEFA9F239D1F3E-1D78-5722@webmail-d129.sysops.aol.com> Message-ID: Hi David, why not putting the poems (txt format) in a folder structure eg: + year + month and refer to them via a link you put into a poems.html page:

2011

This would be the simplest way. I guess there is also a way to create a list with ASP. But you should also give JavaScript and AJAX a try. A good starting point would be to use http://www.jquery.com. You could create a simple data-structure in JavaScript which is corresponding to the folder structure with the poems. You could open the text-files (http://api.jquery.com/load/) and put the contents to the page (http://api.jquery.com/append/, http://api.jquery.com/html/). So you would have one poems.html page and change the content dynamically with AJAX and the support of jQuery. Hope this is kind of a starting point ;-) Cheers Andy On 7 May 2012 21:31, R David Paine III / WeirDave wrote: > I am a casual web developer with simplistic sites that I work on for barter. > My personal website has been up for over two decades and still has pretty > decent traffic, but I would like to increase that by including my poetry on > the website but I don't feel like making a page for each poem as I have a > couple of hundred. I was wondering if there was a way to randomly include > from a folder of my works a poem a day or something like that. I have them > in word doc format and text at the moment. I used ASP to make formatting > easier and have been using it in its simple form for awhile and I am certain > there are more advanced features I am certain I am missing. Any assistance > would be appreciated. > > > R David Paine III / WeirDave > weirdave at aol.com > Find me at about.me/weirdave and http://www.weirdave.com > > _______________________________________________ > Help mailing list > Help at lists.whatwg.org > http://lists.whatwg.org/listinfo.cgi/help-whatwg.org > -- Andy Wenk Hamburg - Germany RockIt! "CouchDB - Das Praxisbuch f?r Entwickler und Administratoren" http://www.galileocomputing.de/2462 http://www.couchdb-buch.de +++ english version is coming +++ http://www.couchdb-book.com "PostgreSQL 8.4: Das Praxisbuch" http://www.galileocomputing.de/2008 http://www.pg-praxisbuch.de From themoran2 at gmail.com Tue May 8 13:02:17 2012 From: themoran2 at gmail.com (Marcus Hansson) Date: Tue, 8 May 2012 22:02:17 +0200 Subject: [html5] ASP and Random Text Files In-Reply-To: <8CEFA9F239D1F3E-1D78-5722@webmail-d129.sysops.aol.com> References: <8CEFA9F239D1F3E-1D78-5722@webmail-d129.sysops.aol.com> Message-ID: Why not put the data in a database? That way you'll be able to get a random (or just about any) poem with a single file. Unfortunately I can't help you with asp (never used it), but you could take a look at the following for some reference: http://net.tutsplus.com/tutorials/databases/sql-for-beginners/ http://www.w3schools.com/aspnet/aspnet_dbconnection.asp Also, as mentioned earlier, you could use Javascript and either link to the file or embed it with a frame or what-not. With some clever naming convention of your files (e.g. poem1.doc, poem2.doc, etc.), you could use something like (alert: pseudo-code): // get a random number between 1 and 100 // (of course, this should map to your filenames in some way) var article_id = Math.floor((Math.random()*100)); // and here you pull it in with ajax, or simply just create a link node in the html var article = .... //Marcus 2012/5/7 R David Paine III / WeirDave > I am a casual web developer with simplistic sites that I work on for > barter. My personal website has been up for over two decades and still has > pretty decent traffic, but I would like to increase that by including my > poetry on the website but I don't feel like making a page for each poem as > I have a couple of hundred. I was wondering if there was a way to randomly > include from a folder of my works a poem a day or something like that. I > have them in word doc format and text at the moment. I used ASP to make > formatting easier and have been using it in its simple form for awhile and > I am certain there are more advanced features I am certain I am missing. > Any assistance would be appreciated. > > > R David Paine III / WeirDave > weirdave at aol.com > Find me at about.me/weirdave and http://www.weirdave.com > > > _______________________________________________ > Help mailing list > Help at lists.whatwg.org > http://lists.whatwg.org/listinfo.cgi/help-whatwg.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shevche24 at gmail.com Tue May 8 19:25:44 2012 From: shevche24 at gmail.com (=?UTF-8?B?5YKF5oyv5rSL?=) Date: Wed, 9 May 2012 10:25:44 +0800 Subject: [html5] confirm 0eb8cb1abb8612425c29099d55625ec2924fe8fe In-Reply-To: References: Message-ID: ---------- Forwarded message ---------- From: Date: 9 May 2012 10:24 Subject: confirm 0eb8cb1abb8612425c29099d55625ec2924fe8fe To: shevche24 at gmail.com Mailing list subscription confirmation notice for mailing list Help We have received a request from 111.78.108.34 for subscription of your email address, "shevche24 at gmail.com", to the help at lists.whatwg.org mailing list. To confirm that you want to be added to this mailing list, simply reply to this message, keeping the Subject: header intact. Or visit this web page: http://lists.whatwg.org/confirm.cgi/help-whatwg.org/0eb8cb1abb8612425c29099d55625ec2924fe8fe Or include the following line -- and only the following line -- in a message to help-request at lists.whatwg.org: confirm 0eb8cb1abb8612425c29099d55625ec2924fe8fe Note that simply sending a `reply' to this message should work from most mail readers, since that usually leaves the Subject: line in the right form (additional "Re:" text in the Subject: is okay). If you do not wish to be subscribed to this list, please simply disregard this message. If you think you are being maliciously subscribed to the list, or have any other questions, send them to help-owner at lists.whatwg.org. -------------- next part -------------- An HTML attachment was scrubbed... URL: From derernst at gmx.ch Mon May 14 05:14:25 2012 From: derernst at gmx.ch (Markus Ernst) Date: Mon, 14 May 2012 14:14:25 +0200 Subject: [html5] Thread about runat (or "server") attribute in WHATWG mailing list Message-ID: <4FB0F721.5040204@gmx.ch> Hello I hope this is the appropriate place for my question; otherwise feel free to ignore it. I read a discussion on an attribute to specify server-side Javascript in the WHATWG mailing list. Now I do not know a lot about server-side Javascript, but I know that server-side code does usually (well, at least in the scripting languages I am familiar with) not appear in HTML, but rather the results of the server-side execution of that code. Thus I am very surprised to read HTML experts discuss about server-side stuff. Why should server-side code appear in the HTML spec? Thanks for enlightening me! Markus From svartman95 at gmail.com Mon May 14 05:54:13 2012 From: svartman95 at gmail.com (Bjartur Thorlacius) Date: Mon, 14 May 2012 12:54:13 +0000 Subject: [html5] Thread about runat (or "server") attribute in WHATWG mailing list In-Reply-To: <4FB0F721.5040204@gmx.ch> References: <4FB0F721.5040204@gmx.ch> Message-ID: On 5/14/12, Markus Ernst wrote: > I read a discussion on an attribute to specify server-side Javascript in > the WHATWG mailing list. Now I do not know a lot about server-side > Javascript, but I know that server-side code does usually (well, at > least in the scripting languages I am familiar with) not appear in HTML, > but rather the results of the server-side execution of that code. Thus I > am very surprised to read HTML experts discuss about server-side stuff. > Why should server-side code appear in the HTML spec? > The discussion is not so much about standardizing server-side code, but rather about reserving the attribute for internal usage. That is, rather than defining semantics for @runat or @server, WHATWG would simply promise to never standardize an attribute so named for other purposes. Reserving the attribute would allow servers to use a strict superset of HTML internally without worrying about forward-compatibility. If, on the other hand, an independent standardization group or any HTML generator decided to start using @server without ever contacting WHATWG, the WHATWG might incompatibly decide to use @server for something else, perhaps web worker related. That would make the HTML generators markup language into a subtly incompatible dialect of HTML, instead of a compatible superset. That can be resolved by using a different syntax that will not become valid HTML in the foreseeable future. In theory, SGML would have made this easier, but in practice SGML is too general and the standard never was followed completely by every page out there. But server-side includes solved this quite nicely. But if you prefer a syntax that looks like HTML, smells like HTML, parses like HTML and could validate as HTML - you'll have to prevent it from becoming valid differently. And standards groups are precisely the place to do that sort of thing. From bc979 at lafn.org Wed May 16 22:41:30 2012 From: bc979 at lafn.org (Doug Hardie) Date: Wed, 16 May 2012 22:41:30 -0700 Subject: [html5] Large Datalist In-Reply-To: References: <84DFC579-23DB-4ABD-A018-A3A77874DECB@lafn.org> <913F550AEE09194E9D4B5BFB9CF3FD4B4B78570F@EXMBX08.netplexity.local> <764B6E38-7E69-4B48-92CF-A77CDB361722@lafn.org> <3EC2FD56-B5AB-4DFF-98A7-C89237B2FDF8@lafn.org> <913F550AEE09194E9D4B5BFB9CF3FD4B4B785D5E@EXMBX08.netplexity.local> <45C79668-825B-470F-8CD3-4FF0C4EFFCF3@lafn.org> Message-ID: <927572EC-7F80-4607-9183-0705CB8E2F4C@lafn.org> On 4 May 2012, at 03:44, Simon Pieters wrote: > On Fri, 04 May 2012 09:10:07 +0200, Doug Hardie wrote: > >> That certainly eliminates the error and now I see that script in the browser. I am unable to figure out how to reference a variable in a HTML element. I tried the following but it doesn't work (I didn't think it would): >> >> . >> >> It kept facilities as a string rather than using the var. >> >> The following attempt to just check the var also failed: >> >> >> >> That gives an alert dialog with [object Object]. >> >> I suspect I will need something like " > Fetch the JSON file with XHR and use JSON.parse, then populate a with the data. > > http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1509 > > >> >> On 3 May 2012, at 23:29, Tatham Oddie wrote: >> >>> You'll need to put it in a variable to access it later. >>> >>> var datalist = { >>> "ID": "facilities", >>> "OPTION": [ >>> {"LABEL": "St. Johns Hospital, Oxnard", "VALUE": "St. Johns"}, >>> {"LABEL": "Pleasant Valley, Camarillo", "VALUE": "Pleasant Valley"}, >>> {"LABEL": "Los Robles Hospital, Thousand Oaks", "VALUE": "Los Robles"} >>> ] >>> }; > > I wouldn't recommend doing this since it executes it as code, which is a potential risk. Now that the school year is over, all the finals graded and grades entered, I can get back to this. I found what appears to be a simpler approach. In the js file is: var DATALIST = "" + ""; then in the HTML is: This approach seems quite simple and works well with 3 entries. However, when there are several hundred entries is it going to have scaling issues? From webmaster at tsmchughs.com Sat May 19 21:35:53 2012 From: webmaster at tsmchughs.com (Brian Tremblay) Date: Sat, 19 May 2012 21:35:53 -0700 Subject: [html5] microdata and the dl element Message-ID: <4FB874A9.6030006@tsmchughs.com> I've marked up a restaurant menu using the
element, with a
for each item, followed by 2 or more
elements, one for price, description, and, where appropriate, additional options. I want to add microdata product markup (http://schema.org/Product) but can't find a way to do it. It seems like I need a wrapper for each menu item, which I sort of think should be there anyways. Can such a thing be added to html5? Perhaps , like so:
Artichoke Hearts Au Gratin
$6.50
baked artichoke hearts, with Irish soda bread
Peel & Eat Shrimp
$7.50
half pound of chilled shrimp with cocktail sauce
Barring the addition of a new element to be nested inside
, the only solution I can see is to make each item its own description list, but that would be grossly abusive. (Does one item really constitute a list? Menu url: http://www.tsmchughs.com/menus/dinner Any ideas? -- Brian Tremblay From bhawkeslewis at googlemail.com Sun May 20 01:01:20 2012 From: bhawkeslewis at googlemail.com (Benjamin Hawkes-Lewis) Date: Sun, 20 May 2012 09:01:20 +0100 Subject: [html5] microdata and the dl element In-Reply-To: <4FB874A9.6030006@tsmchughs.com> References: <4FB874A9.6030006@tsmchughs.com> Message-ID: On Sun, May 20, 2012 at 5:35 AM, Brian Tremblay wrote: > I've marked up a restaurant menu using the
element, with a
for > each item, followed by 2 or more
elements, one for price, description, > and, where appropriate, additional options. > > I want to add microdata product markup (http://schema.org/Product) but can't > find a way to do it. It seems like I need a wrapper for each menu item No. You can use @itemref: http://www.whatwg.org/specs/web-apps/current-work/multipage/microdata.html#attr-itemref For example:
Artichoke Hearts Au Gratin
$6.50
Diced artichoke hearts baked in a cheddar-parmesan sauce. Served with our Irish soda bread and molasses wheat bread.
Peel & Eat Shrimp
$7.50
A half pound of chilled shrimp with our cocktail sauce.
> which I sort of think should be there anyways. This has been discussed many times before, mostly recently at: http://www.w3.org/Search/Mail/Public/advanced_search?keywords=&hdr-1-name=subject&hdr-1-query=%3Cdi%3E+please&hdr-2-name=from&hdr-2-query=&hdr-3-name=message-id&hdr-3-query=&period_month=&period_year=&index-grp=Public__FULL&index-type=t&type-index=public-whatwg-archive&resultsperpage=100&sortby=date-asc The editor's take was that features should be added to CSS to support styling definition names and values as groups. -- Benjamin Hawkes-Lewis From webmaster at tsmchughs.com Sun May 20 01:35:17 2012 From: webmaster at tsmchughs.com (Brian Tremblay) Date: Sun, 20 May 2012 01:35:17 -0700 Subject: [html5] microdata and the dl element In-Reply-To: References: <4FB874A9.6030006@tsmchughs.com> Message-ID: <4FB8ACC5.6060604@tsmchughs.com> On 5/20/12 1:01 AM, Benjamin Hawkes-Lewis wrote: > On Sun, May 20, 2012 at 5:35 AM, Brian Tremblay wrote: >> I've marked up a restaurant menu using the
element, with a
for >> each item, followed by 2 or more
elements, one for price, description, >> and, where appropriate, additional options. >> >> I want to add microdata product markup (http://schema.org/Product) but can't >> find a way to do it. It seems like I need a wrapper for each menu item > > No. You can use @itemref: > >
>
itemscope > itemtype=http://schema.org/Product > itemref="artichokes-offers artichokes-description"> > Artichoke Hearts Au Gratin >
>
itemprop=offers > itemscope > itemtype=http://schema.org/Offer> > $6.50 >
>
> Diced artichoke hearts baked in a cheddar-parmesan sauce. > Served with our Irish soda bread and molasses wheat bread. >
> >
itemscope > itemtype=http://schema.org/Product > itemref="shrimp-cocktail-offers shrimp-cocktail-description"> > Peel& Eat Shrimp >
>
itemprop=offers > itemscope > itemtype=http://schema.org/Offer> > $7.50 >
>
> A half pound of chilled shrimp with our cocktail sauce. >
> >
Yikes! That's a lot more markup than the original. And I'd have to manage unique ids for each menu item, too. It's getting mighty complicated. :-( >> which I sort of think should be there anyways. > > The editor's take was that features should be added to CSS to support > styling definition names and values as groups. I'd agree. But my case does not involve styling. It involves trees and subtrees and scoping. Without a there's no clear item parent for any
or
element. -- Brian Tremblay From jay at peepo.com Mon May 21 00:58:15 2012 From: jay at peepo.com (jonathan chetwynd) Date: Mon, 21 May 2012 08:58:15 +0100 Subject: [html5] Forms: how to replace checkbox with active graphic? Message-ID: <53AE532A-50D5-4272-90F1-5C796D0BE704@peepo.com> can anyone point me to examples of active graphics in html5 forms? similarly for radio buttons? is there a technical description, or specification? regards Jonathan Chetwynd ~:" jay at peepo.com http://www.peepo.com +44 (0) 20 7978 1764 -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.chetwynd at btinternet.com Mon May 21 00:59:25 2012 From: j.chetwynd at btinternet.com (Jonathan Chetwynd) Date: Mon, 21 May 2012 08:59:25 +0100 Subject: [html5] Forms: how to replace checkbox with active graphic? Message-ID: can anyone point me to examples of active graphics in html5 forms? similarly for radio buttons? is there a technical description, or specification? regards Jonathan Chetwynd jay at peepo.com From mampir at lavabit.com Mon May 21 14:09:12 2012 From: mampir at lavabit.com (Mampir) Date: Tue, 22 May 2012 00:09:12 +0300 Subject: [html5] The specification for offline use Message-ID: <20120521210912.GA7944@localhost> Hi! How or where can I get the current version of the HTML specification for easy offline use? I want to be able to write HTML code with the help of the current specification (Web Dev Edition or not), without a connection to Internet. From andy at nms.de Mon May 21 23:10:57 2012 From: andy at nms.de (Andy Wenk) Date: Tue, 22 May 2012 08:10:57 +0200 Subject: [html5] The specification for offline use In-Reply-To: <20120521210912.GA7944@localhost> References: <20120521210912.GA7944@localhost> Message-ID: Hi, On 21 May 2012 23:09, Mampir wrote: > Hi! > > How or where can I get the current version of the HTML specification > for easy offline use? ?I want to be able to write HTML code with the > help of the current specification (Web Dev Edition or not), without a > connection to Internet. one way is to use wget -r http://your.html5specdomain.com The program is available via the shell in Linux-like OS http://www.gnu.org/software/wget/ Cheers Andy -- Andy Wenk Hamburg - Germany RockIt! "CouchDB - Das Praxisbuch f?r Entwickler und Administratoren" http://www.galileocomputing.de/2462 http://www.couchdb-buch.de +++ english version is coming +++ http://www.couchdb-book.com "PostgreSQL 8.4: Das Praxisbuch" http://www.galileocomputing.de/2008 http://www.pg-praxisbuch.de From bhawkeslewis at googlemail.com Tue May 22 21:35:05 2012 From: bhawkeslewis at googlemail.com (Benjamin Hawkes-Lewis) Date: Wed, 23 May 2012 05:35:05 +0100 Subject: [html5] Forms: how to replace checkbox with active graphic? In-Reply-To: References: Message-ID: On Mon, May 21, 2012 at 8:59 AM, Jonathan Chetwynd wrote: > can anyone point me to ?examples of active graphics in html5 forms? What are "active graphics"? > similarly for radio buttons? > > is there a technical description, or specification? I assume you're not asking about input type=radio ? what are you asking about though? -- Benjamin Hawkes-Lewis From bhawkeslewis at googlemail.com Tue May 22 21:37:02 2012 From: bhawkeslewis at googlemail.com (Benjamin Hawkes-Lewis) Date: Wed, 23 May 2012 05:37:02 +0100 Subject: [html5] Forms: how to replace checkbox with active graphic? In-Reply-To: References: Message-ID: On Mon, May 21, 2012 at 8:59 AM, Jonathan Chetwynd wrote: > can anyone point me to ?examples of active graphics in html5 forms? > similarly for radio buttons? > > is there a technical description, or specification? http://dvcs.w3.org/hg/webcomponents/raw-file/tip/explainer/index.html might be the most immediately relevant work here. -- Benjamin Hawkes-Lewis From j.chetwynd at btinternet.com Fri May 25 07:31:58 2012 From: j.chetwynd at btinternet.com (Jonathan Chetwynd) Date: Fri, 25 May 2012 15:31:58 +0100 Subject: [html5] Forms: how to replace checkbox with active graphic? In-Reply-To: References: Message-ID: <600B760F-F127-4E77-AF3A-5E6F796C39CF@btinternet.com> On 23 May 2012, at 05:35, Benjamin Hawkes-Lewis wrote: > What are "active graphics"? Ben, currently checkboxes show a tick and radio buttons an active centre. however in a game GUI this may spoil the illusion, particularly where there is a single modality. hence forms may appear as displays, and a highlight suggest active instead of a tick in a checkbox I'm looking for one in a technical specification, or else the wild, but one that specification conformant, ie accessibility etc... regards Jonathan Chetwynd jay at peepo.com From j.chetwynd at btinternet.com Sat May 26 01:45:59 2012 From: j.chetwynd at btinternet.com (Jonathan Chetwynd) Date: Sat, 26 May 2012 09:45:59 +0100 Subject: [html5] Forms: radio example was: how to replace checkbox with active graphic? In-Reply-To: References: Message-ID: <27500C49-1CE4-4D03-B7AB-777A49F59CAD@btinternet.com> Ben http://www.peepo.com now hosts a basic example to discuss the size selector* resembles a radio button, with the one in use having a stroke. however it is not currently a form, and hence script is being used. it may be worthwhile creating a reduced testcase, however one then loses the context, or rationale... regards Jonathan Chetwynd jay at peepo.com only 9 and 19 are selectable as 13 is not implemented yet