[jquery-dev] Re: There must be a better way !

2009-02-12 Thread Klaus Hartl
On 13 Feb., 01:03, weepy wrote: > I would still expect that the string you get back from the dom would > be valid html. Where is that invalid HTML? --Klaus --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "jQuery

[jquery-dev] Re: Namespace failure

2009-02-12 Thread David Pollak
I set a breakpoint at line 899 and inspected the div variable. It seems to be bound a phantom document that does not have any attributes (e.g., the xmlns:lift="..." attribute). This div is created in line 850 (div = context.createElement("div");) Hope this helps. On Feb 12, 9:24 pm, David Poll

[jquery-dev] Bug in css.outerHeight in firefox?

2009-02-12 Thread ebetancourt
Hi, I was working with Kelvin Luck's great jScrollPane library, and found that it would stop rendering the scrollbars if I set a max- height property in the css. I found this conditional statement (things were cropped and pasted to just give the gist of the problem): $this = $(this); va

[jquery-dev] Re: Namespace failure

2009-02-12 Thread David Pollak
On Feb 12, 7:37 pm, John Resig wrote: > I'm trying to figure out if this is something that's blockUI-specific. > What happens if you do: > $("#hi").html('Hi'); That fails in the same way on line 899 of jQuery 1.3.1. > > Inside your try/catch. > > --John > > On Thu, Feb 12, 2009 at 10:08 PM, D

[jquery-dev] Re: Namespace failure

2009-02-12 Thread John Resig
I'm trying to figure out if this is something that's blockUI-specific. What happens if you do: $("#hi").html('Hi'); Inside your try/catch. --John On Thu, Feb 12, 2009 at 10:08 PM, David Pollak wrote: > > > > On Feb 12, 6:09 pm, John Resig wrote: >> > "application/xhtml+xml" >> >> What do yo

[jquery-dev] Re: Namespace failure

2009-02-12 Thread David Pollak
On Feb 12, 6:09 pm, John Resig wrote: > > "application/xhtml+xml" > > What do you do for the other browsers? (IE) The XHTML is sent through a quirks mode rewriter for IE and served as text/html > > >> 2) Self-closing script tags are invalid (may want to fix those first). > > > Why are they in

[jquery-dev] Re: Namespace failure

2009-02-12 Thread John Resig
> "application/xhtml+xml" What do you do for the other browsers? (IE) >> 2) Self-closing script tags are invalid (may want to fix those first). > > Why are they invalid for xhtml? Dunno, but they are: http://www.w3.org/TR/xhtml1/#C_3 --John --~--~-~--~~~---~--~

[jquery-dev] Re: There must be a better way !

2009-02-12 Thread weepy
I would still expect that the string you get back from the dom would be valid html. On 12 Feb, 22:29, Klaus Hartl wrote: > On 12 Feb., 10:42, weepy wrote: > > > Thanks Klaus I suspected as much. > > > It is quite odd that you can pull some html out, push the same back in > > and it isn't the

[jquery-dev] Re: Namespace failure

2009-02-12 Thread David Pollak
On Feb 12, 1:49 pm, John Resig wrote: > 1) What mimetype are you serving this with? "application/xhtml+xml" > 2) Self-closing script tags are invalid (may want to fix those first). Why are they invalid for xhtml? > > --John > > On Thu, Feb 12, 2009 at 1:43 PM, David Pollak > > wrote: > > >

[jquery-dev] Re: There must be a better way !

2009-02-12 Thread Klaus Hartl
On 12 Feb., 10:42, weepy wrote: > Thanks Klaus I suspected as much. > > It is quite odd that you can pull some html out, push the same back in > and it isn't the same! I guess this is a bug in Firefox ? It's not that odd at all. As soon as you understand that a browser will not just copy some te

[jquery-dev] Re: Namespace failure

2009-02-12 Thread John Resig
1) What mimetype are you serving this with? 2) Self-closing script tags are invalid (may want to fix those first). --John On Thu, Feb 12, 2009 at 1:43 PM, David Pollak wrote: > > Folks, > > I use and *love* jQuery. I also run the Lift web framework project. > In Lift, we use jQuery and we us

[jquery-dev] Re: Namespace failure

2009-02-12 Thread David Pollak
On Feb 12, 10:49 am, Leonardo Rossetti wrote: > what is the purpose of this try-catch block? To catch and display the exception. If the try/catch block is omitted, the problem still ocurs, but is silently discarded (unless you've got Firebug running.) > > 2009/2/12 David Pollak > > > > > >

[jquery-dev] Re: selector fails without notice in 1.3.1

2009-02-12 Thread Karl Swedberg
On Feb 12, 2009, at 1:28 PM, ajpiano wrote: > > I don't know how much harder the point that @ is gone can be driven > home. It was deprecated in 1.2.6. A major problem is bad/outdated > tutorials that are still telling people the wrong way. Actually, it was deprecated in 1.1.4, but your point

[jquery-dev] Re: Namespace failure

2009-02-12 Thread Leonardo Rossetti
what is the purpose of this try-catch block? 2009/2/12 David Pollak > > Folks, > > I use and *love* jQuery. I also run the Lift web framework project. > In Lift, we use jQuery and we use XHTML namespaces (we need to > decorate certain XHTML elements with lift:gc attributes.) > > We've run into

[jquery-dev] Re: selector fails without notice in 1.3.1

2009-02-12 Thread John Resig
> I don't know how much harder the point that @ is gone can be driven > home. It was deprecated in 1.2.6. A major problem is bad/outdated > tutorials that are still telling people the wrong way. Actually, it was deprecated in jQuery 1.2.0 - back in 2007. --John --~--~-~--~~---

[jquery-dev] Namespace failure

2009-02-12 Thread David Pollak
Folks, I use and *love* jQuery. I also run the Lift web framework project. In Lift, we use jQuery and we use XHTML namespaces (we need to decorate certain XHTML elements with lift:gc attributes.) We've run into a very weird interaction between jQuery BlockUI and Firefox and XHTML namespaces. B

[jquery-dev] Re: selector fails without notice in 1.3.1

2009-02-12 Thread ajpiano
I don't know how much harder the point that @ is gone can be driven home. It was deprecated in 1.2.6. A major problem is bad/outdated tutorials that are still telling people the wrong way. On Feb 12, 10:35 am, David Zhou wrote: > Actually, nevermind.  I forgot there was a changes section: > >

[jquery-dev] Re: Offset Bug in 1.3.1

2009-02-12 Thread John Resig
Yeah, that looks like an easy fix - thanks! --John On Thu, Feb 12, 2009 at 11:11 AM, mike.helgeson wrote: > > Not sure if this is considered a bug, but it breaks some of my code... > Passing any non-element into the offset method throws an error... I > think it should instead return zero valu

[jquery-dev] Offset Bug in 1.3.1

2009-02-12 Thread mike.helgeson
Not sure if this is considered a bug, but it breaks some of my code... Passing any non-element into the offset method throws an error... I think it should instead return zero values... $( document ).offset(); // ERROR $( window ).offset(); // ERROR Here is a very simple proposed patch... http:/

[jquery-dev] Re: $.ajax

2009-02-12 Thread Andrea Giammarchi
I feel an idiot now, thanks. Patch uploaded :D On Thu, Feb 12, 2009 at 4:02 PM, John Resig wrote: > > Actually, in order to generate a patch you would generally need to > diff two files (the old file and the one you've made changes to). > > If you have svn you can do "svn diff" and that'll spit

[jquery-dev] Re: $.ajax

2009-02-12 Thread John Resig
Actually, in order to generate a patch you would generally need to diff two files (the old file and the one you've made changes to). If you have svn you can do "svn diff" and that'll spit out the differences in a format that will be easy to consume. --John On Thu, Feb 12, 2009 at 10:42 AM, An

[jquery-dev] Re: $.ajax

2009-02-12 Thread Andrea Giammarchi
Done, 3 files fixed with RegExp test, if you want I can use indexOf where possible (case sensitive, no different chars) but for me it is already better than before. http://dev.jquery.com/ticket/4113 Best Regards On Thu, Feb 12, 2009 at 3:31 PM, John Resig wrote: > > Correct. Feel free to uploa

[jquery-dev] Re: selector fails without notice in 1.3.1

2009-02-12 Thread David Zhou
Actually, nevermind. I forgot there was a changes section: http://docs.jquery.com/Release:jQuery_1.3#Upgrading Maybe change the "Changes" name to something more explicit like Backwards Incompatible Changes? Right now, a person scanning the release note headers could easily misconstrue that as

[jquery-dev] Re: weird issue with id string I ran into

2009-02-12 Thread atula
I wasn't able to duplicate the issue either--if I run into this same problem again, I will file a ticket. If not, I will assume that there was something else in my codes that were throwing this error. Again, time will tell :P --Vuong On Feb 7, 11:15 am, John Resig wrote: > I tried to duplicate

[jquery-dev] Re: $.ajax

2009-02-12 Thread John Resig
Correct. Feel free to upload any patches to the bug, though! --John On Thu, Feb 12, 2009 at 10:21 AM, Andrea Giammarchi wrote: > Actually I was replacing from nightly ... but I guess I cannot commit stuff, > right? > > On Thu, Feb 12, 2009 at 2:11 PM, John Resig wrote: >> >> You should add t

[jquery-dev] Re: selector fails without notice in 1.3.1

2009-02-12 Thread David Zhou
I wonder if it would be helpful to have a backwards incompatible changes section for every jQuery release, and a master page somewhere collating all those changes. The changes are usually highlighted in the release notes, but it'd be more clear if there was a section specifically calling out the

[jquery-dev] Re: $.ajax

2009-02-12 Thread Andrea Giammarchi
Actually I was replacing from nightly ... but I guess I cannot commit stuff, right? On Thu, Feb 12, 2009 at 2:11 PM, John Resig wrote: > > You should add that to this tracking bug: > http://dev.jquery.com/ticket/4113 > > --John > > > > On Thu, Feb 12, 2009 at 8:50 AM, Andrea Giammarchi > wrote:

[jquery-dev] Re: Custom expression fails in 1.3.1

2009-02-12 Thread John Resig
I just added this point to the release notes - thanks for bringing it up. Have you run across any other problems that we haven't mentioned? We definitely want to make sure that we cover them all. Oh, and no problem - glad you're enjoying jQuery :) --John On Thu, Feb 12, 2009 at 9:53 AM, THD

[jquery-dev] Re: Custom expression fails in 1.3.1

2009-02-12 Thread THD
OK, thanks. I already suspected this was deprecated, it was no elegant solution by any means. At least there is a simple fix for old code. I noticed there are a lot of different little problems when upgrading 1.2.6 to 1.3.1. It might be worth it to add a readme to the release version of jQuery 1.

[jquery-dev] Re: Safari issues

2009-02-12 Thread John Resig
I don't see anything that is particularly troubling about your code - do you have a demo online? --John On Wed, Feb 11, 2009 at 2:20 PM, Yusuf wrote: > > Hi, > > I'm new to jQuery. I started using it and wrote some fairly straight > forward code. Here is the what I got > > - Downloaded the la

[jquery-dev] Re: Custom expression fails in 1.3.1

2009-02-12 Thread John Resig
This was intentionally removed. Including extra code for doing code evaluation was seriously affecting other environments like Adobe AIR and Caja. (Not to mention the fact that having those code strings was probably just a bad idea to begin with.) We deprecated that behavior a while back, actuall

[jquery-dev] Re: $.ajax

2009-02-12 Thread John Resig
You should add that to this tracking bug: http://dev.jquery.com/ticket/4113 --John On Thu, Feb 12, 2009 at 8:50 AM, Andrea Giammarchi wrote: > Guys, I spot a match in the core of the 1.3.1 > > line 3294 > s.url += (s.url.match(/\?/) ? "&" : "?") + (s.jsonp || "callback") + "=?"; > > in my opi

[jquery-dev] Re: selector fails without notice in 1.3.1

2009-02-12 Thread John Resig
This sounds more like a problem of circumstances. IE was being unhelpful and not providing the nice error message that we specified - and the error was only happening in IE (since the fix was browser specific). All of it was very unfortunate - but I'm not sure if there's a lot that we can do on ou

[jquery-dev] Re: $.ajax

2009-02-12 Thread Andrea Giammarchi
Guys, I spot a match in the core of the 1.3.1 line 3294 s.url += (s.url.match(/\?/) ? "&" : "?") + (s.jsonp || "callback") + "=?"; in my opinion String.match used as true/false result is useless, slow, and memory greedy /\?/.test(s) is about 2X faster ~s.indexOf("?") about 4 times faster Is an

[jquery-dev] Custom expression fails in 1.3.1

2009-02-12 Thread THD
Custom expressions like the ones in jQMinMax fail with an error when used in the selector. (jQMinMax is found here: http://davecardwell.co.uk/javascript/jquery/plugins/jquery-minmax/) All browsers fail with an error that 'filter is not a function' in the line: return filter( elem, i, match, arr

[jquery-dev] Re: $.ajax

2009-02-12 Thread Andrea Giammarchi
$.ajax({ *cache:false*, ... }); On Thu, Feb 12, 2009 at 9:43 AM, squiddy wrote: > > Hello, > > as far as I know, GET requests are far more often cached by the > browser than POST requests. So maybe this could be a problem here? You > could try to use POST instead, or add a random value a

[jquery-dev] Re: $.ajax

2009-02-12 Thread squiddy
Hello, as far as I know, GET requests are far more often cached by the browser than POST requests. So maybe this could be a problem here? You could try to use POST instead, or add a random value as parameter to the request, a timestamp for example. Otherwise, can you try to be more specific abou

[jquery-dev] selector fails without notice in 1.3.1

2009-02-12 Thread THD
The selector 'i...@src$=png]' failed with the latest version of jQuery (Sizzle). At first I thought this problem only occured in IE6, but that was just because it only got executed in the png alpha fix for IE6). I only found this problem after a long search, only to find a small message in the doc

[jquery-dev] Safari issues

2009-02-12 Thread Yusuf
Hi, I'm new to jQuery. I started using it and wrote some fairly straight forward code. Here is the what I got - Downloaded the latest version (ver 1.3.1) - My script is in \js folder - Included the script in my page - Finally I am resizing iframe on document.ready $(function() {

[jquery-dev] Re: There must be a better way !

2009-02-12 Thread weepy
Thanks Klaus I suspected as much. It is quite odd that you can pull some html out, push the same back in and it isn't the same! I guess this is a bug in Firefox ? On 10 Feb, 09:42, Klaus Hartl wrote: > On 10 Feb., 09:48, weepy wrote: > > > This is why I had to regex them back in :-(. I think