Hey Karantir,
There are a few problems with your code:
- When you do this._trigger('loaded'), the event name will be
"orbloaded", so your bind call needs to be .bind("orbloaded", ...)
- The bound event handler will run in the context of a DOM element,
not your plugin
- Your plugin shouldn't bind to its own events.
Hard to tell you what direction to go in at this point since there's
no functionality in your widget yet.
On Aug 28, 7:49 am, Karantir <[email protected]> wrote:
> Hi, all.
>
> I'm trying to figure out how to develop UI widgets. Here is an example
> of what i want to implementhttp://paste.pocoo.org/show/136745/
>
> In two words. I want to run '_render' method after the 'loaded' event
> has been fired (data loading is an asynchronous action in my case).
> But my solution doesn't works. Could you help me, please?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---