RE: [WSG] Idiot's guide to JavaScript

2007-11-14 Thread James Leslie
Hi guys, Am comfortable with HTML/CSS and accessibility in general, but struggle with JavaScript. I'm not a developer by trade, am a business type (sales and marketing) so most oft he stuff is well over my head. I am looking for a really basic, plain English guide to JavaScript. Either on or offli

[WSG] Less than and greater than in UTF-8 encoded HTML

2007-11-14 Thread Simon Cockayne
Hi, How should I code less than "<" and greater than ">" signs in UTF-8 encoded HTML? I.e. I want them to appear on the web page as follows: ... The quick brown fox said 3 is less than 4, then he wrote "3 < 4". ... Cheers, Simon

Re: [WSG] Less than and greater than in UTF-8 encoded HTML

2007-11-14 Thread Sébastien Sauvé
Hi Simon, You should use HTML entities to encode those characters. You can view a list of those entities here : http://www.w3.org/TR/html401/sgml/entities.html But to answer your question quickly, ">" should be written as ">", and "<" as "<". Cheers, Sebastien On Nov 14, 2007 9:42 AM, Simon C

RE: [WSG] Less than and greater than in UTF-8 encoded HTML

2007-11-14 Thread Mohamed Jama
http://www.webstandards.org/learn/reference/charts/entities/ Always found it to be very useful _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James Leslie Sent: 14 November 2007 15:08 To: wsg@webstandardsgroup.org Subject: RE: [WSG] Less than and greater than in

Re: [WSG] Less than and greater than in UTF-8 encoded HTML

2007-11-14 Thread Tom Roper
Simon, Less than is < and more than is &qt; So it would be "The quick brown fox said 3 is less than 4, then he wrote "3 < 4". best Tom On 14 Nov 2007, at 14:42, Simon Cockayne wrote: Hi, How should I code less than "<" and greater than ">" signs in UTF-8 encoded HTML? I.e. I wan

RE: [WSG] Less than and greater than in UTF-8 encoded HTML

2007-11-14 Thread James Leslie
How should I code less than "<" and greater than ">" signs in UTF-8 encoded HTML? less than = < greater than = > You might find this useful: http://leftlogic.com/lounge/articles/entity-lookup/ James ***

Re: [WSG] Less than and greater than in UTF-8 encoded HTML

2007-11-14 Thread Mike at Green-Beast.com
Hello Simon, > How should I code less than "<" and greater than ">" > signs in UTF-8 encoded HTML? > The quick brown fox said 3 is less than 4, then he wrote "3 < 4". The quick brown fox said 3 is less than 4, then he wrote "3 < 4". Greater than, >, is written as > Cheers. Mike Cherim http://g

[WSG] IE layout glitch on Blog

2007-11-14 Thread Simon Cockayne
Hi, I am not the owner of http://www.shield.on.ca/Blog/index.php ... But...I am puzzled as to why the navigation sidebar drops down below the blog content in IE 6...but appears fine and dandy (top right immediately below the header) in Firefox 2. Any ideas? I am thinking it is an IE "double pa

Re: [WSG] IE layout glitch on Blog

2007-11-14 Thread Dave Woods
Looks like it's more likely to do with your use of the tag. Firefox is allowing the content to overflow into the other container whilst IE6 won't. The easiest fix would probably be to use some kind of overflow: auto; in that section of the page along with a width to force a scrollbar on any cont

Re: [WSG] Idiot's guide to JavaScript

2007-11-14 Thread James Jeffery
Hi Rob. I 'was' in the same shoes as you. I have previous experience developing with PHP and using Objects and Classes so i had a head start but i still found it tough. Here is what i did and what i am still doing. I started by watching the Videos on yahoo, Crockford has some great ones! I then

RE: [WSG] How to better center the YUI overlay

2007-11-14 Thread Cynthia Mack
Thanks Cynthia Mack Omnipath custom learning solutions 6135 Memorial Drive, Suite 103 Dublin, OH 43017 614-389-0743 [EMAIL PROTECTED] The doors of Opportunity are marked "Push" and "Pull." - Ethel Watts Mumford -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

Re: [WSG] i want to know the basic of aspx or javascript for web

2007-11-14 Thread Michael Horowitz
The question you need to first ask is what do they want the site to do, then you can decide on the language. I notice your title is including aspx which is asp.net which only runs on a Windows server. PHP runs on both Unix and Windows but typically is used on Unix The best basic tutorial is

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: http://webstand

[WSG] Javascript

2007-11-14 Thread Michael Horowitz
I have a form that starts with choosing a category and a subcategory. The categories and subcategories are read from a mysql database using a PHP script. When New is chosen from Category I want the Category chose to change from a select to a text input box for both the Category and Subcategory

Re: [WSG] Idiot's guide to JavaScript

2007-11-14 Thread Olly Hodgson
On Nov 14, 2007 9:44 PM, Chris Knowles <[EMAIL PROTECTED]> wrote: > 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/ http://domscripting.com/book/ is very good too

[WSG] How to send two values to javascript

2007-11-14 Thread Michael Horowitz
I have examples using one value onchange="showSubcategory(this.value)"> from a form to a script. What if I need to send two values one from the current element in the form and one from another element Thanks -- Michael Horowitz Your Computer Consultant http://yourcomputerconsultant.com 561-

Re: [WSG] Idiot's guide to JavaScript

2007-11-14 Thread Lars Michael Sørensen
I recommend http://www.tizag.com/javascriptT/ - they have a lot of other tutorials as well. Very easy to follow, all the way through. /lmss 2007/11/14, Olly Hodgson <[EMAIL PROTECTED]>: > On Nov 14, 2007 9:44 PM, Chris Knowles <[EMAIL PROTECTED]> wrote: > > Rob Mason wrote: > > > > > I am looking

Re: [WSG] form destiantion

2007-11-14 Thread Michael Horowitz
Didn't see a form when I went there but was wondering what problem you were having. What language are you using to process the form. Michael Horowitz Your Computer Consultant http://yourcomputerconsultant.com 561-394-9079 Marvin Domalaon wrote: Good day to everyone, I have sample site

Re: [WSG] How to send two values to javascript

2007-11-14 Thread Benedict Wyss
I believe it is as follows; onchange="showSubcategory(name, email, message)" --- if they are the name=name and name=email, etc. or, if you want to parse text, then onchange="showSubcategory("banana", "orange", "apple")" -- So when it arrives at the script it becomes an array starting at [0] to

Re: [WSG] Help (another topic)

2007-11-14 Thread Michael Horowitz
PHP allows you to do this Display The IP Address So, if you want to display the IP Address to the user then the following page will suffice: http://whn.vdhri.net/2005/11/find_a_visitors_ip_address_with_php.html Michael Horowitz Your Computer Consultant http://yourcomputerconsultant.com 56

Re: [WSG] Web Form Best Practices

2007-11-14 Thread John Faulds
Here's a recent one that might prove useful: http://www.digital-web.com/articles/redesigning_ebay_registration/ On Thu, 15 Nov 2007 08:55:46 +1000, Howard Kim <[EMAIL PROTECTED]> wrote: I hope this question is appropriate for this list. I'm doing some research on best practices for creat

Re: [WSG] How to send two values to javascript

2007-11-14 Thread Olly Hodgson
On Nov 14, 2007 10:37 PM, Michael Horowitz <[EMAIL PROTECTED]> wrote: > I have examples using one value > > onchange="showSubcategory(this.value)"> > > from a form to a script. > > What if I need to send two values one from the current element in the > form and one from another element onchange="s

[WSG] Web Form Best Practices

2007-11-14 Thread Howard Kim
I hope this question is appropriate for this list. I'm doing some research on best practices for creating web forms with the following in mind: * Accessibility * Semantic Markup with CSS * Form Layout & Design I would like to come up with some "form templates" for my organization based on bes

Re: [WSG] How to send two values to javascript

2007-11-14 Thread Olly Hodgson
On Nov 14, 2007 11:11 PM, Olly Hodgson <[EMAIL PROTECTED]> wrote: > > onchange="showSubcategory(this.value, > document.getElementById("anotherElement").value);" While I'm here, two points: Doing anything major using the onchange event isn't a great idea. The reason being it can scupper keyboard u

Re: [WSG] Web Form Best Practices

2007-11-14 Thread Howard Kim
Thanks John. In my own searching I also found - http://www.lukew.com/ff/entry.asp?545 - which I thought might be useful to others. ~Howard John Faulds wrote: Here's a recent one that might prove useful: http://www.digital-web.com/articles/redesigning_ebay_registration/ On Thu, 15 Nov 2007 0

Re: [WSG] Web Form Best Practices

2007-11-14 Thread Steve Baty
Howard, I highly recommend Luke Wroblewski's work on form layout & design best practice. You can find Luke's discussion article here: http://www.lukew.com/resources/articles/web_forms.html and here: http://www.lukew.com/ff/entry.asp?144 Luke is also working on a book on the subject: http://www.ro

Re: [WSG] Web Form Best Practices

2007-11-14 Thread Mike at Green-Beast.com
Hello Howard, > some "form templates" > Any help focusing my search? I can offer a demo form [1] and a post about some (hopefully) best practices [2]. There is also an accessible form builder [3] at Accessify.com. No templates per se, but maybe these will be helpful. [1] http://green-beast.com

Re: [WSG] How to send two values to javascript

2007-11-14 Thread Michael Horowitz
I just ordered the book. Thanks for the help I test out the solutions given. Michael Horowitz Your Computer Consultant http://yourcomputerconsultant.com 561-394-9079 Olly Hodgson wrote: On Nov 14, 2007 11:11 PM, Olly Hodgson <[EMAIL PROTECTED]> wrote: onchange="showSubcategory(this.valu

Re: [WSG] How to send two values to javascript

2007-11-14 Thread Michael Horowitz
Having trouble so I went to testing with one element like this onchange="showSubcategory(document.getElementById("category").value)"> and firebug shows a syntax error. I tried it again taking oub the "" onchange="showSubcategory(document.getElementById(category).value)"> and then receive

RE: [WSG] Web Form Best Practices

2007-11-14 Thread Frank Palinkas
Hi Howard, If I may add to the excellent advice already offered, and which caters to another aspect of an accessible web form? Please take a look at my Fast Track tutorial "Calling Accessible Context-Sensitive Help with Unobtrusive DOM/JavaScript" at my web page: http://frank.helpware.net. This c

Re: [WSG] How to send two values to javascript

2007-11-14 Thread Casey Farrell
Try using single quotes, as in: onchange="showSubcategory(document.getElementById('category').value)"> Michael Horowitz wrote: Having trouble so I went to testing with one element like this onchange="showSubcategory(document.getElementById("category").value)"> and firebug shows a syntax e

Re: [WSG] How to send two values to javascript

2007-11-14 Thread Kit Grose
On 15/11/2007, at 3:34 PM, Casey Farrell wrote: Try using single quotes, as in: Michael Horowitz wrote: Even better would be to modify the function itself to get the second value: Then in the JS: function showSubcategory(value1) { // Get value 2 either with var value2 = docu

Re: [WSG] How to send two values to javascript

2007-11-14 Thread Michael Horowitz
I've tried single quotes and keep getting the error document.GetElementByID has no properties Michael Horowitz Your Computer Consultant http://yourcomputerconsultant.com 561-394-9079 Casey Farrell wrote: Try using single quotes, as in: onchange="showSubcategory(document.getElementById('cate

Re: [WSG] How to send two values to javascript

2007-11-14 Thread Michael Horowitz
I think you may have something with this secondSelect.items as I am using a select menu. Can you explain where I would put my variable names in here please. Thanks Michael Horowitz Your Computer Consultant http://yourcomputerconsultant.com 561-394-9079 Kit Grose wrote: On 15/11/2007, at

Re: [WSG] How to send two values to javascript

2007-11-14 Thread Michael Horowitz
I think I understand it no need for more explanation. It's too late at night and I am working with twins in the room and a wife at the airport Michael Horowitz Your Computer Consultant http://yourcomputerconsultant.com 561-394-9079 Kit Grose wrote: On 15/11/2007, at 3:34 PM, Casey Farrell w

Re: [WSG] How to send two values to javascript

2007-11-14 Thread Michael Horowitz
That solves problem number 1 Michael Horowitz Your Computer Consultant http://yourcomputerconsultant.com 561-394-9079 Casey Farrell wrote: It must not be finding the element... does the element you are looking for in the document have id="category"? Michael Horowitz wrote: I've tried single

Re: [WSG] Navigation - Pseudo Standards?

2007-11-14 Thread Christian Snodgrass
I think it really comes down to which you want to be more important, site navigation or the products. If you only have like 2 pages besides product navigation and your site is basically an online store, I would put the products on the left. If you are a site with content that just happens to se

[WSG] Navigation - Pseudo Standards?

2007-11-14 Thread Christie Mason
We're having an internal discussion about the placement of site navigation (Contact Us, etc) vs Product Navigation (Search, Category 1, Category 2, etc) in a 3 column layout with | Navigation |Content | Navigation | Some feel the site navigation should be in the left column with p

Re: [WSG] How to send two values to javascript

2007-11-14 Thread Casey Farrell
It must not be finding the element... does the element you are looking for in the document have id="category"? Michael Horowitz wrote: I've tried single quotes and keep getting the error document.GetElementByID has no properties Michael Horowitz Your Computer Consultant http://yourcomputercon

Re: [WSG] How to send two values to javascript

2007-11-14 Thread Brian Cummiskey
Michael Horowitz wrote: onchange="showSubcategory2(document.getElementById('category').value,document.getElementById('subcategory').value)"> try this: *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Un

Re: [WSG] How to send two values to javascript

2007-11-14 Thread Kit Grose
The issue is that selects themselves don't have values. You notice the value is on the option tag, not the select. So you can't just get the .value of the element with ID 'subcategory'; you need to get the value of the currently selected item OF that select box. That can be done as an inlin