[WSG] DIV Javascript Problem
Hi All I was wondering if I can pick all your brains on an issue I am facing. I am not a big coder and good when it comes to JavaScript. I have recently taken charge of maintaining a website for a client who uses divs to display data onto a .htm page. They do not want to use .php and mysql data basing as they are worried about losing their ranking in the search engines. Here is an extract of the coding. script language=javascript src=rates.js/script - obviously imports the divs with the prices attached. body onLoad=loadPrices('ox001, ment001 ,hvh001 ,vhw001') And in the .htm document I have the code. div id=hvh001/div So I was wondering why this does not always work and especially when I seem to update pages using dreamweaver. I dunno how this works or why it even works. I am trying to convince the client to turn their whole site into a database driven site so these problems don't happen and you do not have bad code however we all have clients who do not wish to listen so any advice would be great. If you have any issues regarding this email please feel free to contact me on the details below. Aaron Wheeler Tel: 01483 860 235 Email: aa...@stageguy.co.uk Web: www.stageguy.co.uk Stageguy Designs Limited. Registered in England and Wales No. 6814665 Registered Office: 788-790 Finchley Road London NW11 7TJ Stageguy Designs Ltd raises money for charity with Everyclick.com - http://www.everyclick.com/stageguy-designs-ltd *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] DIV Javascript Problem
On 29/06/2009, at 7:32 PM, Aaron Wheeler wrote: I dunno how this works or why it even works. If you're unable to work out how this works with the code in front of you, I'm not sure how anyone on this list is going to be able to help you without any code. Your best bet would be to tell that client that they should find someone who is a little more proficient with Javascript and HTML to solve the problem. Cheers, Nathan de Vries *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] DIV Javascript Problem
Aaron Wheeler wrote: They do not want to use .php and mysql data basing as they are worried about losing their ranking in the search engines. So rather than presenting the data in a form that the search engine will ready, they are choosing to use a method where the search engines will ignore it? Here is an extract of the coding. script language=javascript src=rates.js/script - obviously imports the divs with the prices attached. Um. Right. Obviously. HTML 3.2 for some reason. body onLoad=loadPrices('ox001, ment001 ,hvh001 ,vhw001') And this is invalid. Use a validator before asking humans to look at code please. It saves their time if you don't waste it with errors that a machine can pick up. It is also odd for a JS script to expect a string containing comma separated data rather than a separate JS argument for each piece. -- David Dorward http://dorward.me.uk/ *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] DIV Javascript Problem
Aaron Wheeler wrote: Hi All I was wondering if I can pick all your brains on an issue I am facing. I am not a big coder and good when it comes to JavaScript. I have recently taken charge of maintaining a website for a client who uses divs to display data onto a .htm page. They do not want to use .php and mysql data basing as they are worried about losing their ranking in the search engines. Here is an extract of the coding. script language=javascript src=rates.js/script - obviously imports the divs with the prices attached.ide1') And in the .htm document I have the code. div id=hvh001/div So I was wondering why this does not always work and especially when I seem to update pages using dreamweaver. I think it's a big mistake to use JavaScript to add essential information to a document. First, if Internet security options are set to high, as security-conscious organizations do, then scripting is disabled in IE. Second, the NoScript add-on for Firefox seems very popular - over 50 million downloads as of this writing. Finally, it seems likely that search engines *may* miss this content, possibly affecting the site's ranking. (Open to correction on this - I am no SEO authority.) Aside - I wouldn't rely on Dreamweaver's interpretation as truly representative, although CS4 is a marked improvement over earlier versions. Cordially, David -- *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
Re: [WSG] DIV Javascript Problem
At 6/29/2009 02:32 AM, Aaron Wheeler wrote: taken charge of maintaining a website for a client who uses divs to display data onto a .htm page. They do not want to use .php and mysql data basing as they are worried about losing their ranking in the search engines. Please tell the client that search engines do not use JavaScript, therefore all content that is displayed on the page by JavaScript will not be seen by search engines and will not improve their SEO. This sounds like a classic example of a non-technically-proficient client making low-level technical decisions that are simply outside of their purview. In my opinion the scope of their mandate should be to have a website created that furthers their business model, and to hire the expertise to make this happen. Exactly which technologies are used to reach their goal should not be decided by anyone with little or no experience using those technologies. body onLoad=loadPrices('ox001, ment001 ,hvh001 ,vhw001') For modern HTML support you'll want to enclose attribute values in quotation marks. http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.2 To support modern coding principles such as progressive enhancement and graceful degradation you'll want to strip all JavaScript out of the HTML and confine it to the linked .js file where it belongs. http://accessites.org/site/2007/02/graceful-degradation-progressive-enhancement/ The W3C HTML Validator referred to previously can be found at http://validator.w3.org/ script language=javascript src=rates.js/script body onLoad=loadPrices('ox001, ment001 ,hvh001 ,vhw001') div id=hvh001/div So I was wondering why this does not always work and especially when I seem to update pages using dreamweaver. I dunno how this works or why it even works. It's impossible to say without seeing the complete HTML page and JavaScript file. If you want help, I suggest you post links to where they're located. It's possible that the solution to your problem is simple; if not, it may be beyond the scope of this list to help you for free and you may have to hire some expertise. Good luck! You've got a long climb ahead of you, but achieving altitude to so worth it. Paul __ Paul Novitski Juniper Webcraft Ltd. http://juniperwebcraft.com *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
RE: [WSG] DIV Javascript Problem
You're out of your depth Aaron. A programmer is required. regards Mark Mark Huppert Library Web Development Integrated Library Management System Coordinator Division of Information R.G. Menzies Building (#2) The Australian National University ACTON ACT 0200 T: +61 02 6125 2752 F: +61 02 6125 4063 W: http://anulib.anu.edu.au/about/ CRICOS Provider #00120C -Original Message- From: li...@webstandardsgroup.org [mailto:li...@webstandardsgroup.org] On Behalf Of Aaron Wheeler Sent: Monday, 29 June 2009 7:32 PM To: wsg@webstandardsgroup.org Subject: [WSG] DIV Javascript Problem Hi All I was wondering if I can pick all your brains on an issue I am facing. I am not a big coder and good when it comes to JavaScript. I have recently taken charge of maintaining a website for a client who uses divs to display data onto a .htm page. They do not want to use .php and mysql data basing as they are worried about losing their ranking in the search engines. Here is an extract of the coding. script language=javascript src=rates.js/script - obviously imports the divs with the prices attached. body onLoad=loadPrices('ox001, ment001 ,hvh001 ,vhw001') And in the .htm document I have the code. div id=hvh001/div So I was wondering why this does not always work and especially when I seem to update pages using dreamweaver. I dunno how this works or why it even works. I am trying to convince the client to turn their whole site into a database driven site so these problems don't happen and you do not have bad code however we all have clients who do not wish to listen so any advice would be great. If you have any issues regarding this email please feel free to contact me on the details below. Aaron Wheeler Tel: 01483 860 235 Email: aa...@stageguy.co.uk Web: www.stageguy.co.uk Stageguy Designs Limited. Registered in England and Wales No. 6814665 Registered Office: 788-790 Finchley Road London NW11 7TJ Stageguy Designs Ltd raises money for charity with Everyclick.com - http://www.everyclick.com/stageguy-designs-ltd *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***
[WSG] Australia Standards Based Web Awards
Ever wanted to enter e web awards in which you knew you would be judged on web standards and by your peers in the web industry. Pipe dream? Well this year you can, following on from the highly successful WA Web Awards, held annually since 2005, the Australian Web Industry Association (AWIA) is expanding its awards program nationally to all of Australia. The inaugural Australian Web Awards is open to all web sites produced primarily by Australian designers and developers in the 2008/2009 financial year - that's right, we want YOUR work to be showcased! Entries close on July 7 (only a week away) so don't delay - get your work entered to see how it stacks up against others in Australia. Awards presentation events will be held in Brisbane, Sydney and Perth, with the overall best of the best announced at a black tie dinner on the 6th of November in Perth, after the Edge of the Web conference. Find more details about entry and judging criteria, categories, and costs, visit the Web Awards web site: http://www.webawards.com.au/ I hope you are inspired to enter your work - and good luck to everyone! Don't forget that entries close in just over a week from now. P.S. If you know anyone else who should know about the Australian Web Awards, please forward this onto them. P.P.S. If you use Twitter, you can follow us at http://twitter.com/auswebawards Gary Barber User Experience Designer/ Web Architect Web: radharc.com.au blog: manwithnoblog.com *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org ***