| User | Post |
|
8:31 PM Dec 15, 2009
| acousticsam
| | | |
| Member | posts 46 |
|
|
The design rules state that "No JavaScript / DHTML is to be used in your design."
But there are a few designs that have been approved with JS in them.
Not that I'm opposed, but the rule should be changed to reflect the de facto acceptance of JS in designs…
|
|
|
9:06 PM Dec 15, 2009
| Sean
| | USA | |
| Admin
| posts 135 |
|
|
I've been approving some designs with JS on a per-design basis and when the designers have contacted me before hand.
I do agree that our overall design rules and guidelines need to be updated, which is why we are also discussing the text in images rule in the other thread.
|
|
|
9:43 AM Dec 21, 2009
| conartistdesign
| | | |
| Member | posts 6 |
|
|
maybe JS should be disallowed for design issues and all that but effects and what not may be allowed? idk. it can get shady.
|
|
|
9:53 AM Dec 21, 2009
| Sean
| | USA | |
| Admin
| posts 135 |
|
|
I agree that JS should not be used to correct a design issue (this should be done in the HTML and CSS) but only for things like photo galleries, or other special effects.
This is the main reason I've been allowing some JS on a per design basis. I know a lot of shady things can happen with allowing JS in designs.
|
|
|
10:45 AM Dec 21, 2009
| Jason Cole
| | | |
| Member | posts 20 |
|
|
Sean: you really should have started this discussion before you started to approve designs.
What I think should be done: build a set of public-domain Java Scripts for performing a few common tasks, ( a seperate script for each) and publish them here as the ONLY allowed JS.
This keeps things under control, and running smooth, with minimal work for the person approving designs, since they don't need to scan the JS files. If the files differ in any way from the originals, or the code contains script tags, it will automatically fail, in the same way that an invalid design cannot be approved. The onclick and onmouseover events are allowed to contain the triggers for our code, but nothing else.
What would everyone think of that?
|
|
|
11:02 AM Dec 21, 2009
| Sean
| | USA | |
| Admin
| posts 135 |
|
|
Jason Cole said:
Sean: you really should have started this discussion before you started to approve designs.
I was already approving some JS before we even had a forum, so there wasn't an easy way to discuss it much before hand, however we are now discussing it
Also, so far there hasn't been a lot of JS stuff in designs, so now is a good time to work out these details.
I do like your suggestion of having a set of public domain Java Scripts and have them published here for download.
Wolfram would be a good person to start working with on this since he does use JS in some of his designs for photo gallery and other features.
By the way, nice seeing you on the site Jason. Looking forward to more of your input and support of the site.

|
|
|
6:57 PM Dec 21, 2009
| conartistdesign
| | | |
| Member | posts 6 |
|
|
god do i love to see stuff get worked out and talked about…
|
|
|
7:45 PM Dec 21, 2009
| acousticsam
| | | |
| Member | posts 46 |
|
|
If we're going to have a list of accepted scripts, we should make sure that they degrade nicely when JS is turned off.
May I also suggest a list of uses that JS would be approved for (we can decide what scripts to use based on what we want to use JS for):
- lightboxes/popups
- image rotator/slideshow/gallery
- tabs
- show/hide
- accordion
- ajax form validation
- other ideas?
Let's remember that JS is for action, not content. All content should be accessible with JS turned off. These JS scripts should serve as embellishments, not as the centrepiece of a design.
|
|
|
8:31 PM Dec 21, 2009
| Sean
| | USA | |
| Admin
| posts 135 |
|
|
acousticsam said:
Let's remember that JS is for action, not content. All content should be accessible with JS turned off. These JS scripts should serve as embellishments, not as the centrepiece of a design.
I agree 100%.
|
|
|
12:20 AM Dec 22, 2009
| wfiedler
| | | |
| Moderator
| posts 100 |
|
|
What acousticsam suggested should be enough. And we should only use jQuery (minified/packed version) as a library, because it is the most popular one. There are many of light weighted plugins, which we can use. Perhaps we should collect some oft these for using in our designs and somebody (Alec?) can make one plugin for the suggested functions.
BTW: If you want, you can directly link to the latest jQuery version without using it in the ZIP, but of course the functions will only be online available.
Edit: Just read that Jason had the same idea with the functions plugin…
|
|