YUI Dialog Buttons Scope

Ajax, YUI

When calling a function to handle the click event for the YUI Dialog buttons, the scope of the function is always the dialog instance itself. This is not a problem in most situations, but when creating a custom YUI widgets, use the object literal option to handle the event rather than just calling a function. Otherwise, you will run into scope issues.

Continue reading

Checkout My New Site - T-shirts For Geeks