![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| ||||
| ||||
|
| Design your site without any JS involved. If it works decently, add JS stuff as "nice-to-have-or-look-at". |
|
E.g. the non JS version comes without popup calendar, error messages are not in modals, but plain server-generated messages. |
|
Forms must be validated on the server-side, but one can add AJAX functionality for a better response times. |
|
However, some features will lead to "parallel" (and labor-intense) solutions. E.g. the online shop. The classic one with checkboxes, the nice one with drag-and-drop baskets. |
#3
| |||
| |||
|
|
I'd be interest in strategies for dealing with those visitors who don't have JavaScript enabled |
#4
| |||
| |||
|
|
On Apr 30, 7:03 pm, Gregor Kofler <use... (AT) gregorkofler (DOT) at> wrote: Design your site without any JS involved. If it works decently, add JS stuff as "nice-to-have-or-look-at". Actually, that's exactly how I started out...then I realized that some folks choose to disable JavaScript! E.g. the non JS version comes without popup calendar, error messages are not in modals, but plain server-generated messages. Unfortunately, my webhost doesn't allow server-side scripting! http://buildit.sitesell.com/sunnyside.html |

#5
| ||||
| ||||
|
| I would start by having your basic page layout contained within the <body> of your of your document, rather than a completely empty one! |
|
Figure out what you need to have so that visitors have something to see _without_ resorting to JS or <noscript> blocks. |
|
If you have stuff that absolutely has to be delivered via JS, load it into <div>s with specific id values rather than constructing the entire page that way. |
|
Here's what I see when I visit your site in Firefox with the NoScript plug-in enabled: http://www.chem.utoronto.ca/~dstone/sunnyside.tiff - stunning, isn't it? ![]() |
#6
| ||||
| ||||
|
| So what? They get the not-soooo-pretty-but-still-perfectly-usable page. |
|
Hey, then it's easy. You can forget about all the "serious" stuff, since XHR (aka AJAX) doesn't make (much) sense without server side scripting. |
|
Practically speaking: Yes. |
|
As I said: It's *extremely* unlikely, to find a solution, where you just add some JS to your classic checkbox-driven shopping cart, and it becomes automagically a smooth drag-and-drop-application. |
#7
| |||
| |||
|
|
On May 1, 8:17 am, David Stone <no.em... (AT) domain (DOT) invalid> wrote: I would start by having your basic page layout contained within the <body> of your of your document, rather than a completely empty one! Huh?? Have basic page layout in the <body> tag instead of an external CSS file?! |
|
Here's what I see when I visit your site in Firefox with the NoScript plug-in enabled: http://www.chem.utoronto.ca/~dstone/sunnyside.tiff - stunning, isn't it? ![]() Hey, wait a minute!! I have JavaScript disabled in Internet Explorer 7 (it was disabled by default for some reason) and I can still view that site nicely, with the JavaScript working just fine -- I think I wrote about it in my |
|
But how did your NoScript plug-in do that??? How come simply disabling JavaScript doesn't result in the same thing??? |
#8
| ||||
| ||||
|
| No, actual CONTENT - the page you gave in your URL was completely empty, apart from some links server up by the JS. |
|
[snip] Java or JavaScript? (Not the same thing!) |
|
Disabled for ALL site, or only ones which aren't flagged as trusted? It's been a long time since I poked preferences in IE, and I don't have access to IE 7 at all, but my recollection is that things a bit, um, "clearer" in Firefox and related browsers compared to IE versions. |
|
Try installing Firefox and No-Script on your test box, and see if you get the same thing... |
#9
| |||
| |||
|
|
On May 1, 12:28 pm, David Stone <no.em... (AT) domain (DOT) invalid> wrote: No, actual CONTENT - the page you gave in your URL was completely empty, apart from some links server up by the JS. Hmm, didn't realize their page was like that! That's my webhost, you know, and they're always preaching about web standards and "KISS".... [snip] Java or JavaScript? (Not the same thing!) Actually, it's some kind of ActiveX "firewall" that seems to only affect *my* JavaScript! Other sites' JavaScripts work fine, but the one I'm creating offline gets that MSIE 7 warning about ActiveX Controls...?! |
|
Another thing, please, since you seem really knowledgeable about browser matters: Firefox' JavaScript console popped up for the first time today over a modal window I was wrestling with, but it never did before, despite my being far from being even a competent Script Kid...so why did it decide to do that today all of a sudden? |
|
Furthermore, I erased the "log activity" of the console ('cause I couldn't understand them anyway and wanted to regenerate the error messages by re-running that problematic modal window script) but despite still popping up, no more error messages were posted by the console! What the font?!?! |
#10
| |||
| |||
|
|
Can't help you there - like I said, I don't have access to IE. You could try the Help function... [snip] Preferences > Content - note the different options, the ability to set site-specific exceptions, and the Advanced... button for JavaScript settings. No idea - try the Help function... |
![]() |
| Thread Tools | |
| Display Modes | |
| |