Sponsored by Dragon Age: Origins
Follow the Dragon Age: Origins development team on Twitter view!
twitter.com/DragonAge - EA presents BioWare's new dark fantasy epic Dragon Age: Origins. '9/10' from Game Informer.
19 Comments
- lindvall, on 10/12/2007, -0/+2I have trouble seeing how it's making use of anything asynchronous or XML.
or to quote the article:
"...or the extreme technical folks, no, there is no xml involved here, or even a callback response. I only say Ajax because everyone knows what ‘it’ means. With that said, it’s the Ajax that sets the cookies ‘on the fly’. Got it? Awesome!"
Not really that awesome. Obviously everyone doesn't know what 'it' means if they think Javascript-and-HTML is "Ajax". You could call it "Jah".
You're writing something about programming. If it isn't targetted to the technical folks, who is it for?
It really sounds more like you created a "Degradable PHP Style Sheet Switcher". - lukebuzzy, on 10/12/2007, -0/+0Why do you need to use AJAX?
Create the stylesheet link element using dom and attach it to the head of the document. - inactive, on 10/12/2007, -0/+0Cool ;)
- kolakutusu, on 07/14/2008, -0/+0Thought this kind of approach was finally dead. Hardcoding an empty div followed by a script block in the body? Using a link with an href beginning with sheet switcher? I would much rather have a head script with an init function on window load, that dynamically creates the degradable ajax and searches for text inputs with certain classNames and then injects picker buttons next.
Thanks for this about it is really help me,
http://www.onlineflashgames.org
http://www.bid-directory.net - polvero, on 10/12/2007, -0/+0Thom, of course it's self promotion. I could have told you that with you having to do research ;). Digg is a simple way to get the word out.
Luke, the purpose of Ajax in this example is to set cookies with php (not javascript) and remember the users preferences.
It was, afterall, an article featured on 24ways.org
Hope others find it useful! - FRAGaLOT, on 10/12/2007, -1/+1JEzz.. another post that has the word "Ajax" on it. Seems people digg anything that mentions Ajax, like apple fan boys buying the newest iPods.
- inactive, on 10/12/2007, -0/+0Nice work Dustin!
- Bogtha, on 10/12/2007, -0/+0Why do you take your information from links with classes instead of using standard HTML alternate stylesheets?
Why do you avoid using Javascript to set the cookies *when Javascript is available*?
Why do you talk about "server-side cookies" and "Javascript cookies" as if they are totally different things, rather than the same thing accessed in a different way?
Why are you using invalid code? Spaces are not permitted in URIs unless escaped as %20. - polvero, on 10/12/2007, -0/+0@lindvall: Trust me bro, there are plenty of non-technical folk reading this stuff. So at the least I tried making a brief explanation of it's 'non-xml' like nature. Also the reason why it's not just a php style switcher is because it functions just like Paul Sowden's "Alternate Styles" method where the style sheets are swapped on the fly (via DOM scripting).
@Paul: Thanks bro. You're getting majorly digged these days I hear ;)
@FRAGaLot: At least this one does something useful :) - procras, on 10/12/2007, -0/+0not sure of the ajax-ness of it, but it's a good concept. a more dramatic example (other than just changing font size which any browser can do) would have been nice.
- polvero, on 10/12/2007, -0/+0@Rob: Dude. I'm done defending myself. Explain the amount of people checking it out. There must be something good about it. Outty.
- joeyjojo, on 10/12/2007, -0/+0While 'unobtrusive' and 'ajax' need to be said more often in the same sentence, I don't see any ajax here.
And, as mentioned, don't see a need for it to begin with. - mork571, on 10/12/2007, -0/+0Well, as soon as I read the headline I was like "why use AJAX for that!? how silly" - then I came to realize it is not really making use of AJAX at all (at least by how it is defined in my own opinion - others may differ).
That said, many people may be checking it out, but the comments on here aren't very positive. I don't think the author should be discouraged though - if a handful of people find it useful, good on you. - idris, on 10/12/2007, -0/+0Is this anything new? This seems like something that has been done around the internet for YEARS... Am i wrong?
- notromda, on 10/12/2007, -0/+0This isn't anything new, and it isn't even ajax. There's nothing remotely asyncronous about it. My opinion of 24 ways has dropped sharply after this and a few other recent articles. They were impressive things a year ago.
- SirThom, on 10/12/2007, -1/+0This guy's doing a little self promotion here, by the way. Lookie here:
http://www.christian-web-masters.com/forums/index.php?showtopic=8708&pid=76783&st=15entry76783
Same avatar, link in his signature goes to the same site this digg is for.
I think that's against the rules. No digg. - robweber, on 10/12/2007, -1/+0i dug this just so keep tabs on polvero trying to defend himself in these comments. it's cracking me up.
- lindvall, on 10/12/2007, -1/+0I can't believe anyone dugg this.
- Bogtha, on 10/12/2007, -1/+0> Explain the amount of people checking it out. There must be something good about it.
There's a saying that springs to mind now - "a million flies can't be wrong - eat *****!"
Seriously, since when has "lots of people are checking it out" been a reliable indicator of quality? I'm sure Goatse gets a lot of hits too.


What is Digg?
The Digg Toolbar for Firefox lets you Digg, submit content, and keep track of Digg even when you're not on the Digg site. Download the official