[jQuery] AJAX-filled div broken after 1.04 - 1.1 update

2007-01-19 Thread Brian Tobin
Hi everyone. After wrestling with this one for awhile I've come to the conclusion that I need your help. For your reference, here are two pages. They differ only in which version of jQuery they use. The first uses 1.1, the second uses 1.04. http://furzle.com/user_functions/register

Re: [jQuery] AJAX-filled div broken after 1.04 - 1.1 update

2007-01-19 Thread Fil
Hi everyone. After wrestling with this one for awhile I've come to the conclusion that I need your help. For your reference, here are This bug is solved in SVN and in the forthcoming jQuery 1.1.1 If you must correct it now you can build it from SVN (it's easy); or just be lazy and pick up

Re: [jQuery] jEditable dont work with IE7

2007-01-19 Thread Mika Tuupola
On Jan 18, 2007, at 6:09 PM, David Gironella wrote: Some of my user say me that jEditable(http://www.appelsiini.net/ ~tuupola/javascript/jEditable/) dont work with IE 7. They say that textarea is not restored with value returned by url parameter. Is it possible to see some example code

Re: [jQuery] jEditable dont work with IE7

2007-01-19 Thread David Gironella
I find problem. The problem is a cache problem. That i solve with a random variable in url. Thk. Giro. -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Mika Tuupola Enviado el: viernes, 19 de enero de 2007 9:54 Para: jQuery Discussion. Asunto: Re: [jQuery]

Re: [jQuery] Detect browser close event

2007-01-19 Thread Klaus Hartl
Unai Martinez schrieb: How can i detect browser close event? I've tried something like: $(window).unload( function(){ alert(close); //stop event return false; } ); Alert appears, but event continues... Thx! I don't think that you can - or if my

Re: [jQuery] Detect browser close event

2007-01-19 Thread Markus Peter
On 19.01.2007, at 12:29, Klaus Hartl wrote: Unai Martinez schrieb: How can i detect browser close event? I've tried something like: I don't think that you can - or if my knowledge here is limited that it is a good idea to - stop the user from closing the window... He could have a try

[jQuery] ID of parent

2007-01-19 Thread Bruce MacKay
Hi folks, Not a new question to this list, I know, but I'm having difficulty in getting the ID of a parent. From the examples on Nabble, I've tried var ej = $(#sText).parent().attr(id); and various renditions on the them, but the best I get reported is [object Object]. I'd appreciate a

Re: [jQuery] Detect browser close event

2007-01-19 Thread Unai Martinez
I want to attach an event on close to verify that all changes made on a form are saved. Something like in gmail, if you try close browser window when you are composing an email, you get a dialog. Thx. On 1/19/07, Klaus Hartl [EMAIL PROTECTED] wrote: Unai Martinez schrieb: How can i

[jQuery] Editinplace and WYSIWYG

2007-01-19 Thread David Gironella
Somebody test or have a piece of code to use editinplace and WYSIWYG editor(tiny_mc,fckeditor,etc..) Thk. Giro. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

[jQuery] help with recursive function

2007-01-19 Thread Jason Huck
I am trying to create a multi-step form using a recursive function to find the form, bind a submit event, and replace the form with either an error message or a new form for the following step. This is what I have so far: $(function(){ bindForm =

Re: [jQuery] Detect browser close event

2007-01-19 Thread Klaus Hartl
Unai Martinez schrieb: I want to attach an event on close to verify that all changes made on a form are saved. Something like in gmail, if you try close browser window when you are composing an email, you get a dialog. Thx. Ah yes, that makes sense. Sorry, didn't

Re: [jQuery] ID of parent

2007-01-19 Thread Sam Collett
On 19/01/07, Bruce MacKay [EMAIL PROTECTED] wrote: Hi folks, Not a new question to this list, I know, but I'm having difficulty in getting the ID of a parent. From the examples on Nabble, I've tried var ej = $(#sText).parent().attr(id); and various renditions on the them, but the

Re: [jQuery] Detect browser close event

2007-01-19 Thread Unai Martinez
I get it working, without jquery :: window.onbeforeunload = function(){return Unsaved changes.} Thx. On 1/19/07, David Duymelinck [EMAIL PROTECTED] wrote: Unai Martinez schreef: How can i detect browser close event? I've tried something like: $(window).unload( function(){

Re: [jQuery] help with recursive function

2007-01-19 Thread Mike Alsup
This works fine for the first step (the form that is initially loaded), but fails to bind to the newly loaded form after submit. I tried moving the recursive call into the after/success callback of .ajaxSubmit, but it didn't make any difference. Not sure what else to try. Any suggestions?

Re: [jQuery] Detect browser close event

2007-01-19 Thread Fil
I want to attach an event on close to verify that all changes made on a form are saved. We are doing thins with jquery .unload() and it works. We don't stop people from leaving, but just ask, before, if they wish to submit unsaved changes (and save them with a .load() if they answer

Re: [jQuery] Crossbrowser innerHeight / resize listener?

2007-01-19 Thread Brandon Aaron
You should use the dimensions plugin [1] to handle this since it provides a cross browser method of getting the innerHeight. ... y = $(window).innerHeight(); ... [1]: http://jquery.com/dev/svn/trunk/plugins/dimensions/dimensions.js?format=txt -- Brandon Aaron On 1/19/07, Arne-Kolja

Re: [jQuery] Deserialize plugin with jQuery 1.1

2007-01-19 Thread Mike Alsup
I have been using the deserialize plugin to fill forms with JSON. But it doesn't work properly with jQuery 1.1 Here are two test pages: Bruce, the problem is a result of this bug: http://jquery.com/dev/bugs/bug/804/ which has been fixed and is available now in SVN. Mike

Re: [jQuery] Detect browser close event

2007-01-19 Thread Unai Martinez
This will work, thanks Fil. Thx. On 1/19/07, Fil [EMAIL PROTECTED] wrote: I want to attach an event on close to verify that all changes made on a form are saved. We are doing thins with jquery .unload() and it works. We don't stop people from leaving, but just ask, before, if

Re: [jQuery] Detect browser close event

2007-01-19 Thread Sam Collett
On 19/01/07, Unai Martinez [EMAIL PROTECTED] wrote: I get it working, without jquery :: window.onbeforeunload = function(){return Unsaved changes.} Thx. Perhaps it should be filed as a bug? $(window).bind(beforeunload, function(){return Unsaved changes.; }); The above 'sort of' worked in

Re: [jQuery] Detect browser close event

2007-01-19 Thread Unai Martinez
Yes, it works. Thx. On 1/19/07, Sam Collett [EMAIL PROTECTED] wrote: On 19/01/07, Unai Martinez [EMAIL PROTECTED] wrote: I get it working, without jquery :: window.onbeforeunload = function(){return Unsaved changes.} Thx. Perhaps it should be filed as a bug? $(window).bind(beforeunload,

Re: [jQuery] ID of parent

2007-01-19 Thread Dave Methvin
var ej = $(#sText).parent().attr(id); Looks good to me. Do you have a test page? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

[jQuery] Test whether element is undergoing animation?

2007-01-19 Thread Phillip B Oldham
Hi all I'm doing a sort of accordion effect on some elements. When one element is clicked to open (eg, element B), i specify that all other :visible elements should close before opening the clicked element. This works fine, but the animation is re-set if i re-click element B before the

Re: [jQuery] ID of parent

2007-01-19 Thread Dan G. Switzer, II
Just out of curiosity, are there more than 1 DOM item on the page w/id of sText? -Dan _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Methvin Sent: Friday, January 19, 2007 9:09 AM To: 'jQuery Discussion.' Subject: Re: [jQuery] ID of parent var ej =

Re: [jQuery] Slow Selector... What should I do?

2007-01-19 Thread Christopher Jordan
Blair, Thanks for the advice. You may not have noticed my post that came moments after the one you replied to where I'd figured out the unnecessary use of eval on my own. I do try to avoid it. Also, while the second loop may be able to be optimized, neither of the loops in this case are

[jQuery] .size() to test if something exists

2007-01-19 Thread Peter Bengtsson
Currently my code looks something like this: if ($('#warningmsg').size()) highlightWarningMsg(); Is that the correct way of testing if a jQuery object contains anything? -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com

[jQuery] [Slightly OT] Nabble Blocked

2007-01-19 Thread Jason Levine
I usually start every day using Nabble to browse through the latest posts to the JQuery discussion list. A couple of days ago, though, I was surprised to find that my work's WebSense filter had blocked it as a malicious web site. I talked with the administrators and they initially claimed

[jQuery] introduction and textarea counter / limiter question

2007-01-19 Thread Bjorn Wijers
Hi, My name is Bjorn Wijers and I recently started with jQuery. I have tried other libs as well, but this seems to be the one best suited for me. Thanks to John and all the other contributors for making jQuery available! I started out with a small project which is based on this example [1] by

[jQuery] Fwd: google group archive of discuss@jquery.com

2007-01-19 Thread TRANS
I haven't gotten a reply to this so just in case I'm putting out an A.P.B. Anyone out there who can help facilitate? -- Forwarded message -- From: TRANS [EMAIL PROTECTED] Date: Jan 18, 2007 12:50 PM Subject: google group archive of discuss@jquery.com To: [EMAIL PROTECTED], [EMAIL

[jQuery] Errors: 1.1 and IE5.5

2007-01-19 Thread Phillip B Oldham
Anyone else getting an error when using jQuery 1.1 with IE5.5? My code works fine with 1.1 on IE6/7, FF1+, Opera 9.10, and Safari, but in IE5.5 i'm getting a 'this.nodeName' is null or not an object from the jQuery compressed library - my code doesn't use that method. Just wanted to know

Re: [jQuery] Slow Selector... What should I do?

2007-01-19 Thread Brandon Aaron
On 1/19/07, Christopher Jordan [EMAIL PROTECTED] wrote: [..] I don't really understand how to use filters. You're the second or third person to mention them, and I did some reading yesterday, but I still don't completely understand. [...] I'm not familiar with CF but I'm going to try and

Re: [jQuery] .size() to test if something exists

2007-01-19 Thread Dave Methvin
if ($('#warningmsg').size()) highlightWarningMsg(); Is that the correct way of testing if a jQuery object contains anything? You could also do: if ($('#warningmsg')[0]) You could also say this: $(#warningmsg).each(highlightWarningMsg); Each won't call the fn at all unless the element

Re: [jQuery] .size() to test if something exists

2007-01-19 Thread Matt Stith
$(#warningmsg).each(highlightWarningMsg); That would still be a bad way to do it i'd say, because if theres more than one element with the id 'warningmsg' (I know there shouldnt be, but you cant count on these things), it would fire more than once. I would just use if ($('#warningmsg')[0]). On

Re: [jQuery] [Slightly OT] Nabble Blocked

2007-01-19 Thread Karl Swedberg
Does WebSense have a naughty-word filter? If so, maybe it got snagged on the use of the word f***k the other day. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 19, 2007, at 11:41 AM, Zach Shelton wrote: same effect observed here, can't raise

Re: [jQuery] .size() to test if something exists

2007-01-19 Thread Mike Alsup
That would still be a bad way to do it i'd say, because if theres more than one element with the id 'warningmsg' (I know there shouldnt be, but you cant count on these things), it would fire more than once. I would just use if ($('#warningmsg')[0]). Not true. If you have multiple elements

Re: [jQuery] [Slightly OT] Nabble Blocked

2007-01-19 Thread Zach Shelton
either that or some automated parser decided that all the programming talk must be of keen interest to the black-hat hacker community. But it is worth noting that ALL of nabble.com is blocked by websense, not just this list. ...which really suck for me, because I think I'd rather see this list

Re: [jQuery] .size() to test if something exists

2007-01-19 Thread Matt Stith
oh, right. Didnt really think that one over very much :P Still though, i would use $('#warningmsg')[0], it seems like the safest choice. On 1/19/07, Mike Alsup [EMAIL PROTECTED] wrote: That would still be a bad way to do it i'd say, because if theres more than one element with the id

[jQuery] IE bug

2007-01-19 Thread Philip Pryce
i've tried my website in two versions of IE (6,7) and both dont show, at one point it told me line 28 was the problem, but IE doesnt show the file name, how ever now i'm simply getting a blank page, with no error/alerts nothing. As if it never tried to view my page. to view the webpage, the url

Re: [jQuery] $.ajax, XML and '' problem

2007-01-19 Thread Ⓙⓐⓚⓔ
the X in ajax means XML and XML has reserved characters basically has to be coded as amp; you can still read the file as text, but not as xml. On 1/19/07, Sasha Oros [EMAIL PROTECTED] wrote: Whenever one of my xml files have some data in it that contains an '', for example tag keyboard

Re: [jQuery] .size() to test if something exists

2007-01-19 Thread Mike Alsup
I think IE (c'mon, do I even need to *finish* this sentence?) returns an array in those cases. Just to clarify, the MS docs say that getElementById returns the first object with the same ID attribute as the specified value. ___ jQuery mailing list

Re: [jQuery] IE bug

2007-01-19 Thread Mike Alsup
Hope someone can help me fix this, i'm not sure wether its jQuery, or my javascript. Try including Nifty before jQuery. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] jQuery fix to IE's lack of 'max-width' CSS support??

2007-01-19 Thread Oskar E.
Hello While the expression system is quite powerfully, however on some elements it seems to be quite cpu intensive. I tested binding via setExpressions together with jQuery, IE defaults to JScript for expression, nothing that heavy, but my firebug lite console filled quite fast with debug

Re: [jQuery] IE bug

2007-01-19 Thread Philip Pryce
nope, same result, removed the error in firefox though, thanks. On 1/19/07, Mike Alsup [EMAIL PROTECTED] wrote: Hope someone can help me fix this, i'm not sure wether its jQuery, or my javascript. Try including Nifty before jQuery. ___ jQuery

Re: [jQuery] .size() to test if something exists

2007-01-19 Thread Dave Methvin
Sure enough. So much for my memory... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Alsup Sent: Friday, January 19, 2007 2:10 PM To: jQuery Discussion. Subject: Re: [jQuery] .size() to test if something exists I think IE (c'mon, do I even need

Re: [jQuery] IE bug

2007-01-19 Thread Ⓙⓐⓚⓔ
for what it's worth, your page loads in safari. I looked in the html and you use defer for your scripts, and IE is the only browser that pays attention to defer. ??? On 1/19/07, Philip Pryce [EMAIL PROTECTED] wrote: nope, same result, removed the error in firefox though, thanks. On 1/19/07,

Re: [jQuery] IE bug

2007-01-19 Thread Dan G. Switzer, II
Philip, Viewing the source code in IE6 showed me that you've got some code writing a script defer tag in IE6. Check all your for the word defer. That should help you identify the source of the problem. -Dan _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of

Re: [jQuery] IE bug

2007-01-19 Thread Philip Pryce
So your saying i should remove it? or add it to ones that dont have it? On 1/19/07, Dan G. Switzer, II [EMAIL PROTECTED] wrote: Philip, Viewing the source code in IE6 showed me that you've got some code writing a script defer tag in IE6. Check all your for the word defer. That should help

Re: [jQuery] Crossbrowser innerHeight / resize listener?

2007-01-19 Thread Klaus Hartl
Brandon Aaron wrote: You should use the dimensions plugin [1] to handle this since it provides a cross browser method of getting the innerHeight. ... y = $(window).innerHeight(); ... [1]: http://jquery.com/dev/svn/trunk/plugins/dimensions/dimensions.js?format=txt And you should

Re: [jQuery] IE bug

2007-01-19 Thread Dan G. Switzer, II
Philip, The problem seems to be some piece of JS in your app is trying to write a script tag dynamically. However, that piece of code is actually replacing the entire DOM object when it writes this code. What I'm seeing is this in the source code: script id=__ie_init defer=true

Re: [jQuery] IE bug

2007-01-19 Thread Philip Pryce
i removed defer from the main js includes, it all seems to work now, thanks. On 1/19/07, Dan G. Switzer, II [EMAIL PROTECTED] wrote: Philip, The problem seems to be some piece of JS in your app is trying to write a script tag dynamically. However, that piece of code is actually replacing

[jQuery] Solved: Use of each to dynamically assign click method and arguments

2007-01-19 Thread Steve Jones
Sorry guys, I didn't realise the full power of "each" in its incarnation as $.each.I have therefore achieved my result as follows:$.each( $("a.open_btn"), function(i, btn) { $(btn).click( function() { $("#section" + i).addClass("open"); $("#section" + i).slideToggle(1200, complete); return

[jQuery] Autocomplete iframe causing security notice in IE over https

2007-01-19 Thread Peter Vulgaris
Whenever I tried using Autocomplete over https with IE 6, I would get a security message upon first entering a query. This was caused by the iframe being created in the background, or more specifically the fact that the iframe had no src set. The only solution I've found to work is creating a

Re: [jQuery] Autocomplete iframe causing security notice in IE over https

2007-01-19 Thread Jonathan Sharp
Take a look at my plugin: http://jdsharp.us/code/jQuery/jdMenu/ The work around is to append '/iframe' first and then the open iframe. Look at the example in my code. We encountered the same issue with the security warning. I believe this is also the solution that sourceforge implemented for

Re: [jQuery] THE List of Sites Using jQuery

2007-01-19 Thread Glen Lipka
You might want to break out Turbotax.com as a link. They use it too and get ALOT more traffic than intuit.com does. The upgraded intuit.com site uses alot more, but they are dragging their feet to deploy. Also, http://payroll.intuit.com/ uses it. Glen On 1/18/07, Rey Bango [EMAIL PROTECTED]

Re: [jQuery] Fwd: google group archive of discuss@jquery.com

2007-01-19 Thread Gerry Danen
Delivery to the following recipient failed permanently: [EMAIL PROTECTED] Seems like something is not set up properly... Gerry On 1/19/07, TRANS [EMAIL PROTECTED] wrote: I haven't gotten a reply to this so just in case I'm putting out an A.P.B. Anyone out there who can help facilitate?

Re: [jQuery] IDs are a crutch for the weak. Classes are for the strong.

2007-01-19 Thread Matt Stith
So clarify.. why are IDs so bad? Just because they are overused? On 1/19/07, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: Don't get me wrong, I use an occasional id. But ids are over used. Sure jQuery selects a single element faster with an id than with a class, but that's only the beginning of a good

Re: [jQuery] IDs are a crutch for the weak. Classes are for the strong.

2007-01-19 Thread Su
Seriously. You've succeeded in making yourself misunderstood. Now what? You can't put ids and classes next to each other for comparison like this and then write one off. It doesn't work; they don't even do the same thing.. On 1/19/07, Matt Stith [EMAIL PROTECTED] wrote: So clarify.. why

Re: [jQuery] IDs are a crutch for the weak. Classes are for the strong.

2007-01-19 Thread Matt Stith
Exactly. It is senseless to use 200 classes when you have a big list, just make them unique IDs (item_100, item_156, etc) and speed up the queries a little bit. On 1/19/07, Su [EMAIL PROTECTED] wrote: Seriously. You've succeeded in making yourself misunderstood. Now what? You can't put ids

Re: [jQuery] IDs are a crutch for the weak. Classes are for the strong.

2007-01-19 Thread Ⓙⓐⓚⓔ
As you all know there is no replacement for ids. and 200 classes or ids is ridiculous! but by using a single id for the div in question and letting the styles cascade and letting jQuery do what, I feel, it does so well, you can eliminate the use of 90% of ids. Since most good xhtml (and html) is

Re: [jQuery] Fwd: google group archive of discuss@jquery.com

2007-01-19 Thread Ⓙⓐⓚⓔ
the problem is in setting google to mirror the list, the members of that list would want to post to the main group, before the the private group. The nabble ( http://nabble.com/ ) mirror seems to serve that purpose. I noticed that the chinese group on google seems active, perhaps that is the way

Re: [jQuery] IDs are a crutch for the weak. Classes are for the strong.

2007-01-19 Thread Gerry Danen
Hello Jake, I'm an IT veteran (36 years) but rather new to JavaScript, AJAX and all that. You voice rather strong opinions on this particular subject, and I love to learn. Is there any chance of a tutorial or example page on this? Or, maybe there is an example already? Gerry PS: I love jQuery

[jQuery] 1.1 drag not working on mozilla in linux

2007-01-19 Thread jason schleifer
ever since jquery switched to 1.1 all the demos I see with drag aren't working correctly.. they work fine in firefox, but in mozilla they're totally busted. does anyone else see this problem?? -jason -- jason schleifer ah-ni-may-tor | weirdo http://jonhandhisdog.com/

Re: [jQuery] IDs are a crutch for the weak. Classes are for the strong.

2007-01-19 Thread Ⓙⓐⓚⓔ
Gerry, I'm an old IT guy too... I was educated in computer science, learned lisp, taught Snobol, apl, and Algol, among others... few languages have excited me as much as javascript+jQuery! I tend to read this list as as testament to John's work. Some ideas are creative, some are utilitarian and

Re: [jQuery] IDs are a crutch for the weak. Classes are for the strong.

2007-01-19 Thread Gerry Danen
On 1/19/07, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: Gerry, I'm an old IT guy too... I was educated in computer science, learned lisp, taught Snobol, apl, and Algol, among others... few languages have excited me as much as javascript+jQuery! You're right that jQuery is exciting. It would not have caught