最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

ajax - How to create a small widget with JavaScript - Stack Overflow

programmeradmin2浏览0评论

I really don't know how to describe it, but if you understood it and had experience on that field, may be you can help me with something 'Open Source' and 'Ready-made'.

I want to create something like a box 'or widget', where you can change its content by hitting some buttons on the top of the box. (Hey the box is on a web page and this should use Ajax and Javascript).

I have tried some ready scritps, but I found them limited and they drive me crazy, JS frameworks also don't seems to offer such solution. Any body have any idea on that field?

I really don't know how to describe it, but if you understood it and had experience on that field, may be you can help me with something 'Open Source' and 'Ready-made'.

I want to create something like a box 'or widget', where you can change its content by hitting some buttons on the top of the box. (Hey the box is on a web page and this should use Ajax and Javascript).

I have tried some ready scritps, but I found them limited and they drive me crazy, JS frameworks also don't seems to offer such solution. Any body have any idea on that field?

Share Improve this question edited Aug 2, 2012 at 13:09 danielrvt 11k21 gold badges85 silver badges129 bronze badges asked Nov 28, 2008 at 15:40 Omar AbidOmar Abid 16k28 gold badges79 silver badges111 bronze badges 2
  • Expand your requirements a bit more. Is this Box and buttons to be generated dynamically? What should happen when a button is pressed what is the box updated with? – James Hughes Commented Nov 28, 2008 at 15:58
  • Are you looking for a dialog box type of thing? – strager Commented Nov 28, 2008 at 17:52
Add a ment  | 

2 Answers 2

Reset to default 3

Just because the box is on a Web page doesn't mean it should use AJAX, Omar. Have you thought about using a third-party solution like ClearSpring or WidgetBox? If you need to put your widget onto Myspace, you'll want one of these.

That said, I've taken a couple of JavaScript-only runs at this problem; see Twitterati and Put Your Digg In A Box for examples, and my Global Widget Summit presentation for explanations.

Have you tried Jquery?

Visit www.jquery.

Some example can be found at http://www.openjs./scripts/events/keyboard_shortcuts/

Also please check the In-place editing example at http://www.appelsiini/projects/jeditable http://docs.jquery./Tutorials:Edit_in_Place_with_Ajax

发布评论

评论列表(0)

  1. 暂无评论