Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COI'm going to give this a whirl. Nice description. Being that JS isn't a true OO language, JS objects have tripped me up so far. The Flanagan book doesn't do too great of a job explaning it but this might get me going down the right road. I was planning on making all of this a plugin (using CSS3 gradients rather than the images). How would using objects work in that case, and what is the alternative to global objects considering this will eventually be used in many different instances?
      singulars
    2. COJS is based on Prototyping idea. You can inherit from objects not classes and add methods on the fly - that's the basic of basics of that concept. If you are creating a plugin I'd recommend putting the object in jquery.pluginname namespace. Read about plugin authoring and It's there somewhere. Feel free to ask if not satisfied ;) I enjoy introducing people representing ambitious approach
      singulars
    3. COHey naugtur, here's what I've come up with (which works fine so far! also have moved to CSS3 properties rather than images [interestingly enough I had to force border color changes by .css(). Weird!]): http://jsfiddle.net/uVDQP/3 -- Now, I'd like to refactor this a little further before I build it into a plugin. I tried (and failed), but I'd like to make the TextInput object (and in turn the subsequent objects that will handle the other form field types) into a constructor object with all the stuff going on in the jQuery "each" statement happening automatically with the "new" instantiation.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload