Re: [WSG] transitional, accessible popups?
At 18:06 18/03/2004 +0100, you wrote: It's quite fine, IMO. You should consider however making it a little less mouse-centric by adding a onkeypress event that does just the same than onclick. That would ask then for abstracting the code to a funcion and maybe rewording the title of the link Sorry about the nit-picking :-) Sure, I've not got round to getting onclick vs. onkeypress clear in my head - I'll use this opportunity to do so :-) As for the no-function JS and the title, they were just in there for demo purposes ;-) cheers, Gyrus [EMAIL PROTECTED] http://norlonto.net/gyrus/dev/ PGP key available * The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help *
RE: [WSG] transitional, accessible popups?
At 16:55 18/03/2004 +, you wrote: Change onclick="window.open('index.cfm?id=23', to onclick="window.open(this.href, Excellent! thanks, Gyrus [EMAIL PROTECTED] http://norlonto.net/gyrus/dev/ PGP key available * The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help *
RE: [WSG] transitional, accessible popups?
> From: Manuel González Noriega [mailto:[EMAIL PROTECTED] [snip] > You should consider however making it a little > less mouse-centric by adding a onkeypress event that does > just the same > than onclick. actually, this goes back to a discussion I'm trying to have over on the W3C WAI IG list...and, as usual, still can't get a straight answer out of them. The main point is: onclick is actually activated by the keyboard as well (just try it and you'll see). Now, in my testing, this holds true for pretty much all modern browsers - haven't done any extensive testing with older ones. Speaking to a guy from the W3C, I got the impression that the official line is that onclick is actually a misnomer for what should effectively be onactivation. onkeypress is just as device-centric, and can pose problems as ANY key pressed will activate that handler. So, for all intents and purposes, onclick should NOT be considered to be mouse centric, in the way that say onmouseover/onmouseout are. Pretend that it's actually called onactivation. There's no issue here... For the rest of the argument, see http://lists.w3.org/Archives/Public/w3c-wai-ig/2004JanMar/0512.html Patrick Patrick H. Lauke Webmaster / University of Salford http://www.salford.ac.uk * The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help *
Re: [WSG] transitional, accessible popups?
El jue, 18-03-2004 a las 17:30, Gyrus escribió: > Hi, > > Working on a client site, I just came up with some code for doing popups > that I thought I'd share for comments here. > > > I just wondered if anyone could spot any faults; or, more generally, how > you're dealing with popups in terms of standards and accessibility. It's quite fine, IMO. You should consider however making it a little less mouse-centric by adding a onkeypress event that does just the same than onclick. That would ask then for abstracting the code to a funcion and maybe rewording the title of the link Sorry about the nit-picking :-) -- Manuel González Noriega Simplelógica, construcción web URL: http://simplelogica.net EMAIL: [EMAIL PROTECTED] TELEFONO: (+34) 985 22 12 65 Logicola es el weblog de Simplelógica http://simplelogica.net/logicola/ That's right. We said Frontpage. * The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help *
RE: [WSG] transitional, accessible popups?
Change onclick="window.open('index.cfm?id=23', to onclick="window.open(this.href, This way, if you change your link's href, you don't have to remember to change it in the javascript as well. Also...while we're on sitepoint, you could just look at Ian Lloyd's "perfect pop-up" article http://www.sitepoint.com/article/perfect-pop-up Patrick Patrick H. Lauke Webmaster / University of Salford http://www.salford.ac.uk * The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help *