[jQuery] Re: compare two arrays

2007-08-29 Thread Sean Catchpole
This can be done using mapreduce or other functions, but they are only supported in Firefox atm. Writing a double for loop is easy to code and wider supported. ~Sean On 8/28/07, Potluri [EMAIL PROTECTED] wrote: Is there a jquery way to compare two arrays without looping. like I have an

[jQuery] Re: DIV clipping or autofit question

2007-08-29 Thread Klaus Hartl
Feed wrote: Yes, Firefox does this. I'm not sure if it's a bug or a feature, though. I don't think Firefox, which is known for it's good standards compliance, would suffer from such a stupid bug. Or maybe I'm wrong. :) Nowhere in the spec (up to CSS 2.1) is defined how to handle wrapping

[jQuery] Re: Performance from 1.1.2 to 1.1.4

2007-08-29 Thread oscar esp
I will try Jeffry. I will keep you informed. On 28 ago, 19:07, Jeffrey Kretz [EMAIL PROTECTED] wrote: Wow. Well that's not too good. Is there any way you could upload a sample of this to a public location? This would really be needed for to track down what the issue is. JK

[jQuery] Release: Accordion 1.5

2007-08-29 Thread Erin Doak
It's late and maybe I'm wrong but there seems to be an infinite recursion error (Firebug says too much recursion) when multiple dd tags are used inside a dt tag. Maybe the plugin was never meant to be used with this html structure. Example: http://rmip.com/accordion/ Top example has the

[jQuery] Re: DIV clipping or autofit question

2007-08-29 Thread Alexandre Plennevaux
Pop, you can also finetune this presentational behavior via css: white-space: no-wrap / pre / auto -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Pops Sent: mardi 28 août 2007 23:39 To: jQuery (English) Subject: [jQuery] Re: DIV clipping

[jQuery] Re: compare two arrays

2007-08-29 Thread Gordon
Map and reduce iterate over the array as well so the only speedup you'd gain from using them is the fact that they're natively implemented and not written in JavaScript themselves. They still represent functions that loop over arrays. On Aug 29, 7:12 am, Sean Catchpole [EMAIL PROTECTED] wrote:

[jQuery] How to use Form Plugin and ValidationAide Plugin

2007-08-29 Thread Massimiliano Marini
Hi all, I'm using Form Plugin without problem, now I need to validate the fields, in the jQuery's plugin page I've found this plug-in: http://dnaide.blogspot.com/2007/05/validationaide-easy-as-client-side-form.html My question is : There's a way to validate the field with this plugin and when

[jQuery] Re: Problem dragging forms

2007-08-29 Thread Richard D. Worth
I don't know the specifics of the easydrag plugin, however, I have seen this as a common problem in drag-n-drop code/libraries. jQuery UI draggables (official release coming soon, now in SVN) gives you two options for handling this case: 1. dragPrevention(string) - You specify a jQuery selector.

[jQuery] like 'isset'...determining is something exists on the page

2007-08-29 Thread Txt.Vaska
I'm trying to determine if soemthing has been set on the page...and if it is do a different action. I have... if ($('a#f_' + ide).siblings().is('img')) { // do this action } else { // do something else } Which looks to see if an image exists in I'm expecting that .is() will return true

[jQuery] Re: document ready shortcut and scoping

2007-08-29 Thread DaveG
Michael Geary wrote: Ah, now I'm following you! I'm slow today. Heh -- just remember, slow is relative :) This will work: var test; jQuery ( function() { test = function() {alert('here')} } ); // and sometime later in your code, after document.ready fires test(); // test is

[jQuery] How do child selectors work in jQuery?

2007-08-29 Thread Jeroen Coumans
Hi, See http://lab.jeroencoumans.nl/jquery/child-selector.html It's my understanding that child selectors only select direct children of an element. Thus, $('#test li') should only select direct descendent li elements of #test, not nested li's. This is confirmed with a simple CSS rule. So how

[jQuery] Re: Release: Accordion 1.5

2007-08-29 Thread Brandon Aaron
Firebug has a tendency to say that every once in a while. Restart Firefox and see if it still has the error. -- Brandon Aaron On 8/29/07, Erin Doak [EMAIL PROTECTED] wrote: It's late and maybe I'm wrong but there seems to be an infinite recursion error (Firebug says too much recursion) when

[jQuery] Re: How do child selectors work in jQuery?

2007-08-29 Thread Brandon Aaron
Because you are binding the click event to the a tag, not the li. So what your saying is get all the a tags within each li (which is all the a tags in your ul). You just need one more child selector in there between the li and a to make sure you only select the immediate a tags of the li only ...

[jQuery] Re: Toggling the html of an element

2007-08-29 Thread voltron
Cool! Thanks On Aug 28, 12:38 am, Dan Evans [EMAIL PROTECTED] wrote: One reason why the others may not have worked is because .toggle() assigns a click handler to an element. It is the same as writing .click() except that it takes two functions instead of one and it alternates them. So the

[jQuery] Re: Live Query with Draggables

2007-08-29 Thread Theodore Ni
I know exactly what you mean, and it makes perfect sense, and now going back to Firefox, it works like a charm. Normally that would be enough for me, but this needs to run in the exploder :-( Ok, I've gone back and tried to recreate this example, and you are right, the selector works if I add in

[jQuery] Re: jQuery 1.1.4: Faster, More Tests, Ready for 1.2

2007-08-29 Thread henry
1.1.4 breaks Interface, firebug reports: jQuery.easing[options.easing] is not a function z.now = jQuery.easing[options.easing](p, n, firstNum, (last-firstNum), options.duration); jquery.js line 5214 help? thx.

[jQuery] New plugin: elementReady

2007-08-29 Thread Bennett McElwee
I have written a simple but useful jQuery plugin. jQuery.elementReady() calls a function during page load as soon as a specific element is available -- even before the full DOM is loaded. It's useful if you have unobtrusive JavaScript that you want to apply to particular page elements

[jQuery] AJAX and Http Response Codes

2007-08-29 Thread oravecz
Is there a more raw form of .ajax (or get, .post) that will expose the XHR method to the success (or error) handler? I am attempting to convert an application to jQuery that has a proprietary server module that uses a wide range of HTTP status codes for certain nuances on the client. I notice

[jQuery] Re: jQuery 1.1.4: Faster, More Tests, Ready for 1.2

2007-08-29 Thread digitarald
Pops, this problem occurred in jQuery because of the heavy usage of closures, especially in the case of onreadystatechange (as explained in the article posted in the jQuery ticket). It never occurred for example in MooTools because the onreadystatechange handler is a class method and not a

[jQuery] ie6/ie7: slideDown doesn't work on dd that contains a script

2007-08-29 Thread [EMAIL PROTECTED]
strangeness: i have a setup where clicking on a dt causes a sibling dd to slideDown. this works fine *unless* the dd contains a script tag (fwiw, the script tag references a script on another server). when i click on this particular dt, both ie6 and ie7 crash (on different computers). any ideas?

[jQuery] Keyboard Shortcuts (hooking) Plugin

2007-08-29 Thread Tzury
(reposting from plug-in group) Hi all, Last night I rewrote (granted permissions by author) the module shortcut.js (from http://www.openjs.com/scripts/events/keyboard_shortcuts/) as a jQuery plug-in. The syntax is simple: hooking: $.shortcut.add(shortcut, options, callback); unhooking

[jQuery] Re: Live Query with Draggables

2007-08-29 Thread Theodore Ni
Just in case anyone wants to see, this is the test script that I used. Just change the filenames to whatever you want: html head titleTesting Dragging/title script type=text/javascript src=jquery.js/script script type=text/javascript src=jquery.livequery.js/script script type=text/javascript

[jQuery] I can't specify the photos width and height

2007-08-29 Thread Omar101
Hi, I have created a jCarousel photo gallery using drupal, it takes the photos dynamically from drupal moduke, its work fine, but i can't control the photos width and height, it takes it as it is stored in drupal module what i should do. furthermore i specified it in my configuration, but

[jQuery] I can't specify the photos width and height

2007-08-29 Thread Omar101
Hi, I have created a jCarousel photo gallery using drupal, it takes the photos dynamically from drupal moduke, its work fine, but i can't control the photos width and height, it takes it as it is stored in drupal module what i should do. furthermore i specified it in my configuration, but

[jQuery] Re: What's wrong with my syntax?

2007-08-29 Thread Theodore Ni
I believe you need a comma after all but the last function, because they are name : value pairs in an object. On 8/28/07, juliandormon [EMAIL PROTECTED] wrote: I'm trying to use both afterFileAppend and afterFileRemove. I get an syntax error in javascript: Missing } after property list

[jQuery] slideDown of dd containing a script crashes ie6/ie7: jQuery 1.1.3.1

2007-08-29 Thread [EMAIL PROTECTED]
[apologies if this is a dupe -- i posted this last night and don't see it on the message board] i have a piece of code that makes it so when you click on a dt, it reveals the sibling dd using the slideDown effect. this seems to work fine except one one dt/dd -- in that case, clicking on the dt

[jQuery] Re: Fading element opacity problem using Interface FX!!!

2007-08-29 Thread henry
I can't imagine this bug still exists in jQuery 1.1.4. Firefox firebug output: -- jQuery.easing[options.easing] is not a function z.now = jQuery.easing[options.easing](p, n, firstNum, (lastNum- firstNum, options.durations); jquery.js (line 5214) -- Help! What should I do now?

[jQuery] Re: img src problem in IE6

2007-08-29 Thread mohsin
yes image src is not changing i try to alert the src with this code alert($('#fp_img').attr(src)); and alert is undefined even in IE7 and firefox... On Aug 28, 8:36 pm, Richard D. Worth [EMAIL PROTECTED] wrote: On 8/28/07, mohsin [EMAIL PROTECTED] wrote: $('#fp_menu a').each(function()

[jQuery] I can't specify the photos width and height

2007-08-29 Thread Omar101
Hi, I have created a jCarousel photo gallery using drupal, it takes the photos dynamically from drupal moduke, its work fine, but i can't control the photos width and height, it takes it as it is stored in drupal module what i should do. furthermore i specified it in my configuration, but

[jQuery] slideDown of dd containing a script crashes ie6/ie7: jQuery 1.1.3.1

2007-08-29 Thread Rebecca Murphey
[apologies if this is a dupe -- i've tried posting this twice via the web interface, and still don't see it.] i have a piece of code that makes it so when you click on a dt, it reveals the sibling dd using the slideDown effect. this seems to work fine except one one dt/dd -- in that case,

[jQuery] Re: jQuery beginer in search of magic...

2007-08-29 Thread Yannick Schall
I must say that as i'm learning javascript and jquery in parallel so it's a bit confusing. I did a bit of javascript before and jQuery is so different that it is difficult for me to get in the right mind set. Well it's not like I'm especially good with javascript either i always end up

[jQuery] Graceful degradation (Safari 2)

2007-08-29 Thread [EMAIL PROTECTED]
I love jquery, the only issue I have is the non-graceful degradation of some methods with mainly Safari Ver 2. I understand this browser is outdated, and perhaps the worst browser out there, but my colleagues at work still use it. If some of the features of jquery are not available for safari

[jQuery] Re: How to add content here?

2007-08-29 Thread Frank Peterson
It was on ajaxian awhile back, i cant find it but go through every article in the last 2 months and u should find it, please post it if you find it, i shoudl of bookmarked it :p http://ajaxian.com/

[jQuery] Re: AJAX and Http Response Codes

2007-08-29 Thread Mike Alsup
You can use a complete handler instead of a success handler: $.ajax({ url: 'myPage.jsp', complete: function(xhr, status) { // the status arg is either success, error or timeout // status codes can be retrieved from the xhr alert(xhr.status); } }; Mike On

[jQuery] Re: Live Query with Draggables

2007-08-29 Thread Brandon Aaron
The ID shouldn't be necessary at all ... it just provides some context to make the selector faster. I'll try out your example soon to see if I can spot the issue. -- Brandon Aaron On 8/28/07, Theodore Ni [EMAIL PROTECTED] wrote: I know exactly what you mean, and it makes perfect sense, and now

[jQuery] Re: AJAX and Http Response Codes

2007-08-29 Thread Andy Matthews
I believe that the .ajax method returns the raw status code. Check: http://jquery.com/api/ andy -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of oravecz Sent: Tuesday, August 28, 2007 9:31 PM To: jQuery (English) Subject: [jQuery] AJAX and Http

[jQuery] Re: New plugin: elementReady

2007-08-29 Thread Benjamin Sterling
Bennett, That will be a very useful plugin for sure, I am already thinking of where I can add it to existing code. Really nice work. Ben On 8/29/07, Bennett McElwee [EMAIL PROTECTED] wrote: I have written a simple but useful jQuery plugin. jQuery.elementReady() calls a function during page

[jQuery] Re: I can't specify the photos width and height

2007-08-29 Thread Benjamin Sterling
Omar, Is there a live version we can have a look at? On 8/29/07, Omar101 [EMAIL PROTECTED] wrote: Hi, I have created a jCarousel photo gallery using drupal, it takes the photos dynamically from drupal moduke, its work fine, but i can't control the photos width and height, it takes it as it

[jQuery] Re: compare two arrays

2007-08-29 Thread Potluri
I know another easy way to do this with only one loop but not in jquery way. var arrayA=[1,2,3,4,5] var arrayB=[1,b,c,1,2] for(var i=0;iarrayA.length;i++) { if(arrayB.indexOf(arrayA[i]) != -1) { return true; } return false; } Michael Geary wrote: From: Potluri Is there a jquery

[jQuery] .value= / .val()

2007-08-29 Thread Enrico
question: i have following code: why its not possible to write on this way in the city.value? $(#zip_code).blur(function(){ var zip = zip_code= + this.value; $.get(?route=Adress/zipCityLookup, zip, function(xml){ --$(#city).value= $(city, xml).text(); });

[jQuery] Re: How to use Form Plugin and ValidationAide Plugin

2007-08-29 Thread Massimiliano Marini
I manage my form with this Form Plugin code: $(document).ready(function() { $('#f1').ajaxForm(function() { target: '#response', success: function() { $('#response').fadeIn('slow'); } }); Maybe it help, the call to the plugin for

[jQuery] Re: How to add content here?

2007-08-29 Thread Karl Swedberg
On Aug 28, 2007, at 11:12 PM, Sagari wrote: Greetings, The task: to add content (HTML) exactly at the place where script was placed, i.e. how do I get the parent of a scrirpt type=text/javascript src=scriptsource.js/script -like tag? I need to use DOM scripting, not document.write().

[jQuery] Re: how to add jQ$ to be same as $ ?

2007-08-29 Thread David Duymelinck
You can use the noConfict method for that: http://docs.jquery.com/API/1.1.2/Core#.24.noConflict.28.29 As of 1.1.4 you can add the jquery functionality to your current library using the argument true http://jquery.com/blog/2007/08/24/jquery-114-faster-more-tests-ready-for-12/ -- David Max

[jQuery] Re: .value= / .val()

2007-08-29 Thread Mike Alsup
Why i must use the .val() function? Because value is not a property on the jQuery object. It is a property on the DOM element. // use jQuery val method: $(#city).val($(city, xml).text()); // use DOM element value property: $(#city)[0].value = $(city, xml).text(); Mike

[jQuery] Re: removeClass from *any* element

2007-08-29 Thread Scott Sauyet
Erik Beeson wrote: On 8/28/07, Shelane [EMAIL PROTECTED] wrote: [ ... ] I want to be able to globally remove the class from any and all elements on my page within a specific div tag. Is there a wildcard selector or some other way to do this: $('#mydiv *').removeClass('RedText'); I wonder

[jQuery] Jcarousel fadeIn and fadeOut

2007-08-29 Thread Mario Moura
Hi Folks I am impress how jcarousel is easy to setup. http://sorgalla.com/projects/jcarousel/#Configuration Congratulations Jan. If I am using scroll: 1, I dont like of scroll effect (right to left) and I prefer use fadeIn and FadeOut between images. Is it possible? How? Regards -- Mário

[jQuery] jQuery and dynamic image album, possible?

2007-08-29 Thread Steve Finkelstein
Well, I'm sure it's possible, but I'm a newb and could use veteran advice. :-) I have a form which dynamically finds photos upon each GET of the page. So the photos in one page refresh might be different from another depending on actions the user has taken. Here's a sample:

[jQuery] Re: jQuery 1.1.4: Faster, More Tests, Ready for 1.2

2007-08-29 Thread Pops
On Aug 28, 6:17 pm, digitarald [EMAIL PROTECTED] wrote: The easiest fix, instead of using a periodical checker which seems kind of weird on the first blush, is to avoid closures during coding ... Just for clarfication. The idea of polling for non-atomic states is a Sync 101 violation.

[jQuery] Re: tablesorter 2.0: problems with multiple rows in thead

2007-08-29 Thread tlphipps
E-mail has been sent. For others who may be interested, the test page is at: http://www.garethphipps.com/tablesorttest/index.html Thanks for looking into this! On Aug 28, 3:36 pm, Christian Bach [EMAIL PROTECTED] wrote: Hi Travis, Would it be possible to send me a test-case of your table,

[jQuery] Release: Accordion 1.5

2007-08-29 Thread Erin Doak
Yes, the error persists after restart. Also in Opera, where I don't have a javascript debugger, the menu after the click is no longer responsive. This seems to indicate that there is a problem in this browser too. Firebug has a tendency to say that every once in a while. Restart Firefox and

[jQuery] AJAX GetElementByID problem

2007-08-29 Thread Kevin
Hi All, I'm trying to use an ajax call to call a 2nd page which uses a getElementByID to set a div's content on that page. If I just try to call the 2nd page, I get a js error that I can't run the getElementByID because it has no properties. If I change the 2nd page to be a callback function

[jQuery] FCKEditor (to plugin or not to plugin...) newbie struggling again...

2007-08-29 Thread Quayfee
Hi All, I'm having issues getting the FCKEditor plugin to work inside content that is loaded through $('#element').load('mysourceFile.php'); If I use the standard PHP method of including FCKEditor the editors (there are two on the page) are displayed, however when the form is submited (using

[jQuery] Select range of table rows

2007-08-29 Thread Stuart
I'm trying to figure out an efficient way to select a range of table rows. What I'd like to do is select perhaps rows 11 through 19. I want to have the selector put the desired rows into the jquery object instead of grabbing all rows and looping through them to operate only on the ones I want.

[jQuery] Re: Validation by Jörn Zaefferer - errorPla cement confusion

2007-08-29 Thread Feed
Jörn, did you get to this issue? Sorry to bother you, but currently I had to disable validation from my forms because of this bug in IE6, I really want to use it in my project, it is awesome. Thanks in advance. On Aug 27, 4:53 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote: Jörn Zaefferer schrieb:

[jQuery] Re: How to add content here?

2007-08-29 Thread Michael Geary
My favorite way to do this is to take advantage of the fact that the the script tag is the last one in the document at the time that it's executed. This works with inline scripts as well as .js files. Try pasting this code into the body of a test document: Insert text here: { script

[jQuery] Re: Select range of table rows

2007-08-29 Thread Benjamin Sterling
Stuart, in 1.1.4 you have the slice() method and you can using it like $('#myTable tr').slice(firstRow, lastRow); keeping in mind that count starts with 0. I am working on a plugin that is using it: http://benjaminsterling.com/experiments/jsGalScroll/common/js/jqGalScroll.jsline 20 and 30. On

[jQuery] Re: Select range of table rows

2007-08-29 Thread Klaus Hartl
Stuart wrote: I'm trying to figure out an efficient way to select a range of table rows. What I'd like to do is select perhaps rows 11 through 19. I want to have the selector put the desired rows into the jquery object instead of grabbing all rows and looping through them to operate only on

[jQuery] Re: Select range of table rows

2007-08-29 Thread Stuart
Yeah.I think I remember reading about the slice method in the change log. I am using 1.1.4 so I should be set. The API doesn't list it yet so thanks for the code snippet. Thanks Benjamin! On Aug 29, 11:58 am, Benjamin Sterling [EMAIL PROTECTED] wrote: Stuart, in 1.1.4 you have the slice()

[jQuery] Re: Select range of table rows

2007-08-29 Thread Benjamin Sterling
Np, glad I can help. On 8/29/07, Stuart [EMAIL PROTECTED] wrote: Yeah.I think I remember reading about the slice method in the change log. I am using 1.1.4 so I should be set. The API doesn't list it yet so thanks for the code snippet. Thanks Benjamin! On Aug 29, 11:58 am, Benjamin

[jQuery] Re: I can't specify the photos width and height

2007-08-29 Thread Justin Sepulveda
http://sorgalla.com/projects/jcarousel/#Configuration itemwidth and itemheight aren't properties of this plugin? On Aug 29, 6:27 am, Benjamin Sterling [EMAIL PROTECTED] wrote: Omar, Is there a live version we can have a look at? On 8/29/07, Omar101 [EMAIL PROTECTED] wrote: Hi, I

[jQuery] Re: Select range of table rows

2007-08-29 Thread Benjamin Sterling
Klaus, you are correct. Had a hard time keeping it straight last night, but if you want to start at the 11th row, you would start at 10 and if you wanted to end at the 19th row, you would use 18. On 8/29/07, Klaus Hartl [EMAIL PROTECTED] wrote: Stuart wrote: I'm trying to figure out an

[jQuery] Re: AJAX GetElementByID problem

2007-08-29 Thread Glen Lipka
Where is the jQuery? Glen On 8/29/07, Kevin [EMAIL PROTECTED] wrote: Hi All, I'm trying to use an ajax call to call a 2nd page which uses a getElementByID to set a div's content on that page. If I just try to call the 2nd page, I get a js error that I can't run the getElementByID

[jQuery] Re: AJAX and Http Response Codes

2007-08-29 Thread Pops
On Aug 28, 10:30 pm, oravecz [EMAIL PROTECTED] wrote: Is there a more raw form of .ajax (or get, .post) that will expose the XHR method to the success (or error) handler? The current XHR protocol only has a nreadystatechange handler. I'm not up to par on how the W3.ORG working groups

[jQuery] [OT] NEWS: AjaxRain Updates

2007-08-29 Thread Karl Swedberg
Hey everyone, Looks like ajaxrain.com has gone through some changes, with a bunch of new features: * Storing favorites * Comments * Voting on entries * Date that a submission was posted * Enhanced search * Expansion into posting RIA components based on SilverLight

[jQuery] Re: [OT] NEWS: AjaxRain Updates

2007-08-29 Thread Tane Piper
And out of those 600 submissions, the highest percentage of submissions are for jQuery with well over 100 plugins and scripts available - beating the nearest library by miles :) On 29/08/2007, Karl Swedberg [EMAIL PROTECTED] wrote: Hey everyone, Looks like ajaxrain.com has gone through some

[jQuery] ie lost selection in textarea

2007-08-29 Thread Amir.Mamedov
use 2 plugins fieldSelection and jqModal how save selected state of textarea when i lost focus on field and revert when i need to use them?

[jQuery] Can get the jqUploader Flash swf to appear in IE7 - ActiveX workaround won't work

2007-08-29 Thread reto
The Demo doesn't work either in IE7. http://www.pixeline.be/experiments/jqUploader/ I have tried: 1.jquery uncompressed (Doesn't the problem only occurs with the compressed version? 2.query compressed with and without the patch If the plug in doesn't work in IE7 it is basically useless.

[jQuery] Re: how to add jQ$ to be same as $ ?

2007-08-29 Thread Max
that's very nice. thanks. On Aug 29, 10:24 pm, David Duymelinck [EMAIL PROTECTED] wrote: You can use the noConfict method for that: http://docs.jquery.com/API/1.1.2/Core#.24.noConflict.28.29 As of 1.1.4 you can add the jquery functionality to your current library using the argument true

[jQuery] Re: .value= / .val()

2007-08-29 Thread Enrico
thank you mike, for your answer...now i understand it. best wishes, Enrico

[jQuery] jQuery 1.1.4 incompatible with Interface 1.2

2007-08-29 Thread henry
When I use Sortables with fx:n , Firefox firebug output: -- jQuery.easing[options.easing] is not a function z.now = jQuery.easing[options.easing](p, n, firstNum, (lastNum- firstNum, options.durations); jquery.js (line 5214) -- According to the following thread, this bug

[jQuery] Re: null vs Vriables containing null

2007-08-29 Thread Michael Geary
From: Pops This might be slightly off topic, a javascript script question, but its being applied to jQuery. :-) Ok, there is a different in other languages when you do this: var p = null; xyz(null); xyx(p); It depends on the function prototype and how a

[jQuery] Re: How do child selectors work in jQuery?

2007-08-29 Thread Jeroen Coumans
Thanks for the explanation, that makes sense. But this is not how the CSS spec has it defined. You can see that in my test file where the CSS rule is only applied to the top list items. The question is; is the jQuery behaviour a bug or a feature? And if it's a feature, it should be documented.

[jQuery] Re: null vs Vriables containing null

2007-08-29 Thread Pops
Thanks mike On Aug 29, 3:21 pm, Michael Geary [EMAIL PROTECTED] wrote: From: Pops This might be slightly off topic, a javascript script question, but its being applied to jQuery. :-) Ok, there is a different in other languages when you do this: var p = null;

[jQuery] Re: How to use Form Plugin and ValidationAide Plugin

2007-08-29 Thread Jörn Zaefferer
Massimiliano Marini schrieb: I manage my form with this Form Plugin code: $(document).ready(function() { $('#f1').ajaxForm(function() { target: '#response', success: function() { $('#response').fadeIn('slow'); } }); Maybe it help, the call

[jQuery] Re: How do child selectors work in jQuery?

2007-08-29 Thread Brandon Aaron
Actually it works this way in the CSS Spec also and your test file proves it. Just use this selector instead of your other selector: #test li a -- Brandon Aaron On 8/29/07, Jeroen Coumans [EMAIL PROTECTED] wrote: Thanks for the explanation, that makes sense. But this is not how the CSS

[jQuery] Re: Validation by Jörn Zaefferer - errorPla cement confusion

2007-08-29 Thread Jörn Zaefferer
Feed schrieb: Jörn, did you get to this issue? Sorry to bother you, but currently I had to disable validation from my forms because of this bug in IE6, I really want to use it in my project, it is awesome. Thanks in advance. No, I haven't got around to it. Any help on the actual source of

[jQuery] Re: How do child selectors work in jQuery?

2007-08-29 Thread Brandon Aaron
Whoops :) that should be: #test li a That will only select the direct a tags of the LI. Previously you where selecting all A tags of the LI. Even the A tags within the other child elements of the LI. -- Brandon Aaron On 8/29/07, Brandon Aaron [EMAIL PROTECTED] wrote: Actually it works

[jQuery] Re: $.load(url) and IE fails to find CSS/JS

2007-08-29 Thread John Napiorkowski
--- Michael Lo [EMAIL PROTECTED] wrote: Try this $.get('page.html',function(data){ ($('#target').html(data); }); Michael The problem seems to be that IE strips script and style tags on incoming with the xmlrequestobject and firefox doesn't... I'm shocked that this issue isn't noticed

[jQuery] Re: [OT] NEWS: AjaxRain Updates

2007-08-29 Thread Karl Swedberg
Cool! And, as has been noted here before, ajaxrain.com itself is powered by jQuery. --Karl On Aug 29, 2007, at 2:49 PM, Tane Piper wrote: And out of those 600 submissions, the highest percentage of submissions are for jQuery with well over 100 plugins and scripts available - beating the

[jQuery] jQuery form, invalid success label?

2007-08-29 Thread Steve Finkelstein
Hi, Firebug is reporting success: is an invalid label with the following code: $(document).ready(function() { // bind 'form2' and provide a simple callback function $('#form2').ajaxForm(function() { // Server should send data back in json encoding dataType:'json',

[jQuery] unsubscribe

2007-08-29 Thread carl
unsubscribe

[jQuery] Re: like 'isset'...determining is something exists on the page

2007-08-29 Thread Karl Rudd
The .is() function only tests the first element of a jQuery object. What you want to do is filter the list and see if there's anything in it after the filter (or a normal select via $()). For your example: if ( $('a#f_' + ide).siblings().filter('img').length ) { // do this action } else {

[jQuery] Re: $.load(url) and IE fails to find CSS/JS

2007-08-29 Thread Shelane
Actually, this has been discussed quite a bit. http://groups.google.com/group/jquery-en/browse_thread/thread/6722e380538892b9/ I did manage to get scripts working properly in IE, with some trick that John Resig told me to try. Look at the code I have in my examples pack:

[jQuery] DOM problems with jQuery's Form Plugin

2007-08-29 Thread Steve Finkelstein
Hi, The following code works: $(document).ready(function() { // bind 'form2' and provide a simple callback function $('#form2').ajaxForm(function() { alert(DEBUG Test); }); }); However the following does not: $(document).ready(function() { // bind

[jQuery] Re: Validation by Jörn Zaefferer - errorPla cement confusion

2007-08-29 Thread Feed
Jörn, the problem is simple: using .parent().parent() in errorPlacement breaks the code in IE6. For example, imagine a TABLE with 2 cols and 2 rows. errorPlacement: function(error, element) { error.appendTo( element.parent().parent().css('backgroundColor','#00') ); } In FIREFOX the TR

[jQuery] Re: [OT] NEWS: AjaxRain Updates

2007-08-29 Thread Tane Piper
I'd like to think that is just shows how big and creative the jQuery community is :) On 8/29/07, Benjamin Sterling [EMAIL PROTECTED] wrote: Hmmm... bias maybe? :) On 8/29/07, Karl Swedberg [EMAIL PROTECTED] wrote: Cool! And, as has been noted here before, ajaxrain.com itself is

[jQuery] Re: unsubscribe

2007-08-29 Thread Klaus Hartl
Rey Bango wrote: Carl, you need to go to your Google Groups page and unsubscribe there. Rey It'll probably also work like subscribing. Send a mail to [EMAIL PROTECTED] --Klaus

[jQuery] Ajax Authentication Question

2007-08-29 Thread Pops
I'm pulling my hair on this one. It might not be a jQuery issue but just the BROWSER issue. But since I am planning to use jQuery, the issue applies to it as well. First, this is under FIREFOX only. I don't see this behavior with IE and OPERA. But I think maybe it may something by FF design

[jQuery] Re: How do child selectors work in jQuery?

2007-08-29 Thread Jeroen Coumans
You're right. I've adjusted my test case slightly and tested in more browsers. Apparently, Safari put me on the wrong track - it's the only browser that handles it the way I expected it to (and the only browser I checked in). Thanks a lot, this was a good learning experience for me! Jeroen On

[jQuery] Re: DOM problems with jQuery's Form Plugin

2007-08-29 Thread Steve Finkelstein
Actually AgentScorpion helped me out on IRC .. here was the issue: $('#form2').ajaxForm({ target: '#container', type: 'post' }); I was trying to send ajaxForm a function with parameters ... all is well now, thanks. :-) On 8/29/07, Josh Nathanson [EMAIL PROTECTED] wrote: Hi Steve, Make sure

[jQuery] The Mitchies. Rating the Best GUI Plugins

2007-08-29 Thread Mitch
The Mitchies. Rating the Best GUI Plugins My interface is an example of what a novice non programmer can do using jQuery and a number of its best plugins. The goal was to build a GUI that contained a large number of web 2.0 features, meaning controls that gave a desktop experience inside the

[jQuery] Re: IE6 ajax oddity

2007-08-29 Thread westamastaflash
Theo, your link fixed my problem as well. It seems that IE 6 sometimes wants a few carriage returns in served JSON content when it is parsed. Thanks! Theo Skye wrote: Also, check this post on Remy Sharp's blog: http://remysharp.com/2007/01/16/broken-ajax-nothing-coming-back/ Cheers,

[jQuery] Re: Can get the jqUploader Flash swf to appear in IE7 - ActiveX workaround won't work

2007-08-29 Thread Alexandre Plennevaux
I've looked and tried many things, but i just cant seem to find what's making IE choke on this. Does anybody has a good tip to track down what's wrong? As far as i can see, the issue seems related to the options, because if i don't overwrite any options in my function call, then it works fine.

[jQuery] Re: Ajax Authentication Question

2007-08-29 Thread Pops
Ok, this seems to be a know issue with FireFox. I found various indirect articles: http://lists.macosforge.org/pipermail/webkit-unassigned/2006-March/006196.html http://lullabiesincode.blogspot.com/2007/02/problem-with-firebug-and-http.html Even one that says FireBug might be the issue:

[jQuery] Re: Can get the jqUploader Flash swf to appear in IE7 - ActiveX workaround won't work

2007-08-29 Thread Alexandre Plennevaux
Nevermind, i found a trailing comma... It seems to solve the issue -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alexandre Plennevaux Sent: jeudi 30 août 2007 0:53 To: jquery-en@googlegroups.com Subject: [jQuery] Re: Can get the jqUploader

[jQuery] Re: The Mitchies. Rating the Best GUI Plugins

2007-08-29 Thread Karl Swedberg
Mitch, Your bird search looks fantastic! Congratulations on an excellent job. One sad note about the jTip: In FF Mac, the scrollbars of div id=match poke through the tooltip when it is shown. I don't know of any workaround for this issue, but maybe somebody else does? If I recall

[jQuery] Re: Graceful degradation (Safari 2)

2007-08-29 Thread Karl Rudd
If you're using jQuery 1.1.3 or later you can test for the version of Safari really easily: if ( $.browser.safari parseFloat($.browser.version) 2 ) { // Do stuff for Safari version 2 } Karl Rudd On 8/29/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I love jquery, the only issue I have

[jQuery] Re: Graceful degradation (Safari 2)

2007-08-29 Thread Brandon Aaron
The Safari version is actually the WebKit build number. Which is 413 for Safari 2. -- Brandon Aaron On 8/29/07, Karl Rudd [EMAIL PROTECTED] wrote: If you're using jQuery 1.1.3 or later you can test for the version of Safari really easily: if ( $.browser.safari

[jQuery] Select all elements except the first and the 3 last ones?

2007-08-29 Thread Felix Geisendörfer
Hey folks, I need to select all but the first and the 3 last rows of a table. I found out that the following works: $('table tr:gt(0):not(:last:last:last)') Whoever it does not seem particular elegant to me and jQuery is always (!) elegant, so I'm wondering if one of you could come up with

[jQuery] Re: Select all elements except the first and the 3 last ones?

2007-08-29 Thread Joel Birch
Hi Felix, As of jQuery 1.1.4 there is a new slice() method which works similar to the JavaScript native Array.slice() method, except on jQuery objects. Therefore, I guess you could do something like: var $rows = $('table tr'); $rows.slice(1,$rows.length-3); I may not have calculated the slice

  1   2   >