Re: [WSG] introducing a prompt to download or open a pdf

2007-10-16 Thread Chris Knowles
viewer into the browser window: header("Content-type: application/pdf"); header("Content-Disposition: inline"); readfile('test.pdf'); So I'd recommend a link with a pdf icon and the file siz

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-16 Thread Chris Knowles
d start with > > download.php?filename=../htpasswd&type= > It's not just you! - Very insecure - breaks all the rules Chris Knowles *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-16 Thread Chris Knowles
g it maps to a legitimate resource. However, I guess the point is that there may be people on this list with limited server side knowledge who would cut and paste something like this, so we should all be careful when submitting code. Chris Knowles *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-16 Thread Chris Knowles
Paul Minty wrote: > I'd like to see a microformat for this, and an external javascript, so > that people who author these links without the aid of server side > scripting can develop this user experience easily. Anyone seen anything > like that? > > Cheers > Paul > heres a generic javascript f

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-16 Thread Chris Knowles
Kit Grose wrote: > Just a note: > Your function doesn't currently use the RegExp function for anything > useful (you might as well use indexOf). RegExp is the right way to do > it, though, so you can enforce word boundaries to match complete > classNames only (if I want all a.pop to be new window

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-17 Thread Chris Knowles
Nick Fitzsimons wrote: > Word boundaries aren't right either; for exmple, they will match a > hyphen, so matching on some-thing will match some-thing-else. As per the > HTML spec, class names are space-separated, so you need to match on > spaces and the beginning or end of the string. > of course

Re: [WSG] Encoded mailto links

2007-10-17 Thread Chris Knowles
Rick Lecoat wrote: > can anyone tell me what is the best accessible way (if any) of encoding > a mailto: link? I want to make the email addresses on a site usable to > screen reader users, but don't want them harvested by spambots. > > Javascripted solutions seem like they would create a headach

Re: [WSG] Encoded mailto links

2007-10-17 Thread Chris Knowles
>> Rick Lecoat > >> Is there a way out what seems, to my inexperienced eyes, like >> a catch-22 >> situation? > > Patrick Lauke wrote: > Fix your spam issues at the mail server + mail client end, not at the web > page end, would be my advice. > This is good advice and raises the question of w

Re: [WSG] Encoded mailto links

2007-10-17 Thread Chris Knowles
s no solution, so as Patrick said, "Fix your spam issues at the mail server + mail client end" -- Chris Knowles *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***

Re: [WSG] introducing a prompt to download or open a pdf

2007-10-17 Thread Chris Knowles
Nick Fitzsimons wrote: > On 17 Oct 2007, at 13:47, Chris Knowles wrote: > >> Nick Fitzsimons wrote: >>> Word boundaries aren't right either; for exmple, they will match a >>> hyphen, so matching on some-thing will match some-thing-else. As per the >>>

Re: [WSG] Encoded mailto links

2007-10-19 Thread Chris Knowles
ddress and reuses it later it may bounce. Anyway, just an idea to try and tackle the issue differently. -- Chris Knowles *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://websta

Re: [WSG] Encoded mailto links

2007-10-19 Thread Chris Knowles
fetchPage($url); // convert any entites in the page to plain text $html = html_entity_decode($html); now $html contains plain email addresses - with one line of code surely any harvester performs this operation first? -- Chris Knowles **

Re: [WSG] Encoded mailto links

2007-10-19 Thread Chris Knowles
os a harvester is sure to be written to pattern match http://.../com/... or http://.../com/au/... or whatever at some stage and attempt to construct an email address from it. -- Chris Knowles *** List Guidelines: http://w

Re: [WSG] Javascript focus()...cursor at start of space-filled field in IE, but at end of space-filled in Firefox

2007-10-19 Thread Chris Knowles
cursor > to appear at the start of the field in Firefox? > do you mind if I ask why? -- Chris Knowles *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***

Re: [WSG] Re: WSG Digest

2007-10-20 Thread Chris Knowles
t the cursor in the same place in both browsers then thats a different matter. Maybe you could clarify this? -- Chris Knowles *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***

Re: [WSG] CSS Help

2007-10-23 Thread Chris Knowles
Olajide Olaolorun wrote: > It doesnt work :( > > I just tried it now... placed it in the default.css > > On 10/23/07, Tim MacKay <[EMAIL PROTECTED]> wrote: >> #sidebar a img {border: none} >> I haven't looked at your code but you mentioned it not displaying a border on hover so presumably you n

Re: [WSG] CSS Help

2007-10-23 Thread Chris Knowles
Chris Knowles wrote: > #sidebar a:hover img {border: none} > I had a look at your code! - try this: #sidebar .one-image a:hover { border: 0 !important; } in your code you used: #sidebar a:hover,.blogfoot a:hover{ border:1px solid #FFF !important; } because tou used imp

Re: [WSG] CSS Help

2007-10-23 Thread Chris Knowles
Chris Knowles wrote: > Chris Knowles wrote: > >> #sidebar a:hover img {border: none} >> > > I had a look at your code! - try this: > > #sidebar .one-image a:hover { > border: 0 !important; > } Olajide, because you are resetting a border of 1px to 0

Re: [WSG] CSS Help

2007-10-23 Thread Chris Knowles
y the case - so if other links are added outside of a list an extra rule may be required for them the solution I have given above may add an extra rule but it solves the problem without tampering with the existing css - so it's not necessarily clear

Re: [WSG] Re: WSG Digest

2007-10-29 Thread Chris Knowles
Simon Cockayne wrote: > Have you come across this "flickering" problem...is there a better > way? Can I remove the DOM elements before they are displayed? > Hi Simon you need this... http://dean.edwards.name/weblog/2006/06/again/

Re: [WSG] Re: WSG Digest

2007-10-29 Thread Chris Knowles
Chris Knowles wrote: > you need this... > http://dean.edwards.name/weblog/2006/06/again/ > in fact, I incorporated this into my own library - I found the order in which the code tests the different browsers to matter - I think if I remember rightly I had an issue with safari on windo

Re: [WSG] Styling [Forms]

2007-11-04 Thread Chris Knowles
ult option does not > change. > > Basically i want to center (vertically) the default option in a select box. Hi James you can get varying results by setting text-align: center on the select itself and on the option elements but not in IE - I don't think theres any way to contro

Re: [WSG] z-index problem with dropdown menu

2007-11-04 Thread Chris Knowles
anybody see what I'm obviously missing? :? I can see this but I'm not sure if you're obviously missing it or not: http://www.saxleather.com.au/index.php?page=home&subrange=nipple%20clamps but I can also see that it's a site that not everyone on

Re: [WSG] z-index problem with dropdown menu

2007-11-04 Thread Chris Knowles
r2 (I don't think you have one). Because it comes after the dropdown in the source some browsers may assume it should have a higher z-index than the dropdown so it may help to set it lower. -- Chris Knowles *** List Guidelines

Re: [WSG] Testing emails for Outlook 2007

2007-11-07 Thread Chris Knowles
including Outlook 2007. Enjoy! > I was going to suggest the same - and they also have free templates that are already tested: http://www.campaignmonitor.com/resources/templates.aspx -- Chris Knowles *** List Guidelines: ht

Re: [WSG] Idiot's guide to JavaScript

2007-11-14 Thread Chris Knowles
Rob Mason wrote: > I am looking for a really basic, plain English guide to JavaScript. I highly rate this book - easy to read and understand: http://www.quirksmode.org/book/ -- Chris Knowles *** List Guidelines: h

Re: [WSG] Input tag - closing tag optional?

2007-11-20 Thread Chris Knowles
W3C specs[1]: > > > > Now, I read that as "closing tag optional." So I am wrong. Or am I? > Hi David, there's no closing tag is XHTML is HTML -- Chris Knowles *** List Guidelines:

Re: [WSG] Preserve whitespace

2007-12-12 Thread Chris Knowles
x27;t see why you need to do anything other than generate the HTML with the right amount of space in it like: content the browser will only display one of the spaces in the above but they will still remain in the source - they won't be stripped out at any stage or have I

Re: [WSG] Preventing copying of text from web page.

2007-12-21 Thread Chris Knowles
nd maybe add a small disclaimer to the bottom of every page stating the terms & conditions. -- Chris Knowles *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/un

Re: [WSG] Lists CSS

2007-12-27 Thread Chris Knowles
li { margin: 0; padding: 0; } then add back in the required amounts -- Chris Knowles *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***

Re: [WSG] Behavior Effecting Presentation or Structure - Precedence?

2008-01-07 Thread Chris Knowles
n I'm not sure there's ever really a choice. e.g. in your example you would need to use both methods to cover a) and b): a) would need you to set the style to display: none and b) would need you to try and remove the node -- Chris Knowles

Re: [WSG] Behavior Effecting Presentation or Structure - Precedence?

2008-01-07 Thread Chris Knowles
quot;none"; } if you're doing a lot of checking throughout your code though set a global flag... var DOM = document.getElementById ? true : false; and then... if (DOM) { ... } email me direct if you want to discuss as it's probably off topic by now. -- Chris Knowles *

Re: [WSG] semantic list with explanations

2008-01-08 Thread Chris Knowles
ld > only be a few words. I don't think theres any rules about the length of definitions? If the list has a specific order, as you've shown, then I would say use an ordered list, if not a definition list -- Chris Knowles **

Re: [WSG] semantic list with explanations

2008-01-08 Thread Chris Knowles
go ahead > and use a definition list. If you do care about the user experience, use > headings. > or if it has a specific order, use headings and paragraphs inside an ordered list -- Chris Knowles *** List Guidelines: ht

Re: [WSG] semantic list with explanations

2008-01-08 Thread Chris Knowles
are? I would have thought take care of your users first and foremost and then lobby the vendors is a better approach. -- Chris Knowles *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://web

Re: [WSG] semantic list with explanations

2008-01-08 Thread Chris Knowles
rticles/best_practice/IamAScreenReaderUser.asp > > It takes care of the issue without cheating with the markup. > > thats true and that solution is fine, but looking at the code, it seems to me you've gone to a hell of a lot of trouble - personally I would

Re: [WSG] semantic list with explanations

2008-01-10 Thread Chris Knowles
David Hucklesby wrote: > On Wed, 09 Jan 2008 18:13:13 +1100, Chris Knowles wrote: >> because thats a different issue. Its an issue of the user not upgrading to >> software >> thats available and thats better. ... >> > > Just one niggle here. "The user&quo

Re: [WSG] semantic list with explanations

2008-01-10 Thread Chris Knowles
ink it's right to use these client websites as a means to make a stand against user agent vendors if it means sacrificing any of that usability. -- Chris Knowles *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***

Re: [WSG] Where did I come from?

2008-01-21 Thread Chris Knowles
present so content is passed on as normal. But because HTTP headers can be changed along the response chain from server to client they can't be relied upon. -- Chris Knowles *** List Guidelines: http://webstan

Re: [WSG] Where did I come from?

2008-01-21 Thread Chris Knowles
Chris Knowles wrote: > Sarah Peeke wrote: >> Hi Martin and others, >> >> On 19/1/08 1:45 AM, Martin Heiden wrote: >>> 2. HTTP-Header Referrer - may be supressed by proxies/firewalls or the >>> user >>>You can access it via (PHP|Java|ASP|...) or

Re: [WSG] Where did I come from?

2008-01-21 Thread Chris Knowles
the referer header may not be set and so if it's not then it can't be referenced. -- Chris Knowles *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join

Re: [WSG] Usability for downloading documents

2008-01-28 Thread Chris Knowles
's a large resource and takes a while to download or if it's a slow connection, or potentially crashing your browser if it freezes and you start hitting the back button etc in an attempt to undo your action. -- Chris Knowles

Re: [WSG] This IE8 controversy

2008-01-29 Thread Chris Knowles
a tag does anything for me or anyone else. Except for Microsoft of course, by allowing them to do the right thing at last and create a decent browser while at the same time not doing the right thing and ignoring the mess they created

Re: [WSG] This IE8 controversy

2008-01-29 Thread Chris Knowles
Chris Broadfoot wrote: Chris Knowles wrote: > I don't see how opting-in to standards by adding a meta tag does > anything for me or anyone else. Except for Microsoft of course, by > allowing them to do the right thing at last and create a decent browser > while at the same t

Re: [WSG] This IE8 controversy

2008-01-29 Thread Chris Knowles
that will break in IE8, then whats so wrong with adding an HTTP header or a meta tag to say 'use IE7' ? -- Chris Knowles *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://we

Re: [WSG] This IE8 controversy

2008-01-29 Thread Chris Knowles
27;s one of the tenets of good web development that we embrace forwards compatibility and not backwards compatibility. I think what they are doing flies in the face of this. -- Chris Knowles *** List Guidelines: http://webstandard

Re: [WSG] This IE8 controversy

2008-01-30 Thread Chris Knowles
eems that what is so quick and simple for one group of people to do is somehow a huge task for the other group? -- Chris Knowles *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandards

Re: [WSG] Styling forms

2008-02-07 Thread Chris Knowles
to do with javascript libraries that have re-ordering of elements by drag and drop that tend to work mainly on lists. Therefore lists are useful to wrap form elements if you are creating form building software so the form elements can be easily reordered by non-technical users. -- Chr

Re: [OBORONA-SPAM] Re: [WSG] Styling forms

2008-02-07 Thread Chris Knowles
Joe Ortenzi wrote: I would have thought so. Isn't that what the id attribute is used for? Something for JavaScript to reference? Chris Knowles wrote: CK> from what I can see the reason lists have come into use in forms has a CK> lot to do with javascript libraries that have re-

Re: [OBORONA-SPAM] Re: [WSG] Styling forms

2008-02-08 Thread Chris Knowles
tart using markup based on pre-written libraries and not on your natural choice. Hence, maybe thats where this using lists in forms has come from? -- Chris Knowles *** List Guidelines: http://webstandardsgroup.org/m

[WSG] IE8 news

2008-03-03 Thread Chris Knowles
"We've decided that IE8 will, by default, interpret web content in the most standards compliant way it can. This decision is a change from what we've posted previously." http://blogs.msdn.com/ie/archive/2008/03/03/microsoft-s-interoperability-principles-and-ie8.asp

Re: [WSG] WCAG 2 implementation site

2008-03-11 Thread Chris Knowles
only way i see access keys becoming useful is if user agent vendors agree on and implement some kind of name-spacing scheme for author defined keys to prevent conflicts -- Chris Knowles *** List Guidelines: http://webstandard

Re: [WSG] Link Help please

2008-06-03 Thread Chris Knowles
Hayden's Harness Attachment wrote: I am rebuilding a web site and have the following code in it. .css" /> What am I doing wrong? The web site will not use the layout.css file. The default directory is http://www.choroideremia.org/new/. try href= not href() --

Re: [WSG] input type image

2008-07-14 Thread Chris Knowles
Taco Fleur wrote: I have a question in regards to styling a submit button. I have the following HTML > Would it be acceptable to just use a input of type "submit" and leave > the value empty? you could use:

Re: [WSG] Google chrome...

2008-09-04 Thread Chris Knowles
Nancy Gill wrote: > I can't figure out why it has to load the process three times in order > to run. the google explanation: http://blogoscoped.com/google-chrome/3 -- Chris Knowles *** List Guide

Re: [WSG] JavaScript and Accessibility

2009-01-19 Thread Chris Knowles
s adding attributes to tags, the worst that can happen is your pages no longer validate - but who cares if you are making them more accessible? -- Chris Knowles *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscri

Re: [WSG] JavaScript and Accessibility

2009-01-20 Thread Chris Knowles
Chris Taylor wrote: >> From: Chris Knowles >> I wouldn't be waiting for ARIA to get out of draft before using it :) It >> has pretty good support in browsers already so get stuck in. And because >> essentially all you are doing with ARIA is adding attributes to tags,

Re: [WSG] JavaScript and Accessibility

2009-01-20 Thread Chris Knowles
the changes. So do they get notified that you've injected ARIA attributes? -- Chris Knowles *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.c

Re: [WSG] web hosting

2009-09-04 Thread Chris Knowles
osting. As others have stated, the problem you have is the technologies you require have expensive licenses and so free hosting is going to be hard to come by. But if you confirm it's only a small site, maybe someone out there has a bit of spare space? -

Re: [WSG] Strange Table Border Rendering in everything BUT FF and IE

2009-09-26 Thread Chris Knowles
think   should be...   -- Chris Knowles *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***

Re: [WSG] Data URI encoder

2010-02-10 Thread Chris Knowles
uch a huge gain? -- Chris Knowles *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***

Re: [WSG] Using a dot "." in a class name

2010-03-11 Thread Chris Knowles
I would have thought the problem would be when you want to use it in a stylesheet... .ratingL-4.5 {...} presumably a browser will read this as two classes. But if it's purely there for something like javascript to grab hold of and interpret it should be ok -- Chris Knowles Jen

Re: [WSG] Getting my feet wet in HTML5

2010-08-12 Thread Chris Knowles
pendent on javascript. Without it some elements will be styled in IE, some won't (the above comes from Introducing HTML5 by Remy Sharp and Bruce Lawson) -- Chris Knowles On 13/08/10 6:38 AM, Tom Livingston wrote: List, Here's a theory question ( i think) for ya. I'm working on a

Re: [WSG] Getting my feet wet in HTML5

2010-08-13 Thread Chris Knowles
example would have been to have said that the content in *might* be more relevant to a search engine than the content in - compared with and id=sidebar> which would be harder to tell apart. -- Chris Knowles *** List Guidelines:

Re: [WSG] CSS support of HTML5 tags not ready yet?

2010-09-27 Thread Chris Knowles
try adding display: block - by default they are usually displayed as inline in ie you need to add them via javascript before it will recognise them: document.createElement("header"); -- Chris Knowles On 27/09/10 8:13 PM, tee wrote: Only the two Webkit browsers are able to

Re: [WSG] best practice?

2005-04-28 Thread Chris Knowles
This works well... body { text-align: center; } #container { margin: 0 auto; text-align: left; } But so does this... #container { position: absolute; top: 0; left: 50%; width: 60em; margin-left: 0 0 0 -30em; } -- Chris Knowles

Re: [WSG] best practice?

2005-04-28 Thread Chris Knowles
apologies, that should of course be... margin: 0 0 0 -30em; > But so does this... > > #container { > position: absolute; > top: 0; > left: 50%; > width: 60em; > margin-left: 0 0 0 -30em; > } ** The discussion list for http://

Re: [WSG] IE extra space; background not showing up; odd links

2005-04-29 Thread Chris Knowles
For validation I suggest download the web developer extension for Firefox from... https://addons.update.mozilla.org/extensions/showlist.php?application=firefox&category=Developer%20Tools&numpg=10&pageid=3 It's a toolbar you can validate the current page with, disable style sheets and javascript

Re: [WSG] How do you cater to users with disabilities?

2011-08-26 Thread Chris Knowles
o Nonsense Man! -- Chris Knowles On 26/08/11 3:15 PM, Jay Tanna wrote: Personally I don't go out of my way to do anything special. I design the site as it comes and if some people can't access it - tough luck. There is no point in spending any additional time or money in buying special