[Proto-Scripty] Re: Action on innerHTML and bindAsEventListener doesn't work anymore

2008-11-07 Thread T.J. Crowder
Hi Rob, I don't think there's any need to remove then insert, you can just insert the node in the new location. Thanks! You're right (of course!), it's right there in the spec from day 1: http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#method-insertBefore and the function becomes:

[Proto-Scripty] Re: Action on innerHTML and bindAsEventListener doesn't work anymore

2008-11-06 Thread jak0lantash
Hi, Thank you for your respons. Yes I know this possibility. I though about it, but I can not use it... and I don't think the bind problem will be fix in that way ;) Because, if in your example, if I take the module-0 code and put it down between the 1 and 2. The binds will be broken too, aren't

[Proto-Scripty] Re: Action on innerHTML and bindAsEventListener doesn't work anymore

2008-11-06 Thread T.J. Crowder
Hi, Yes I know this possibility. I though about it, but I can not use it... and I don't think the bind problem will be fix in that way ;) I'm pretty sure it will. Did you try it? I did a trivial test, and it worked fine. Here's my version of moveDown, which differs slightly from Rob's as

[Proto-Scripty] Re: Action on innerHTML and bindAsEventListener doesn't work anymore

2008-11-06 Thread jak0lantash
Hi, You're right !!! It works fine... Perfect, thank you so much. I though the fault was comming from the innerHTML way, but I hasn't known about this next/ insert thing. I think I'm not so good in JavaScript ;) Just a test file : http://www.letroquet.eu/tests/module_inverse.html Now, I have to

[Proto-Scripty] Re: Action on innerHTML and bindAsEventListener doesn't work anymore

2008-11-06 Thread jak0lantash
Anyway, do you have a solution do that please ?? div id='one'One/div div id='two'Two/div Then div id='one'Two/div div id='two'One/div ??? Or maybe div id='position_one'div ='module_one'One/div/div div id='position_two'div ='module_two'Two/div/div Then div id='position_one'div

[Proto-Scripty] Re: Action on innerHTML and bindAsEventListener doesn't work anymore

2008-11-06 Thread RobG
On Nov 7, 12:24 am, T.J. Crowder [EMAIL PROTECTED] wrote: Hi, Yes I know this possibility. I though about it, but I can not use it... and I don't think the bind problem will be fix in that way ;) I'm pretty sure it will.  Did you try it?  I did a trivial test, and it worked fine.  

[Proto-Scripty] Re: Action on innerHTML and bindAsEventListener doesn't work anymore

2008-11-05 Thread RobG
On Nov 5, 2:58 am, jak0lantash [EMAIL PROTECTED] wrote: Hi everybody. I have some difficulties with bindAsEventListener. I'm working on a little module system (like in netvibes, but simpler). In the page, there are two div, kind of module, one on top, one on bottom. With a button, I