Reply LinkBack Thread Tools Search this Thread
Old 25-06-2009, 23:44   #1 (permalink)
tomdelonge
Registered User
 
Join Date: Jul 2008
Posts: 11
target demographics (what should I do)

My target audience is females ages 20 to 65. What can I expect their browsers to be able to handle? Should I use ajax? What about download speeds? Should I be sending jquery and such? I'd like to be able to incorporate some of these features, but I'm not sure who will be able to handle them.

I haven't done a lot with ajax and jquery, so answer me this too:
Say I want to submit a comment without a page refresh. Can I test if they're browser will do it and if it won't then just do the page refresh?

Thanks.
  Reply With Quote
Old 26-06-2009, 00:18   #2 (permalink)
Synook
What happened?
 
Synook's Avatar
 
Join Date: Jul 2008
Posts: 1,826
AJAX is supported in every major browser since IE 5. jQuery supports "IE 6.0+, FF 2+, Safari 3.0+, Opera 9.0+, [and] Chrome".

As aforementioned AJAX is very well-supported, but if for some reason their browser doesn't want to run the scripts (e.g. JS is off) then you can just provide a href for the anchor as well and make the onclick event return the result of the JS - if it doesn't work the browser will just load the alternate location as specified in the href.
__________________
Web developer • AspektasBlogTwitter


  Reply With Quote
Old 26-06-2009, 03:33   #3 (permalink)
solarisedesign
Where's my snow?
 
solarisedesign's Avatar
 
Join Date: Aug 2008
Location: Edinburgh, UK
Posts: 801
Send a message via MSN to solarisedesign
Simple answer: Expect absolutely nothing about a user's browser. For all you know, they're using Lynx on a handheld or some such nonsense.

Basically, make sure you have fallbacks in place for all your AJAX effects. So that, for example, a user will be able to submit a comment using the normal HTML <form> tags, but if they have javascript, then the javascript will automatically AJAXify the form tag.

Basically, something like...

HTML Code:
<form id="theform" method="POST"> <input type=text> <input type=submit> </form> <script> $("#theform").ajax({.. .. ..}) </script>

Or something along those lines.

p.s. - that code won't actually do anything. It's just a very rough example
  Reply With Quote
Old 26-06-2009, 04:48   #4 (permalink)
Shiro
Whitey
 
Shiro's Avatar
 
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 7,288
I agree. Program your site to work without javascript at all. Then overlay ajax on top to make it pretty.
__________________
This space for rent.

After Hours Japan
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive
Web Hosting by Heart Internet, vBulletin © 2000-2009 Jelsoft Enterprises Limited.
Search Engine Optimization by vBSEO 3.0.0 RC8
Web Hosting by Heart Internet