Advice on managing html IDs

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Advice on managing html IDs

Sophie424
I have two SU components on the same page, and want drag/drop/sortable
behavior between them. I believe this requires the sortable in one component
to be parameterized (via #containment: ...) by the ID of the sortable in the
other component.

I am currently generating this id using "html nextId".

How should I manage the ID? How / when to pass it around to the sibling
component? Is there a better way?

Thanks!

Sophie



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Advice on managing html IDs

Sophie424
"itsme213" <[hidden email]> wrote
> I am currently generating this id using "html nextId".
>
> How should I manage the ID? How / when to pass it around to the sibling
> component? Is there a better way?

I changed to manual names for IDs, and after some strange behavior (Firefox
really does not like "toolbar" as an html element ID) it is working now.
Probably better with my own static names for such a usage anyway.

Thanks.



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside