开发者

Is there a YUI3 plugin similar to RoutesJS to accept user input from in the URL that could trigger some events in JS?

Looked around but I think I may have missed it as I'm not a veteran YUI library user.

This is what I'm looking for or something similar o开发者_如何学Cn YUI's side, preferably in YUI3: http://routesjs.com


Right now there isn't anything in YUI 3 that's exactly the same as jQuery Routes, but the YUI 3 History module can be used to achieve similar behavior (just not via a route-based API): http://developer.yahoo.com/yui/3/history/

I plan to implement a route-based API on top of History in a future version of YUI (probably 3.4.0).


YUI 3.4 PR2 has an 'app' module that offers similar functionality. There aren't any browseable API docs for it yet, since 3.4 isn't formally release, but you can peruse the inline documentation in the source here. 3.4 should be cooked by the end of the summer, and the 'app' module is considered feature-complete at this point.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜