I\'m trying to make a request using prototype 1.6.1 on ie 8, the following code works on Firefox: var myForm = document.forms[0];
This question already has answers here: Closed 12 years ago.开发者_如何转开发 Possible Duplicate:
Please help with my problem described below: var Land = function(){ this.cities = []; } Land.prototype = {
Okay, my first attempt at trying to explain what I was doing failed miserably.I\'m basically copying Crockford\'s Object.create(), except with private variables.
This question already has answers here: Javascript object members that are prototyped as arrays become shared by all class instances
EDIT: I posted before I thought everything out.Here is a better implem开发者_JAVA技巧entation of what was in my mind: Javascript inheritance idea (part 2)
Im thinking of making a custom datatypes / prototypes for a project im working on but im wondering if its such a good idea?
I already have a set of functions I use to extend the document (i.e. bind/unbind). So I can do stuff like: document.bind(\'load\',someAction,{})
For my rails site, when somebody attempts to delete an item, I wish to pop up a custom div (as opposed to a javascript alert box) asking for confirmation before doing so.
This question already has answers here: JavaScript setInterval and `this` solution (9 answers) Closed 3 months ago.