Re: Request: tutorial for ToscaWidgets :)

2007-02-07 Thread Damjan

  It would be nice if those parameters could be passed to a constructor
  in a single js call, that would make wraping it in a TW quite easy
  and it would allow having multiple taggers in the same page.

 So you mean like more object oriented javascript?...

 I've never done that, but I can try.

Done! :)
I've replaced the file on 
http://groups.google.com/group/pylons-discuss/web/edit.html
with the new version. I've tested with two DIV's and it works just
fine.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: Request: tutorial for ToscaWidgets :)

2007-02-06 Thread Alberto Valverde


On Feb 5, 2007, at 6:32 PM, Damjan wrote:


 I've created this Genshi markup for a project of mine
 http://groups.google.com/group/pylons-discuss/web/edit.html ... now I
 have this tagging widget there that works with Mochikit. It shows the
 tags associated with a page, and allows for AJAX adding and removing
 of the tags (with all the bells and whistles).

 So the input to the widget is, the initial taglist, addtag and
 removetag URL's and a url for the activity indicator.

It would be nice if those parameters could be passed to a constructor  
in a single js call, that would make wraping it in a TW quite easy  
and it would allow having multiple taggers in the same page.


 Now I thinks it would be great if this was a ToscaWidget, that I could
 reuse in other pages.. but I don't know anything about ToscaWidgets
 (yet) ... so maybe if someone can create a ToscaWidget of this example
 it would be an interesting and helpfull tutorial?

Indeed :) I'm having the same problem as David mentioned, quite a few  
widgets made for projects but none simple, yet interesting enough  
ones to use as examples (well, apart from all the crappy late-hour  
rushes which I'm too embarrased to share ;). I'm pretty short of time  
lately but if you could rearrange the js to be initialized with a  
single call I'll try to provide a widget with commented code soon.

Thanks,
Alberto



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Request: tutorial for ToscaWidgets :)

2007-02-05 Thread Damjan

I've created this Genshi markup for a project of mine
http://groups.google.com/group/pylons-discuss/web/edit.html ... now I
have this tagging widget there that works with Mochikit. It shows the
tags associated with a page, and allows for AJAX adding and removing
of the tags (with all the bells and whistles).

So the input to the widget is, the initial taglist, addtag and
removetag URL's and a url for the activity indicator.

Now I thinks it would be great if this was a ToscaWidget, that I could
reuse in other pages.. but I don't know anything about ToscaWidgets
(yet) ... so maybe if someone can create a ToscaWidget of this example
it would be an interesting and helpfull tutorial?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: Request: tutorial for ToscaWidgets :)

2007-02-05 Thread David Smith
Hi Damjan

I've been playing a lot with toscawidgets for the past few
months and I have the opposite problem; good understanding of
the system but lack of a good example to show it off!

I'll get started tonight on coding this up as a toscawidget
project. 

Damjan [EMAIL PROTECTED] writes:

 I've created this Genshi markup for a project of mine
 http://groups.google.com/group/pylons-discuss/web/edit.html ... now I
 have this tagging widget there that works with Mochikit. It shows the
 tags associated with a page, and allows for AJAX adding and removing
 of the tags (with all the bells and whistles).

 So the input to the widget is, the initial taglist, addtag and
 removetag URL's and a url for the activity indicator.

 Now I thinks it would be great if this was a ToscaWidget, that I could
 reuse in other pages.. but I don't know anything about ToscaWidgets
 (yet) ... so maybe if someone can create a ToscaWidget of this example
 it would be an interesting and helpfull tutorial?



-- 
==
  David D. Smith davidsmith at acm.org
Jabber/GoogleTalk: dds at jabber.org ; GPG: 0xE6511C7E
IRC: dds on irc.freenode.net ; MSN: dds4418 at hotmail.com
==



pgpHVkO0OSXa6.pgp
Description: PGP signature