Hi Christophe, Yes, I know it sounds silly, but my company contracted a useless service provider before I came on board that I have to live with for the time being. A CMS system for dummies which I can't add any server-side scripts to. So imagine how I feel having to update stupid text daily by hand. Hopefully this will change in a couple months and I can have a proper Apache server which is completely under my control. The contents are only 3 sentences long, so that won't take too much to load. At any rate, I will have a text there saying "loading..."
Do you see the big picture now? I'm stuck with server-side scripting at the moment. A good chance to learn a bit more of javascript and AJAX. By the way, now that I have you in the thread, do you know or could indicate me whree I could find some example on how to do this using xml instead of html for the data? Cheers :) 2007/2/19, Christophe Porteneuve <[EMAIL PROTECTED]>: > > > Hey Esther, > > All AJAX aside, why are you using AJAX to do something that could > clearly be done server-side? > > I mean, you're just loading *the entire page contents* based on the > freakin' weekday! This can be done server-side using SSI's, PHP, or > whatnot. Even if you need to work based on the visitor's TZ's weekday, > HTTP headers will give you his/her GMT offset anyway... This would take > <10 lines in any server-side tech. > > Even from an accessibility standpoint, this is *not* comfort, this is > core functionality here (the whole contents!), so this should not depend > on JS and AJAX being available. > > From a visual standpoint, this also means that with any network latency, > the visitor will first encounter an empty page, and have no visual clue > that the actual contents is loading from then on... Not too good. > > In short, this sounds to me like a textbook case of AJAX used where it's > clearly not the relevant path. > > Sometimes we're so bent on implementation, we forget the bigger picture. > I may be wrong (not having the bigger picture), but from the problem > you described, I fail to see why AJAX is needed at all! > > Just my two cents, > > -- > Christophe Porteneuve a.k.a. TDD > "[They] did not know it was impossible, so they did it." --Mark Twain > Email: [EMAIL PROTECTED] > > > > -- Esther Fuldauer Web Developer & Designer tlf. 972355421 movil 679066844 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
