I just implemented your suggestion on returning jQuery().attr("src",
"newimg");

I like it better, since you don't see the stars flash (from removing and
inserting new dom)

However, I can see there still being a use for wanting to rebind the
elements? (not having to write more javascript?)

-Thadeus




On Mon, Sep 21, 2009 at 12:05 AM, Thadeus Burgess <[email protected]
> wrote:

> Yes I realized the problem was jQuery was not rebinding to the elements.
>
> So I just finished writing some code that will allow you to specifiy
> rebind=True, and if so, it will call page_onready again after the elements
> have been replaced..
>
> Works perfectly for my stars example. live example:
> http://surrenderthebooty.thadeusb.com/init/default/teststars
>
> I need to add some more options to rebind, so that you can put events into
> categories, and if rebind is specified, it will only rebind those events in
> that category, instead of every event in page_onready() on your page!
>
> -Thadeus
>
>
>
>
>
> On Sun, Sep 20, 2009 at 11:08 PM, mr.freeze <[email protected]> wrote:
>
>> s but to return a script that alters the src attributes of
>> the existing images to reflect the choice
>>
>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to