SMF Community Helpers > Mod Development
[WIP] Breeze
Marcus Forsberg:
Btw, are you planning to provide any fallbacks for users with JS turned off (aka idiots)? It just hit me and I had to try it out, and it doesn't work very well at all. Now, I fully support you *not* providing fallbacks since anyone with JS turned off should burn to death anyhow. I'm just curious ;)
Suki:
That's an interesting question and I haven't thought about it.
I guess I am already excluding a lot of users who don't use php 5.3 or even SMF 2.0, I suppose excluding those with JS off is just another stripe on the tiger :P
The issue with including a fallback is that I already wrote a lot of php code around jQuery instead of the other way around :-\
Marcus Forsberg:
I see what you mean. I really wouldn't worry about it at this point. When I was working on SimpleNetwork I first wrote a non-AJAX version and then added AJAX on top of it but eventually it became a PITA to manage. That was a clear mistake, it's better to do it JS-only like you do; no use dwelling in the past. :)
Suki:
It may be worth to include some kind of message or just disable the entire mod if js is off, the problem is to find a good way to be able to detect when js is off, maybe with a cookie but that's not 100% effective.
Perhaps just provide the very basic functionality, to post new status/comments and that's it.
Marcus Forsberg:
Yeah, and it should be fairly simple to include that basic functionality. You could even reuse the function you have (accessed through ?action=breezeajax, is it?). Just have it check if $_REQUEST['js'] is set, and if it is, keep going just as usually, and if it's not, do the posting and then redirect back to the profile instead of outputting the post body and all that. I dunno, just the first thing that came into my mind.
You obviously know exactly how to handle it without my help ;D
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version