[jQuery] load event on opened window

2008-07-08 Thread Luc Heinrich


Hi,

I have a vague intuition of why this wouldn't work...

var win = window.open();
$(win).bind('load', function() { alert("LOADED"); });
win.location = someURL;

...except that it does work, but only in Firefox (only tested with  
FF3). Safari and IE7 never show the alert.


So who's right ?

--
Luc Heinrich - [EMAIL PROTECTED]



[jQuery] Re: Dimensions plugin, offset is offset

2007-08-10 Thread Luc Heinrich


On 10 août 07, at 15:49, Brandon Aaron wrote:

The values reported are the correct values for that particular  
browser.


I personnally have some major issues with offset and Safari 3, issues  
which at least seems to be known according to <http://jquery.com/ 
plugins/node/253>.


Any words on when this could be sorted out ? O:)

--
Luc Heinrich




[jQuery] Re: jquery.treeview in Safari

2007-04-02 Thread Luc Heinrich


On 2 avr. 07, at 11:45, Luc Heinrich wrote:

For example, when using the test page from the latest svn: in the  
'Sample 1 - default' tree, collapse 'Folder 2' then expand it  
again: boom, the 'Subfolder 2.1' node is not collapsible anymore.  
This apparently happens only if 'Subfolder 2.1' is expanded when  
you collapse 'Folder 2', if it's collapsed then it can be expanded  
but then it won't be collapsible anymore.


Replying to myself, sorry...

The problem seems to happen because hitareas of subnodes of collapsed  
items "lose" their float attribute (or it gets screwed, or whatever)  
so the hitarea basically vanishes. Forcing absolute positioning on  
hitareas fixes the problem:


Index: jquery.treeview.js
===
--- jquery.treeview.js  (revision 1613)
+++ jquery.treeview.js  (working copy)
@@ -128,6 +128,7 @@
width: 15,
marginLeft: "-15px",
"float": "left",
+   position: "absolute",
cursor: "pointer"
    };

This change doesn't seem to cause any regression in Firefox. I  
haven't tested it in IE though.


--
Luc Heinrich




[jQuery] jquery.treeview in Safari

2007-04-02 Thread Luc Heinrich


Greetings,

Anybody else having problems with the jquery.treeview plugin in Safari ?

For example, when using the test page from the latest svn: in the  
'Sample 1 - default' tree, collapse 'Folder 2' then expand it again:  
boom, the 'Subfolder 2.1' node is not collapsible anymore. This  
apparently happens only if 'Subfolder 2.1' is expanded when you  
collapse 'Folder 2', if it's collapsed then it can be expanded but  
then it won't be collapsible anymore.


Thanks for any help.

--
Luc Heinrich