Re: [jQuery] how to stop each iteration under each's function?

2006-11-01 Thread Jörn Zaefferer
Dave Methvin schrieb: but 'break;' won't stop the iteration of each, what should i do? Return false inside the function and it will stop. That was added recently but the docs weren't updated to reflect it. It's true that it was added at some point, but if I remember it correctly, it

Re: [jQuery] Patch: Set Content-Type of an AJAX request

2006-11-01 Thread Jörn Zaefferer
Hi Mark, could you please file this as a bug report? It keeps thing oraganized and me or another commiter can add it at some point. Thanks! -- Jörn Zaefferer http://bassistance.de ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] $(document).ready question

2006-11-01 Thread Jörn Zaefferer
Klaus Hartl schrieb: They are fired in the order they were created. Jörn, I think, we should add that to the documentation... True. Bug report, anyone? There is even a docs category :-) -- Jörn Zaefferer http://bassistance.de ___ jQuery

Re: [jQuery] Function to enumerate the querystring?

2006-11-01 Thread Luke Lutman
The attr() method returns a string, rather than the jQuery object, so you won't be able to chain it. You could modifiy the $.query function and pass in the value of q ... like so: jQuery.query = function(q) { var r = {}; q = q.replace(/^\?/,''); // remove the leading ?

Re: [jQuery] Plugin method question

2006-11-01 Thread Paul McLanahan
How cool... it sure does! I just tested the following code in IE7, FF 1.5.0.7 and Safari 1.3.2, and all I got was an alert box with the word Whatnot. script type=text/x-jquery-jsonalert(Was run as JS.)/script script type=text/x-jquery-json{accordion:false,stuff:Whatnot}/scriptdl

Re: [jQuery] Plugin method question

2006-11-01 Thread Jörn Zaefferer
Klaus Hartl schrieb: Paul, whenever you happen to be in Berlin I'll get you a beer (or two or three...). And Jörn as well! Heh. Just tell me if one of you gets to Cologne. Got plenty of beer here, too! :-) -- Jörn Zaefferer http://bassistance.de

Re: [jQuery] how to stop each iteration under each's function?

2006-11-01 Thread Rafael Santos
return false... works for me =P 2006/10/31, Dave Methvin [EMAIL PROTECTED]: but 'break;' won't stop the iteration of each, what should i do?Return false inside the function and it will stop. That was added recently but the docs weren't updated to reflect

Re: [jQuery] Plugin method question

2006-11-01 Thread John Resig
But perhaps I'm misunderstanding you. Do you mean for there to just be a JSON string inside the script tag? I've never used a script tag for anything other than to tell an interpreter to parse and run the script inside, be it javascript, php, VB or something like that. If you give it a

[jQuery] Deferring actions when DOM is ready

2006-11-01 Thread Jörn Zaefferer
Hi folks, an idea that struck me when reading the Plugin method question thread: Is it possible to implement a mechanism that automatically defers all jQuery actions to the DOM ready event? This would be of great use in cases like the one described in the mentioned thread. I think the need for

[jQuery] Getting the favicon of an iframe?

2006-11-01 Thread Dan Atkinson
Hey there! Last night, I wrote something really simple (and buggy) for my collegue, to demonstate how quickly one could write something fairly powerful in jQuery. The result was http://www.dan-atkinson.com/jQuery/jStatus/index.html this . I intend to flesh it out, but it was a demonstration of

Re: [jQuery] Function to enumerate the querystring?

2006-11-01 Thread Mark Gibson
Chris W. Parker wrote: On Tuesday, October 31, 2006 10:46 AM Luke Lutman said: Have a look at this recent thread :-) http://www.nabble.com/method-plugin-for-getting-query-string-vars--tf248 1232.html#a6919130 I read through this and tried to implement your first suggestion but I notice

Re: [jQuery] Ant task: with_plugins working?

2006-11-01 Thread Klaus Hartl
Jörn Zaefferer schrieb: Klaus Hartl schrieb: Yehuda Katz schrieb: Jorn made some modification to make it possible (I believe) to choose specific plugins. I think you need to use with_plugins as an optional MODIFIER now, so you could do ant docs with_plugins, or ant pack with_plugins.

Re: [jQuery] jQuery API and docs

2006-11-01 Thread Klaus Hartl
Jörn Zaefferer schrieb: Hi jQueryians, as discussed before, the jQuery API contains quite a lot of methods. The event shortcuts or one thing, another is single methods with optional parameters. Let's take slideDown() as an example. It has two paremters, speed and callback. There is one

[jQuery] Two problems with .fadeOut() / .fadeIn() effects.

2006-11-01 Thread Christopher Jordan
Hi folks, I've got a span tag that contains the label for a section of my screen. When the user clicks a checkbox, I'd like that text to fadeOut, change to some different text, and then fadeIn again. Part of my problem is that the text gets changed prior to the fade. The second part of my

Re: [jQuery] Plugin method question

2006-11-01 Thread Mark Gibson
Ⓙⓐⓚⓔ wrote: let's just use the informal type text/x-jquery-json that contains 1 js object or text/x-jquery-text for an unquoted string of chars and others... There is an official 'application/json' media type registered at IANA. http://www.iana.org/assignments/media-types/application/ and an

[jQuery] jQuery Safari

2006-11-01 Thread Roberto Ortelli
Hi all, I'm currently developping a huge web app for a swiss private banking using jQuery. I have to be sure that Safari 1.2 is compatible with what I'm doing and I have to be sure that jQuery is full compatible with this version of Safari. I've searched on the blog, google... and no found this

[jQuery] Find selectedIndex of selectoption

2006-11-01 Thread Khurshid MUROD
Hi, Does anybody know JQuery way of getting selectedIndex of a select In the code below I am getting all [select]s from #box, now I need to figure out what is selectedIndex for those selects. $(#box).filter(':select') Thanks ___

[jQuery] Extending $.extend to extend from multiple objects!

2006-11-01 Thread Mark Gibson
Hi, I'd like to suggest an enhancement to $.extend, to allow extending an object from multiple objects. This will allow a simple way for plugins to have a global set of default options: $.fn.plugin(options) { var options = $.extend({}, arguments.callee.defaults, options || {}); ... }

Re: [jQuery] Plugin method question

2006-11-01 Thread Jörn Zaefferer
Paul McLanahan schrieb: Do you guys do that? Yes! I actually didn't code any worth mentioning javascript before knowing jQuery, and I hadn't the slightest idea of DOM manipulation. Using CSS/XPath/Custom expressions is so much more natural. I think the other great thing about jQuery is it's

Re: [jQuery] Plugin method question

2006-11-01 Thread Jörn Zaefferer
Paul McLanahan schrieb: title=accordion:true,showSpeed:'slow',hideSpeed:'fast' I think the most natuaral way to describe that data is javascript itself. That is less error-prone then any kind of custom parser or whatever you and others here have already thought of. You may just want to make it

[jQuery] Why does $.get() work but not load()?

2006-11-01 Thread Chris W. Parker
Hello, Considering the following two statements: 1: $(div#one).load('numbers.php', {page: thisPage}); 2: $.get('numbers.php', {page: thisPage}, function(fileInput) { $(div#one).html(fileInput); }); Why does #2 work and #1 doesn't? As far as I know I'm using #1 correctly. The problem

Re: [jQuery] Oooh! These are pretty!

2006-11-01 Thread Dragan Krstic
2006/10/31, Alex Cook [EMAIL PROTECTED]: There are tons of scripts out there for this type of functionality. Flash can talk to _javascript_ and vice versa quite well nowadays, so getting a flash object (such as a compass) to follow your mouse via JS updating the flash object isn't

Re: [jQuery] Function to enumerate the querystring?

2006-11-01 Thread Klaus Hartl
Chris W. Parker schrieb: On Tuesday, October 31, 2006 10:46 AM Luke Lutman said: Have a look at this recent thread :-) http://www.nabble.com/method-plugin-for-getting-query-string-vars--tf248 1232.html#a6919130 I read through this and tried to implement your first suggestion but I

Re: [jQuery] ajax periodic refresh

2006-11-01 Thread Christopher Jordan
What's wrong with doing just what you've stated? Do a setInterval or a setTimeout. What else are you looking for? Chris Roy Kolak wrote: Hello, I have a question... I am looking for a way to refresh some content of a page every 3 seconds. Basically, I'm looking for a jquery way to do

Re: [jQuery] Plugin method question

2006-11-01 Thread Ⓙⓐⓚⓔ
Wow! we can be official! On 11/1/06, Mark Gibson [EMAIL PROTECTED] wrote: Ⓙⓐⓚⓔ wrote: let's just use the informal type text/x-jquery-json that contains 1 js object or text/x-jquery-text for an unquoted string of chars and others... There is an official 'application/json' media type

[jQuery] JQuery Button Contest Still Running

2006-11-01 Thread Rey Bango
Guys, Don't forget that the JQuery button contest is still going on and will end on November 3rd. That gives you two days to get your entries in! You can checkout the awesome work submitted by other supporters by going here: http://jquery.com/blog/2006/10/26/jquery-button-contest-many-prizes/

Re: [jQuery] Blurry Text using JQuery... But only in IE

2006-11-01 Thread Christopher Jordan
Klaus, This sounds like it could be the solution to a problem I'm having using fade. In IE when the text is bold, the fade animations have a bad effect on bolded text. I didn't think of it as being blurred or being rendered twice at slightly different starting points, but that could easily

Re: [jQuery] Access to flash object

2006-11-01 Thread Wil Stuckey
On 10/31/06, Sam Sherlock [EMAIL PROTECTED] wrote: UFO Version 3.30 is coming soon sneek peak at http://www.refunk.com/ufo/ufo.jsI'm actually working on a jQuery port of UFO 3.xI've got a working port of UFO 2.0 sans a few features that we did not need here. I would be willing to post it if

Re: [jQuery] Blurry Text using JQuery... But only in IE

2006-11-01 Thread Paul McLanahan
I had this IE bug crop up on a recent project. You have to set the background color of the element to which you are applying the fade. This is very unfortunate for me as I have the fade happening over a repeating background which is in a containing element. So I have no fix that will work save

Re: [jQuery] Oooh! These are pretty!

2006-11-01 Thread Dave Methvin
There are tons of scripts out there for this type of functionality. Flash can talk to JavaScript and vice versa quite well nowadays, so getting a flash object (such as a compass) to follow your mouse via JS updating the flash object isn't hard, but. why? Client pay to designer lot of

Re: [jQuery] Why does $.get() work but not load()?

2006-11-01 Thread Chris W. Parker
On Tuesday, October 31, 2006 1:57 PM Chris W. Parker said: 1: $(div#one).load('numbers.php', {page: thisPage}); 2: $.get('numbers.php', {page: thisPage}, function(fileInput) { $(div#one).html(fileInput); }); Why does #2 work and #1 doesn't? I found out why. Apparently I

Re: [jQuery] Function to enumerate the querystring?

2006-11-01 Thread Klaus Hartl
Luke Lutman schrieb: The attr() method returns a string, rather than the jQuery object, so you won't be able to chain it. You could modifiy the $.query function and pass in the value of q ... like so: jQuery.query = function(q) { var r = {}; q = q.replace(/^\?/,'');

Re: [jQuery] Oooh! These are pretty!

2006-11-01 Thread jyl
Something wrong with that page, at least if I hit it with IE. It shows a whole lot of weird characters... Anyone else see this or is it just IE7 idiocy? :) --Jacob There are tons of scripts out there for this type of functionality. Flash can talk to JavaScript and vice versa quite well

Re: [jQuery] Why does $.get() work but not load()?

2006-11-01 Thread jyl
Thats amazing.. I was just puzzling over the exact same problem. I switched all my code to use explicit get which is better anyways, because I want to update more than one DOM element with results returned from the server. Live and learn. What are the three places where we should look for docs?

Re: [jQuery] Find selectedIndex of selectoption

2006-11-01 Thread Paul McLanahan
I think what you're looking for is something like this:$(#box select).each(function(){ //this is now a select element to do with //what you will alert(this.selectedIndex); //or to get the currently selected value alert($(this).val()); });I don't know of a better way than that.Hope this

Re: [jQuery] ajax periodic refresh

2006-11-01 Thread Klaus Hartl
Roy Kolak schrieb: Hello, I have a question... I am looking for a way to refresh some content of a page every 3 seconds. Basically, I'm looking for a jquery way to do this: setInterval(call_refreshSentence(), 3000 ); Thanks, Roy Kolak Hey Roy, theres not much more to do than

Re: [jQuery] Creating New Content

2006-11-01 Thread Klaus Hartl
Nathan R. Yergler schrieb: I'm working on a project and want to add an input element to a page in response to a button click. I've figured out how to do this with $(...).after(input...), but would like to make use of a slideDown effect. I'm new to jQuery, but I *think* the way to do this is:

[jQuery] Is returned Javascript code actually executed?

2006-11-01 Thread jyl
Hi Everyone http://fjsoftllc.com/page.html Is my lame attempt to invoke a PHP via jQuery, and it works, except that the embedded script.../script element seems to have no effect, isnt executed. Any ideas? Thanks! --Jacob ___ jQuery mailing list

Re: [jQuery] Re-adjusting the height of page elements after loading AJAX content

2006-11-01 Thread Klaus Hartl
Sam Sherlock schrieb: There must be some CSS you're not telling us about. Otherwise, containers size themselves to their content. that turned out to be the slideDown effect. I called slideUp before loading the content. Then calculating the new height and then call slidedown.

[jQuery] Another simplification for Thickbox

2006-11-01 Thread Klaus Hartl
Hi jQuerians, a while back I posted an instruction of how to make Thickbox simpler and smoother by using fixed positioning. But that applied only to the box itself, not the overlay. There is still some overhead to compute the dimensions of the overlay depending on the state of the viewport.

Re: [jQuery] Why does $.get() work but not load()?

2006-11-01 Thread Klaus Hartl
[EMAIL PROTECTED] schrieb: Thats amazing.. I was just puzzling over the exact same problem. I switched all my code to use explicit get which is better anyways, because I want to update more than one DOM element with results returned from the server. Live and learn. What are the three

Re: [jQuery] ajax periodic refresh

2006-11-01 Thread roykolak
I'm thinking too hard... Sometimes I forget that jquery is not a replacement for javascript. Thanks Guys, Roy Klaus Hartl wrote: Roy Kolak schrieb: Hello, I have a question... I am looking for a way to refresh some content of a page every 3 seconds. Basically, I'm looking for a

Re: [jQuery] ajax periodic refresh

2006-11-01 Thread Klaus Hartl
roykolak schrieb: I'm thinking too hard... Sometimes I forget that jquery is not a replacement for javascript. Thanks Guys, Roy I forgot to mention, there's also a plugin called Heartbeat to do such stuff, if I remember correctly... -- Klaus

Re: [jQuery] Re-adjusting the height of page elements after loading AJAX content

2006-11-01 Thread Sam Sherlock
thanks Klaus!!On 01/11/06, Klaus Hartl [EMAIL PROTECTED] wrote: Sam Sherlock schrieb: There must be some CSS you're not telling us about. Otherwise, containers size themselves to their content. that turned out to be the slideDown effect. I called slideUp before loading the content.Then

Re: [jQuery] Function to enumerate the querystring?

2006-11-01 Thread Luke Lutman
Klaus Hartl wrote: That won't work for two reasons: $(this).attr('href') most likely returns a complete url, thus there is no leading ?. Oops! Yes, of course. Secondly if you have a parameter like number=0, it won't be put into the hash because after parseFloat val == 0 which evaluates to

Re: [jQuery] Two problems with .fadeOut() / .fadeIn() effects.

2006-11-01 Thread Brandon Aaron
On 11/1/06, Christopher Jordan [EMAIL PROTECTED] wrote: I've got a span tag that contains the label for a section of my screen. When the user clicks a checkbox, I'd like that text to fadeOut, change to some different text, and then fadeIn again. Part of my problem is that the text gets

Re: [jQuery] Is returned Javascript code actually executed?

2006-11-01 Thread Klaus Hartl
[EMAIL PROTECTED] schrieb: Hi Everyone http://fjsoftllc.com/page.html Is my lame attempt to invoke a PHP via jQuery, and it works, except that the embedded script.../script element seems to have no effect, isnt executed. Any ideas? Thanks! --Jacob Hi Jacob, automatic evaluation

Re: [jQuery] Deferring actions when DOM is ready

2006-11-01 Thread John Resig
On 10/31/06, Jörn Zaefferer [EMAIL PROTECTED] wrote: Hi folks, Due to performance issues I wouldn't want that auto-defer mechanism in the core, but it would be a great help for starters. After seeing John's debug plugin, I think it should be possible to implement this. I'm just not sure if

Re: [jQuery] jQuery Metadata Plugin

2006-11-01 Thread Blair McKenzie
Very nice!BlairOn 11/1/06, John Resig [EMAIL PROTECTED] wrote: Hi Everyone -I just finished reading over the massive thread that discussesembedding metadata into elements for later extraction. Well, I justfinished a plugin to handle all three metadata-extraction methods. You can see a demo here:

Re: [jQuery] ajax periodic refresh

2006-11-01 Thread Andy Matthews
There is a jHeartBeat plugin that will do what you need. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: [jQuery] Why does $.get() work but not load()?

2006-11-01 Thread Aaron Heimlich
On 11/1/06, Klaus Hartl [EMAIL PROTECTED] wrote: load does both get and post, kind of autodetecting depending on thearguments passed in...:Why does load() do a POST? You're not submitting any data to the server, only asking for some. ___ jQuery mailing

Re: [jQuery] Is returned Javascript code actually executed?

2006-11-01 Thread jyl
OK so thats a shame :). I'd have hoped that get would work, since I need to do a get (I want to keep the flexibility of applying a function to the returned data and updating more than one element) and also having the embedded javascript inside HTML being executed Is this a feature that get

Re: [jQuery] ajax periodic refresh

2006-11-01 Thread Brandon Aaron
On 11/1/06, Andy Matthews [EMAIL PROTECTED] wrote: There is a jHeartBeat plugin that will do what you need. http://www.jasons-toolbox.com/JHeartbeat/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] ajax periodic refresh

2006-11-01 Thread jyl
On 11/1/06, Andy Matthews [EMAIL PROTECTED] wrote: There is a jHeartBeat plugin that will do what you need. http://www.jasons-toolbox.com/JHeartbeat/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ Comment on the

Re: [jQuery] ajax periodic refresh

2006-11-01 Thread Rey Bango
JHeatbeat I believe can do what you're asking for: http://www.jasons-toolbox.com/JHeartbeat/ Rey... Roy Kolak wrote: Hello, I have a question... I am looking for a way to refresh some content of a page every 3 seconds. Basically, I'm looking for a jquery way to do this:

Re: [jQuery] Why does $.get() work but not load()?

2006-11-01 Thread Klaus Hartl
Aaron Heimlich schrieb: On 11/1/06, *Klaus Hartl* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: load does both get and post, kind of autodetecting depending on the arguments passed in...: Why does load() do a POST? You're not submitting any data to the server, only asking

Re: [jQuery] Is returned Javascript code actually executed?

2006-11-01 Thread jyl
I verified that the .load method does execute the embedded Javascript, it works in IE7 and FF. Now, how do I get access to the loaded value.. If I could have that then fine, I can switch to using .load... --Jacob [EMAIL PROTECTED] schrieb: Hi Everyone http://fjsoftllc.com/page.html Is my

Re: [jQuery] jQuery Metadata Plugin

2006-11-01 Thread Jörn Zaefferer
John Resig schrieb: Hi Everyone - I just finished reading over the massive thread that discusses embedding metadata into elements for later extraction. Well, I just finished a plugin to handle all three metadata-extraction methods. You can see a demo here: (Uses Firebug debug statements!)

Re: [jQuery] Is returned Javascript code actually executed?

2006-11-01 Thread Klaus Hartl
[EMAIL PROTECTED] schrieb: OK so thats a shame :). I'd have hoped that get would work, since I need to do a get (I want to keep the flexibility of applying a function to the returned data and updating more than one element) and also having the embedded javascript inside HTML being executed

Re: [jQuery] Another simplification for Thickbox

2006-11-01 Thread Jörn Zaefferer
Klaus Hartl schrieb: If you like I can put *all* the changes together again or blog about it. Please! A blog entry would be even better, it's then easier bookmarkable :-) -- Jörn Zaefferer http://bassistance.de ___ jQuery mailing list

Re: [jQuery] Ant task: with_plugins working?

2006-11-01 Thread Yehuda Katz
The problem with that line is that if a user has checked out the svn without the plugins directory, the ant task fails.On 11/1/06, Klaus Hartl [EMAIL PROTECTED] wrote:Jörn Zaefferer schrieb: Klaus Hartl schrieb: Yehuda Katz schrieb: Jorn made some modification to make it possible (I believe) to

Re: [jQuery] jQuery API and docs

2006-11-01 Thread Jörn Zaefferer
Klaus Hartl schrieb: I found another little glitch with characters in inline documentation. Unless you do not escape it as amp; the XML for the generated docs is ill-formed. But that means, that the inline documentatin is misleading, for example for the form plugin formSerialize method:

Re: [jQuery] Why does $.get() work but not load()?

2006-11-01 Thread Aaron Heimlich
On 11/1/06, Klaus Hartl [EMAIL PROTECTED] wrote: Aaron, not if you pass in data as a second argument:$(#feeds).load(feeds.html, {test: true});I'm having a little trouble understanding why you want to even do a POST using load() when query variables would do just fine. An example would be greatly

Re: [jQuery] Ant task: with_plugins working?

2006-11-01 Thread Klaus Hartl
Yehuda Katz schrieb: The problem with that line is that if a user has checked out the svn without the plugins directory, the ant task fails. I see. I'm already checking the Ant documentation for something like a if command... That should be doable with Ant. -- Klaus

Re: [jQuery] jQuery API and docs

2006-11-01 Thread Klaus Hartl
Jörn Zaefferer schrieb: Klaus Hartl schrieb: I found another little glitch with characters in inline documentation. Unless you do not escape it as amp; the XML for the generated docs is ill-formed. But that means, that the inline documentatin is misleading, for example for the form plugin

Re: [jQuery] Two problems with .fadeOut() / .fadeIn() effects.

2006-11-01 Thread Christopher Jordan
Hi folks, I just tried something I should have before I emailed the list. I tried this code in Fire Fox. Here's the new information I got from doing that: 1. The problem with the text looking bad after applying the fade effect doesn't occur in FF. (stoopid IE :o( ) 2. I can basically

Re: [jQuery] Is returned Javascript code actually executed?

2006-11-01 Thread jyl
Thanks, thats what I'll do. The documentation does not explicitly guide you to use .ajax in preference to the other functions, but a second read (plus your email) made it clear thats the way to go. --Jacob [EMAIL PROTECTED] schrieb: OK so thats a shame :). I'd have hoped that get would work,

Re: [jQuery] Why does $.get() work but not load()?

2006-11-01 Thread jyl
On 11/1/06, Klaus Hartl [EMAIL PROTECTED] wrote: Aaron, not if you pass in data as a second argument: $(#feeds).load(feeds.html, {test: true}); I'm having a little trouble understanding why you want to even do a POST using load() when query variables would do just fine. An example would

Re: [jQuery] ajax periodic refresh

2006-11-01 Thread Will Jessup
Klaus , There is. It uses the if-modified request header thingamajig. I have an example i'm going to use on kevo if needed as well Will roykolak schrieb: I'm thinking too hard... Sometimes I forget that jquery is not a replacement for javascript. Thanks Guys, Roy I forgot to

Re: [jQuery] Why does $.get() work but not load()?

2006-11-01 Thread Chris W. Parker
On Wednesday, November 01, 2006 11:11 AM [EMAIL PROTECTED] said: What are the three places where we should look for docs? Well there's: 1. Visual jQuery http://www.visualjquery.com * 2. API Documentation http://jquery.com/api/ * 3. The third place are the wiki pages that can be found on the

Re: [jQuery] Function to enumerate the querystring?

2006-11-01 Thread Chris W. Parker
On Wednesday, November 01, 2006 11:59 AM Klaus Hartl said: See here for a demo with these things fixed: http://stilbuero.de/demo/query.html?foo=bar 404 Chris. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Function to enumerate the querystring?

2006-11-01 Thread Klaus Hartl
Chris W. Parker schrieb: On Wednesday, November 01, 2006 11:59 AM Klaus Hartl said: See here for a demo with these things fixed: http://stilbuero.de/demo/query.html?foo=bar 404 http://stilbuero.de/demo/jquery/query.html?foo=bar ___ jQuery

Re: [jQuery] Another simplification for Thickbox

2006-11-01 Thread Paul McLanahan
I ran into a Thickbox problem where the overlay would not grow taller than the content. Perhaps I had an older version, or something about the jQuery library changed between when the version I have was written and version 1.0.3. I solved it by writing a small function that takes advantage of the

Re: [jQuery] Getting the favicon of an iframe?

2006-11-01 Thread Paul Chaplin
Hi Dan, Dan Atkinson wrote: Anyway, what I really wanted to do, was do a search of the iframe content for a favicon.ico link, and use it (or the link) as the icon for the floating window so that it would look a little nicer. Sure, it's a vanity thing, but I wasn't sure if it could have been

[jQuery] Creating New Content

2006-11-01 Thread Nathan R. Yergler
I'm working on a project and want to add an input element to a page in response to a button click. I've figured out how to do this with $(...).after(input...), but would like to make use of a slideDown effect. I'm new to jQuery, but I *think* the way to do this is: 1) create the element 2) call

Re: [jQuery] Function to enumerate the querystring?

2006-11-01 Thread Mark Gibson
Chris W. Parker wrote: On Tuesday, October 31, 2006 10:46 AM Luke Lutman said: Have a look at this recent thread :-) http://www.nabble.com/method-plugin-for-getting-query-string-vars--tf248 1232.html#a6919130 I read through this and tried to implement your first suggestion but I notice

Re: [jQuery] Getting the favicon of an iframe?

2006-11-01 Thread Yehuda Katz
The drag/drop action is very choppy in FF Mac. Haven't tested in other browsers.-- YehudaOn 11/1/06, Dan Atkinson [EMAIL PROTECTED] wrote:Hey there!Last night, I wrote something really simple (and buggy) for my collegue, to demonstate how quickly one could write something fairly powerful in

[jQuery] Match all elements of class x, but exclude those of class y?

2006-11-01 Thread Peter Mounce
Hi Is there a hasClass(cssClass, isHas) function? I want to do thing A to all elements of class X, and thing B to all elements that _dont_ have class X. isHas would be a parameter that says hasClass or doesNotHaveClass. Eg: var s = getState(linkId); // rollovers and up/down

Re: [jQuery] jQuery with Drupal (Was: Re: input.setAttribute is not a function)

2006-11-01 Thread digital spaghetti
Forgot to say, the Farbtastic colour picker has been integrated as a core feature into Drupal's new default theme, it allows you to set various colours on the fly and can be seen working here: http://acko.net/garland/?q=admin/build/themes/settings/garland Tane On 11/1/06, digital spaghetti

Re: [jQuery] Match all elements of class x, but exclude those of class y?

2006-11-01 Thread John Resig
Peter - To exclude something from an expression you can do something like: $(div.oneclass:not(.thisclass)) That'll find all the divs that have oneclass but not thisclass. Same works for IDs and such too: $(div.oneclass:not(#someid)) --John On 11/1/06, Peter Mounce [EMAIL PROTECTED] wrote:

Re: [jQuery] Match all elements of class x, but exclude those of class y?

2006-11-01 Thread John Resig
Is there a hasClass(cssClass, isHas) function? I want to do thing A to all elements of class X, and thing B to all elements that _don't_ have class X. isHas would be a parameter that says hasClass or doesNotHaveClass. Oops - also, there's no hasClass(), but there is .is(), for example: if (

Re: [jQuery] Why does $.get() work but not load()?

2006-11-01 Thread Aaron Heimlich
On 11/1/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: A couple of points come to mind:* Suppose the URL already has a query string and you want to add a fewmore arguments... Better to let jQuery deal with the parsing and decidinghow to send it.* Same argument but this time you want the variable

Re: [jQuery] $(form.elements) fails in Safari

2006-11-01 Thread Paul McLanahan
Have you tried using...$(input,select,textarea,theForm).each(someFunction);That's a more jQuery way of doing that in my opinion. That should also allow jQuery to handle more of the cross-browser issues than passing it a node list (or whatever the form.elements object is).On 10/31/06, Pascal

Re: [jQuery] jQuery Metadata Plugin

2006-11-01 Thread Ⓙⓐⓚⓔ
of course the data option is easiest but will break validation the class works too, but what if you define a css class called some or even data? script is the most verbose but will work every time and with type=application/json it sure looks like the best solution. On 11/1/06, Jörn Zaefferer

[jQuery] form validation w/ simple ajax

2006-11-01 Thread bmsterling
Hey all, I am working on some form validation and all works fine except on point. what I am trying to do is check if an email address is already in the database, I get the connection and the function gets a return but I can't get the return to return true. Not sure if this making sense so here

Re: [jQuery] jQuery Metadata Plugin

2006-11-01 Thread Erik Beeson
In the case of adding metedata to divs, are these approaches any better than just using nested hidden spans?--ErikOn 10/31/06, John Resig [EMAIL PROTECTED] wrote:Hi Everyone -I just finished reading over the massive thread that discusses embedding metadata into elements for later extraction.

Re: [jQuery] jQuery with Drupal (Was: Re: input.setAttribute is not a function)

2006-11-01 Thread digital spaghetti
I can confirm that Drupal 5.x has been released as beta, and contains jQuery as it's main JS library: http://drupal.org/drupal-5.0-beta1 The addition of jQuery has significantly altered drupal.js: 1. All drupal.js functions are namespaced with Drupal. For example, if you called

Re: [jQuery] Oooh! These are pretty!

2006-11-01 Thread Alex Cook
Turning this thread into a MasterCard commercial is even more priceless ;) From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dragan Krstic Sent: Tuesday, October 31, 2006 1:47 PM To: jQuery Discussion. Subject: Re: [jQuery] Oooh! These are pretty!

[jQuery] Table column resize and drag-n-drop columns

2006-11-01 Thread Rich Manalang
Has anyone done either of these with jQuery? If so, can you post any examples?Thanks!Rich ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Why does $.get() work but not load()?

2006-11-01 Thread Blair McKenzie
Because a get request is more restrictive (character codes in the url, maximum request size) than post. Therefore, by default, the relatively permissive hash is converted to post format. Load is a generic solution. If you want more control of your request, you need to use a more specific function.

Re: [jQuery] Blurry Text using JQuery... But only in IE

2006-11-01 Thread Jason Levine
A bit delayed, but thanks. That did the trick. :-) -Jason Levine - Original Message From: Klaus Hartl [EMAIL PROTECTED] To: jQuery Discussion. discuss@jquery.com Sent: Tuesday, October 24, 2006 2:31:06 PM Subject: Re: [jQuery] Blurry Text using JQuery... But only in IE Jason Levine

Re: [jQuery] jQuery Metadata Plugin

2006-11-01 Thread Ⓙⓐⓚⓔ
it was pointed out that hidden text fields may prove problematic to non-visual presentation. On 11/1/06, Erik Beeson [EMAIL PROTECTED] wrote: In the case of adding metedata to divs, are these approaches any better than just using nested hidden spans? --Erik On 10/31/06, John Resig [EMAIL

Re: [jQuery] form validation w/ simple ajax

2006-11-01 Thread Blair McKenzie
I'm pretty sure the ajax functions don't actually use the return values of the callback functions. Were you expecting something to happen when you return false?BlairOn 11/2/06, bmsterling [EMAIL PROTECTED] wrote: Hey all,I am working on some form validation and all works fine except on point.what

Re: [jQuery] Access to flash object

2006-11-01 Thread Guntur N. Sarwohadi
Ooh.. me want jquery port of UFO 3.x.. thank you :)[g]On 11/2/06, Wil Stuckey [EMAIL PROTECTED] wrote:On 10/31/06, Sam Sherlock [EMAIL PROTECTED] wrote: UFO Version 3.30 is coming soon sneek peak at http://www.refunk.com/ufo/ufo.js I'm actually working on a jQuery port of UFO 3.xI've got a

Re: [jQuery] jQuery Metadata Plugin

2006-11-01 Thread John Resig
of course the data option is easiest but will break validation the class works too, but what if you define a css class called some or even data? I don't follow. The class technique doesn't break existing addClass/removeClass functionality - everything works as you might expect. script is the

[jQuery] What is passed to the functions in .ajax?

2006-11-01 Thread jyl
When you use .ajax you can specify a lot of stuff like the completion function, the error function, and the success function. This page http://jquery.com/docs/AJAXModule/ does not say, however, what arguments are passed to each function. Thanks for any further docs or help, or examples...

Re: [jQuery] jQuery Metadata Plugin

2006-11-01 Thread Ⓙⓐⓚⓔ
I don't think it will break jquery. but by adding code into a class css will still treat each word as a class and apply that style, for your example, it would invoke a class called some or a class called data. On 11/1/06, John Resig [EMAIL PROTECTED] wrote: of course the data option is easiest

Re: [jQuery] jQuery Metadata Plugin

2006-11-01 Thread jyl
A short explanation of this module and what it is for, appreciated. This is way over my head but seems to be very useful if I understand it. Is it a way to add a data= attribute to any HTML construct and then have jquery give JS code access to the content of that attribute? --Jacob of

[jQuery] when checkbox is checked

2006-11-01 Thread twothirty
i'm having a problem with checkbox values (i've read through the discussion list and it's helped but not enough to get this working). http://bdm.twothirty.com/ what i want to do is this: IF checkbox is checked, it shows div.blurb for the blurb underneath the checkbox, as well as it shows some

Re: [jQuery] jQuery Metadata Plugin

2006-11-01 Thread kenton.simpson
I don't remember the original thread, but a developer wanted a way to allow designers to pass arguments to a jQuery plugin to create a widget. Which was activated by assigning an agreed upon class name. -- View this message in context:

  1   2   >