I'm attempting to use JSON to move individual HTML nodes to and from the server, as a means of dynamic page generation and state persistance. (This is just an...
Ok, three things: 1) It turns out that the tip I gave for using the replacer function was totally bogus. Pushing to a stack and never popping doesn't check ...
David, The stringify method is almost almost used to convert "simple" JavaScript objects to a string to do exactly what you're describing -- transport that...
Andrew, Thanks: Y.Node.getDOMNode(oNodeInstance) does get me the object I want to stringify. However, stringify doesn't want to work on it. it fails with: ...
I think I've got it: using a whitelist seems to do the trick: "To serialize only a fixed subset of keys, provide an array of key names as the second parameter...
Phillip - This is actually not an IE issue. It is bug with YUI3 Beta 1 that we're aware of and will be fixed in the soon-to-be-released GA version of YUI3....
I don't think there's a standard list since different elements can have different attributes and it's also possible to define custom attributes on elements...
I'm too quick to blame IE I guess :) Thanks though. I pulled the latest code from Github, and my code works like a charm. Thanks for the very quick and easy...
I need to have the attribute "after" event fire regardless of whether that attribute has been updated. I need a hook that says the user tried to change that...
Are you aware of any performance differences between version A and B above? I tend to use B, usually doing something like this: var MyWidget; // list of all...
Practically, no. A common misconception is that JavaScript is slow, when actually it's the DOM API that is the usual suspect (it is slow). Generally speaking,...
Hi, It would need to be something added to the attribute layer, as an attribute configuration property. If you file an enhancement request, I can look into it...
I'm building a widget that has an array of objects from which a user can choose. When a user selects an object, they must then give a value to that object....
Hey Andrew, Is the value state of the unselected objects in your array reflected anywhere? From your description (or rather my interpretation of "they must...
You're spot on and your reasoning is basically the exact same line of reasoning I've had. The one requirement we have is that if I select "unfinishedChair"...
I think what you're doing right now: treating null (a.k.a. unfinished) as a default and valid value, along with "black", "oak", "cherry" is an accurate...
I'm having some issues creating Widgets and using instanceof, and I think the best way I can illustrate it is with an example. I'll preface by saying I know...
Just to try to add a little something here⦠I've also been using Attribute definitions which allow null and a string with a length > 0 as valid values. e.g. ...
See you write stuff like: "I can see a Form plugin/extension, which would bind a Widget's attributes to a Form [ mapping input elements to attributes ] and...
I think I know what the problem is that you're having. Can you give some sample code? I'm guessing it's something like: YUI().use("widget", function(Y){ ...
I want to add a number of modules and dependencies to the Loader so that I don't have to include all of my own JS files above my call to YUI().use("",...
You could try something like this YUI.add('myapp.loader-meta', function (Y) { Y.mix(Y.config.modules, { 'myapp.module-a': { fullpath: ... }, 'myapp.module-b':...
... To wrap up, this is accurate. If you want your instanceof check to work correctly across sandboxes, you'll need to make sure the classes used to create the...
... That was the idea :). ... I think a plugin is the right place to start - something which can be added to an instance of any widget, if it's content...
You should create modules for your custom Widgets rather than create them inline in a use() callback. YUI3's module structure is best used by isolating...