As no one seems to understand what''s my issue I''ll try to make
it
clearer :
My issue involve IE6 browsing.
the code is (I had changed ids and removed some treatment in order to
simplify the code, note that the bug persist after the
simplification) :
Event.observe(window, ''load'', function() {
var testDrag = new Draggable(''box1'', { handle:
''box1_handle'' } );
Event.observe(''auth_button'', ''click'',
function () {
new Ajax.Request(''script.php'', {
method:''post'',
onSuccess: function(transport){
var response = transport.responseText;
// the response text look like <div
id="box2">....</div>
$(''main_frame'').insert({bottom:
response});
var drag2 = new Draggable(''box2'', {
handle:
''box2_handle'' } );
},
onFailure: function(){ alert(''Oops...'') }
});
} );
} );
the typical order of event is :
- Your browser loads the page
- An element (<div id="box1">...</div>) appear
(Effect.appear()) on
the screen and display various information and a button. This element
is draggable by clicking a little "click here to move" arrea
( (testDrag in my previous message).
- You click the button, the "box1" element is moved, and a new element
pop (<div id="box2">...</div>) by loading it from a php
script through
Ajax. Immediatly after I make it draggable too (drag2 in my previous
message).
- When now you try to drag box1 you can, as many times you want.
- If you try to drag box2 for the first time, you can, if it''s the
second, the third and so on time you can''t.
Now IF I remove the handle for dragging box2
=> var drag2 = new Draggable(''box2'', {} );
I can drag box2 by click the whole div as may time I want.
I check the code with removing options, for both draggable, but the
only thing that change the behaviour is to remove the handle
parameter.
I hope it''s understendable now, and that someone has an idea, because
I''m quite lost currently...
Thank you for reading, Xhey
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---