Mix and match

My JavaScript coding skills are not longer that crisp, so I decided to develop a widget using a truly participatory environment such as the one provided at zembly.com. By doing so I put myself in the position to ask for the help of other zembly users. I can grant certain folks the privileges to modify and re-publish versions of my widget experiment. In the end, I'd like to be able to embed my widget in a more sophisticated application that I'll be developing using NetBeans.

Building a widget in zembly is quite simple. Just use the "Create something!" top level menu and select "Widget". You will get a view with three editors: HTML, CSS, JavaScript. In the example below, you can see that I've "imported" a library (code that I've picked up browsing the web). It was not as straight forward as I would have liked, however I was able to use "Resources" pane to the right of the editors.

With Jirka's help, I also added the business logic of building a tree widget. I made all kind of mistakes in my JavaScript code, however by building the widget in zembly I could enlist the help of the experts - just invite them (scroll down in your working view).

At any time you can always preview your work, without even publishing the artifact. Just look for the "Preview" button.

The next step is learning how to export or make the widget available to other applications. Just scrolling into the view where you build the widget, gives you the relevant information. Just copy the URL to the clipboard and you are ready to embed the widget in another application.

Onto the NetBeans part. I created a simple web application called Mix and Match - a JSP application.

Once I pasted the widget URL into the JSP editor, I deploy the application and voila. The widget shows up in the page.

Comments:

Cool stuff octavian! The YUI is pretty cool too. I used some of it in http://www.voteforstyle.com.

Do you remember me???
http://farm4.static.flickr.com/3146/2513327308_60df99046c.jpg?v=0

Our company:
http://www.yuku.com

Posted by ransom on July 14, 2008 at 10:42 AM PDT #

Hi James, of course I remember you. Cool new gig.

Posted by octavian on July 19, 2008 at 04:46 AM PDT #

Post a Comment:
Comments are closed for this entry.
About

octav

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today