[jquery-dev] Re: $.ajax BUG creating an JQuery object from the response HTML

2009-11-17 Thread jurtrx
Ok, I've put together a few test cases: First of all those few lines of code I'm using: this.internalTest = function(){ $j.ajax({ url: 'http://www.juergentreml.de/jquerytest/ test_staged_short_inner_body.htm', type: GET, dataType: html,

[jquery-dev] typo in ready event since null !== undefined

2009-11-17 Thread Andrea Giammarchi
AFAIK top window frameElement returns null and not undefined, as is for document.body when not present yet. Moreover we can use the JavaScript weird case where null == undefined but while null is static, undefined can be redefined or in any case it needs to be discovered in the scope chain. On

Re: [jquery-dev] Expected behavior of $(document.createTextNode(test)).text()

2009-11-17 Thread Andrea Giammarchi
I miss the feature here. You create a textNode and you know what is its content since you are creating it. Even if it was to chain the text assignment looks more like extreme laziness ... am I am missing something about this request? On Mon, Nov 16, 2009 at 9:18 PM, Xavi xavi@gmail.com wrote:

Re: [jquery-dev] Expected behavior of $(document.createTextNode(test)).text()

2009-11-17 Thread Xavi Ramirez
What I presented was a simplified example to better illustrate my question. Here's a more realistic example: function doTextManipulation(elem) { var text = $(elem).text(); return /* my text manipulation algorithm */ } The function above fails when a text node is passed in due to the fact

Re: [jquery-dev] typo in ready event since null !== undefined

2009-11-17 Thread John Resig
Good suggestion, just landed it: http://github.com/jquery/jquery/commit/3a23a5c17dd0522da06db8f36890f134f9004de6 You should mention stuff like this as comments on the commits - and file follow-up patches through Github. It makes it super-easy to manage (on my end, at least). --John On Tue, Nov

Re: [jquery-dev] typo in ready event since null !== undefined

2009-11-17 Thread Andrea Giammarchi
John I am not that familiar with github yet, I did a mess wven with last PureDom for taskspeed so please forgive me ... but there is another problem there, if I am not wrong. Line 826 of the same file: // Catch cases where $(document).ready() is called after the // browser event

Re: [jquery-dev] Expected behavior of $(document.createTextNode(test)).text()

2009-11-17 Thread Andrea Giammarchi
... uhm ... another if in the main function and for a weird case ... I am not sure it is worth it ... text nodes cannot handle most of the jQuery stuff so maybe it makes sense to apply your suggestion: function doTextManipulation(elem) { var text = elem elem.nodeType === 3 ? elem.nodeValue :

[jquery-dev] Where is the latest cord of v1.4?

2009-11-17 Thread tato
Hi, I began a test of v1.4 for my plugin jQchart and csv2table now. I tested it in v1.4pre, but did not understand where there was the latest edition now. Where is the latest cord of v1.4? And I'm making a cord comparison table, As assistance to test jQuery v1.4pre, between the jQuery versions.

[jquery-dev] Re: Where is the latest cord of v1.4?

2009-11-17 Thread tato
I'm sorry. It was code not cord :p -- You received this message because you are subscribed to the Google Groups jQuery Development group. To post to this group, send email to jquery-...@googlegroups.com. To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com. For

Re: [jquery-dev] Re: Where is the latest cord of v1.4?

2009-11-17 Thread Xavi Ramirez
I believe the latest code is on git hub: http://github.com/jquery/jquery -Xavi On Tue, Nov 17, 2009 at 12:24 PM, tato t...@game.gr.jp wrote: I'm sorry. It was code not cord :p -- You received this message because you are subscribed to the Google Groups jQuery Development group. To post

Re: [jquery-dev] typo in ready event since null !== undefined

2009-11-17 Thread John Resig
That line is intentional. It's for cases where jQuery is being dynamically loaded and you wish to execute the ready event immediately. **We make no guarantees about this happening in all the browsers that we support.** (Namely this is because of the problem that you mentioned in Firefox 3.6.) As

Re: [jquery-dev] Expected behavior of $(document.createTextNode(test)).text()

2009-11-17 Thread John Resig
This seems like a reasonable request. I filed a ticket and fixed it: http://dev.jquery.com/ticket/5525 --John On Mon, Nov 16, 2009 at 4:18 PM, Xavi xavi@gmail.com wrote: Hello, Currently $(document.createTextNode(test)).text() returns empty string. Is this expected? Thanks, Xavi

Re: [jquery-dev] typo in ready event since null !== undefined

2009-11-17 Thread John Resig
Oh, just to mention, regarding your solution snippet - it doesn't really solve anything (especially not for us). The case that we're looking to handle with the readyState code was when jQuery is loaded after the document ready event has already occurred. Your snippet will be stuck in a permanent

Re: [jquery-dev] Expected behavior of $(document.createTextNode(test)).text()

2009-11-17 Thread Xavi Ramirez
Thanks, I appreciate it. -Xavi On Tue, Nov 17, 2009 at 2:53 PM, John Resig jere...@gmail.com wrote: This seems like a reasonable request. I filed a ticket and fixed it: http://dev.jquery.com/ticket/5525 --John On Mon, Nov 16, 2009 at 4:18 PM, Xavi xavi@gmail.com wrote: Hello,

[jquery-dev] Re: $.ajax BUG creating an JQuery object from the response HTML

2009-11-17 Thread Már Örlygsson
$(htmlstring) converts the HTML to DOM elements using the innerHTML property of a div element. That won't work if the string is an entire document, since an html element can't be a child of a div element. True, that you won't get a full HTML document out, but with a little pre-parsing you can

[jquery-dev] Event Delegation Plugin -- Needs feedback

2009-11-17 Thread xwisdom
Hello, I've put together a little plugin that's based on Zach's $.live(). Usage: $(context).delegate('click',callback) // same as live() $(context).delegate('li:even, li:odd :click',callback) // supports multiple selectors $(context).delegate('li :click.namespace',callback) //

Re[2]: [jquery-dev] Re: Where is the latest cord of v1.4?

2009-11-17 Thread Toshiro Takahashi
Thanx Xavi, I try it(^^)/ On Tue, 17 Nov 2009 12:53:21 -0500 Xavi Ramirez xavi@gmail.comさん wrote: I believe the latest code is on git hub: http://github.com/jquery/jquery -Xavi On Tue, Nov 17, 2009 at 12:24 PM, tato t...@game.gr.jp wrote: I'm sorry. It was code not cord :p --

[jquery-dev] IE8 Safari Bug (both PC iMac) FF 3.5.5 A.O.K. with jquery based resize/crop code

2009-11-17 Thread studiowerks
I'm working with a bit of Google code - http://code.google.com/p/isphotomanager/ - a nifty image scaling and cropping tool. Unfortunately, it doesn't behave well on the PC in IE8 or Safari 4, but it works fine Firefox 3.5.x on the PC. It also works fine Firefox 3.5.5 on my iMac, but again not in

[jquery-dev] Re: IE8 Safari Bug (both PC iMac) FF 3.5.5 A.O.K. with jquery based resize/crop code

2009-11-17 Thread Dave Methvin
In IE 8 on the PC I get an Unexpected call to method or property access. Line: 733 Char: 9 -- this.appendChild(i); is the offending call; i is an image object created as part of the pre-loader where this is found. When I use the built-in IE8 debugger it says that the this object in that line