It may fail because this code may overwrite element's properties (and in
some browsers like IE and Opera some attributes, mapped as element
properties). E.g. $("someInput").store("name", "foo").store("type", "bar");
Better will be some separate container to store values inside, but this
leads t
>
> Internet explorer doesn't like object definitions without quotes around
> the names
>
Hmm... example from Prototype 1.7 sources:
Object.extend(methods, {
getStorage: getStorage,
store: store,
retrieve: retrieve
});
Quotes are required for properties matching reserved
Form.YooEventObserver = Class.create({Abstract.EventObserver, {
minQueryLength: 3,
getValue: function() {
// return YAHOO.util.Connect.setForm(this.element);
//return Form.serialize(this.element);
},
// ... other methods
});
--
You received this message because you are subscri
Hello!
I need some more ideas how to enumerate all classes - find at runtime (in
browser) all classes created with Class.create(). My initial approach:
function enumerateClasses() {
for (var p in window) {
var c = window[p];
if (Object.isFunction(c) &&
!Object.isUndefined(c.supercl
Sorry Victor it did not work, i had below in js file..
Form.YooEventObserver = Class.create(Abstract.EventObserver, {
minQueryLength: 3,
getValue: function() {
// return YAHOO.util.Connect.setForm(this.element);
//return Form.serialize(this.element);
},
registerFormCallbacks
On Aug 9, 2012, at 5:28 AM, Victor wrote:
> It may fail because this code may overwrite element's properties (and in some
> browsers like IE and Opera some attributes, mapped as element properties).
That's an excellent point.
> E.g. $("someInput").store("name", "foo").store("type", "bar"); Bet
I agree that some code is not always written like that - but I've had many
instances where a javascript block would work in modern standards compliant
browsers yet fail silently in IE until I put quotes in, single or double.
Jason Westbrook | T: 313-799-3770 | jwestbr...@gmail.com
On Thu, Aug 9