[jQuery] Re: How do I return false if no elements found using XPath?

2007-07-05 Thread Ganeshji Marwaha
cool technique... -GTG On 7/4/07, Klaus Hartl [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I am trying to find a particular parentElement without knowing the ID. If not I need to find a different element. SO: var parentXpath = [EMAIL PROTECTED]@id=+obj.id+]/.. [EMAIL PROTECTED];

[jQuery] Re: how to animate two divs' position smoothly at the same time

2007-07-05 Thread eddy
Thank you! Could you tell me how to do another event while animate? On 7月5日, 下午12时12分, Ganeshji Marwaha [EMAIL PROTECTED] wrote: select both and animate... like this... $(#first, #second).animate(...); I believe john once said that, the same timer is used for all the elements if specified

[jQuery] Re: PACKER3 issues

2007-07-05 Thread Gilles (Webunity)
Thanx for sharing Will! On Jul 5, 12:37 am, Will Arp [EMAIL PROTECTED] wrote: Dear list, this has been fixed in latest jquery svn, but still need fixing in the form and metadata plugins. - eval(data = + data); + data = eval(( + data + )); related to: Ticket

[jQuery] Re: What's happened to $.expr['@'] in jQuery 1.1.3?

2007-07-05 Thread Ralf S. Engelschall
On Wed, Jul 04, 2007, Ralf S. Engelschall wrote: On Wed, Jul 04, 2007, Diego A. wrote: Hi John (and the team), Congratulations on the new release, it's looking great. Can't wait for 1.2... The only small problem I've had is with an old plugin I've been used for a while, which

[jQuery] Re: jQuery 1.1.3.1

2007-07-05 Thread Rob Desbois
Should the changelog say 'jQuery 1.1.4 Closed Bugs'? Plus: thanks for the quick fixes! --rob On 7/5/07, John Resig [EMAIL PROTECTED] wrote: Hi Everyone - This is a quick bug fix release for jQuery 1.1.3. About six major issues popped up after the 1.1.3 release that we deemed important

[jQuery] Re: Is it possible to show elements that is not CSS display:none;?

2007-07-05 Thread Sam Collett
You could always preload images before hand (no need to use CSS tricks). http://www.texotela.co.uk/code/jquery/preload/ On Jul 5, 3:02 am, Jon [EMAIL PROTECTED] wrote: What's better than asking, is testing.. div style=position:absolute;left:-2000px; img src=path to image/ /div Much

[jQuery] Re: opacity in IE6.0 not works with jquery-1.1.3

2007-07-05 Thread Michael Stuhr
SeViR schrieb: Michael Stuhr escribió: Sam Collett schrieb: is there a 'compiled' version too (of this fix)? micha I simply download the SVN version and I compiled with ant. I have attached the new trunk version compiled (packed and source version of jquery.js) thanks micha

[jQuery] Re: Release: Tooltip plugin 1.1

2007-07-05 Thread Jens
thanks for the update. I am loading content to a page dynamically (Ajax: $.get) and have used tooltip to apply tooltip on the fly on each part. All elements uses the same tooltip selector. My problem with the new version is tooltip fails if you call it more than once: $(.toolTip).Tooltip();

[jQuery] Can't get hover event to work correctly in IE6

2007-07-05 Thread 2dee
Hey there. I've looked around a bit to see if anybody was having a similar problem, but I couldn't find anything useful. I'm a part-time developer and I don't spend too much time in javascript, much less jquery (I'm a Prototype refugee), so I hope this is my fault and easily fixable.

[jQuery] tableSorter - problems with changing the number of rows

2007-07-05 Thread Phil Glatz
I'm using the tableSorter plugin and am having a problem with the number of rows displayed; I hope I can describe the situation clearly. I'm building my table dynamically from a local javascript array, initially populated with a database query. Next, I call the tableSorter function. So far so

[jQuery] question about redirecting url after post using jquery

2007-07-05 Thread Mike Fern
hi devs, i'm new to this group. i recently play with jquery and feel happy with the features and simplicity offered. however, i stumble upon a problem with redirecting url using jquery. this is my code: //Start the ajax call var $vc = jQuery.noConflict(); $vc(document).ready(function() {

[jQuery] Re: Websnapr using jQuery

2007-07-05 Thread Kia Niskavaara
I want to be able to put any content in the bubble. Websnapr works great if you want a previewimage of a site. The Link Preview script does exactly what I need, but the author doesn't update it anymore. And it also has some bugs regarding transparancy and positioning. If it was using jQuery, these

[jQuery] Re: Problem with WebTrends JS + jQuery in IE 6

2007-07-05 Thread nik
Hi All, I am quiet new to this forum and this is my first post ever. Guys i need to implement webtrends tracking for a web-site and need to use smartsource data collector, though i could find the smartsource code from the posts, but still do not know how to implement it. Do i need webtrends

[jQuery] Re: Designerly Ajax ? from newbie

2007-07-05 Thread jsw_nz
Just wanted to bump this (my first post) I suppose my question relates to chaining the commands mentioned in previous post (1)(2)(3) From a 'design point of view' the fadeOut and fadeIn treatment of AJAX calls really attracts me - and from what I gather jquery is in a unique position to

[jQuery] Tooltip plugin as a preview bubble (Was: Websnapr using jQuery)

2007-07-05 Thread Kia Niskavaara
[EMAIL PROTECTED] wrote: Are you wanting to actually get a snapshot of a website or are you just wanting the bubbles so that you can put your own content in them? If the later, you might want to check this out: http://groups.google.com/group/jquery-en/browse_thread/thread/91bc1d17185a7b3f

[jQuery] Need to put-in web trends tracking using SmartSource data collector

2007-07-05 Thread nik
Dear All, I need to use web trends tracking for a web-site...can anybody suggest me how to perform the taskdo i need to use webtrends software for that or placing smartsource data code on all webpages would workas i'm working on this for the first timecan anyone of u volunteer to

[jQuery] Opposite of .append

2007-07-05 Thread arno
Hi, guys I tried to use the .append function on a mouseover event, but I can't find a way to un-append the text I added on mouseout. Am I missing something obvious? Thx Arno

[jQuery] Re: jQuery 1.1.3.1

2007-07-05 Thread Mike Fern
Hi John, Thanks for the info. I'll surely pick and play with it. I also have an issue with jquery, but i'm still investigating if it is a bug. Thanks for the good work. Cheers, Mike

[jQuery] Re: Toggle element based on value

2007-07-05 Thread DamianD
Thanks, Here is the code I used: $(a.emailitem).click(function(){ var i = $(this).attr(id); var y = i.split(|); var url = /emailstory/index/ + y[1]; $(div.newsitememail:eq( + y[0] + )).load(url); $(div.newsitememail:eq( + y[0] + )).toggle();

[jQuery] Re: What's happened to $.expr['@'] in jQuery 1.1.3?

2007-07-05 Thread Diego A.
Thanks Ralf, you've been a great help. I'll see what I can do with this... On 05/07/07, Ralf S. Engelschall [EMAIL PROTECTED] wrote: On Wed, Jul 04, 2007, Ralf S. Engelschall wrote: On Wed, Jul 04, 2007, Diego A. wrote: Hi John (and the team), Congratulations on the new release,

[jQuery] [SITE SUBMISSION] www.pharmaconnectme.com

2007-07-05 Thread spinnach
http://www.pharmaconnectme.com - the first international network created by pharmacy students for all their friends in pharmacy.. jQuery 1.1.3.1 plugins used: thickbox, form plugin, accordion, jquery flash, and various others, some custom made, some that i probably forgot to mention..

[jQuery] Problems with jCarouselLite and hide divs

2007-07-05 Thread Jean
I was making my defense for my university´s project and I´m trying hide divs only to show when i click in some tab but if i hide de divs with jcarousel it dont works, but the same code without the hide divs works, i have 2 examples´s pages. with hide

[jQuery] Re: tableSorter - problems with changing the number of rows

2007-07-05 Thread Christian Bach
Hi Phil, set useCache: false then trigger this after the update. $('#bodytable').trigger(updateColumnData); I'm addressing this issue in the new 2.0 version of tablesorter supplying a simple .update() method that will rebuild the cached table. And to leak a new feature: it will contain

[jQuery] Any official documentation for selectors extension?

2007-07-05 Thread Nicolas Hoizey
Hello, Following yesterday's discussion about my :containsExactly() filter, I would like to know if there is any official documentation about selectors extension. I found this e-mail in the archives: http://www.mail-archive.com/[EMAIL PROTECTED]/msg15863.html This is the interesting

[jQuery] Re: jQuery 1.1.3.1

2007-07-05 Thread Priest, James (NIH/NIEHS) [C]
-Original Message- From: John Resig [mailto:[EMAIL PROTECTED] This is a quick bug fix release for jQuery 1.1.3. About six major issues popped up after the 1.1.3 release that we deemed important enough to resolve immediately, with a follow-up release. The full list of resolved

[jQuery] Re: Opposite of .append

2007-07-05 Thread Benjamin Sterling
If the cell is can be emptied after mouseout do $(selector).empty(); On 7/5/07, arno [EMAIL PROTECTED] wrote: Hi, guys I tried to use the .append function on a mouseover event, but I can't find a way to un-append the text I added on mouseout. Am I missing something obvious? Thx Arno

[jQuery] Re: Syntax for selecting a form element named 'foo[0]'?

2007-07-05 Thread sprak
Thanks to you both; I'm all set. Cheers. - luis On Jul 3, 3:28 pm, Aaron Heimlich [EMAIL PROTECTED] wrote: On 7/3/07, sprak [EMAIL PROTECTED] wrote: What magic am I missing to be able to grab the value? $('[EMAIL PROTECTED]categoryID[0]]').val(); Notice the quotes around

[jQuery] Re: Basic Example not working

2007-07-05 Thread Scott Sauyet
To expand on this just a bit, Shelane used what is perhaps a cryptic syntax here. $(function() { // ... }); could also be written $(document).ready(function() { // ... }); So the code inside this function will now be run when the document is ready, i.e.

[jQuery] Re: Tooltip plugin as a preview bubble (Was: Websnapr using jQuery)

2007-07-05 Thread [EMAIL PROTECTED]
You should probably post your questions on the thread I noted above so that the author can see them and respond. I am not familiar very familiar with the plugin, I just happened to come across it yesterday. On Jul 5, 4:14 am, Kia Niskavaara [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote:

[jQuery] Re: Opposite of .append

2007-07-05 Thread Klaus Hartl
Benjamin Sterling wrote: If the cell is can be emptied after mouseout do $(selector).empty(); Otherwise try this: var appendable = $('spanAppend me/span'); $('#mouseover').hover( function() { appendable.appendTo('#append-here'); }, function() {

[jQuery] Re: Need help with JQuery + Prototype integration

2007-07-05 Thread sprak
On Jul 3, 12:31 pm, Ganeshji Marwaha [EMAIL PROTECTED] wrote: wow... keep us in the loop if u find a way out. The developer who wrote the JQuery portion found the answer; apparently, the toggle attribute the JQuery code was applying to elements was conflicting with something in Prototype that

[jQuery] Re: jQuery 1.1.3.1

2007-07-05 Thread John Resig
That's correct - I think I mentioned this before but all hide/show animations require that the element be actually hidden or visible before you do the opposite animation to them (so the element should be hidden if you want to show it, and it should be visible if you want to hide it). Doing this

[jQuery] Re: jQuery 1.1.3.1

2007-07-05 Thread John Resig
Yes, that's correct. These fixes will be going into the upcoming 1.1.4 release - this mini release is just to hold everyone over. --John On 7/5/07, Rob Desbois [EMAIL PROTECTED] wrote: Should the changelog say 'jQuery 1.1.4 Closed Bugs'? Plus: thanks for the quick fixes! --rob On 7/5/07,

[jQuery] Re: simple ahref toggle problem [beginner]

2007-07-05 Thread tlob
anyone? too simple? ;-) thx for the 1.1.3.1 btw.! On 4 Jul., 14:43, tlob [EMAIL PROTECTED] wrote: Hey there I have a simple beginner problem. I have a link, that is opening a new windows with flash sound in it the client wants that! hmpff.. After I clicked the link sound on the a

[jQuery] Re: What's happened to $.expr['@'] in jQuery 1.1.3?

2007-07-05 Thread John Resig
Yeah, this was a really unfortunate change that had to be made. We really wanted to keep the extensible functionality of [EMAIL PROTECTED] but it ended up being just to incredibly slow. Moving all of the code internal was the only way to receive any sort of speed up. Sorry about that guys.

[jQuery] Re: jQuery 1.1.3.1

2007-07-05 Thread Priest, James (NIH/NIEHS) [C]
-Original Message- From: John Resig [mailto:[EMAIL PROTECTED] That's correct - I think I mentioned this before but all hide/show animations require that the element be actually hidden or visible before you do the opposite animation to them (so the element should be hidden if you

[jQuery] Re: [SITE SUBMISSION] www.pharmaconnectme.com

2007-07-05 Thread Rey Bango
Nice look site spinnach. I really like the flyout div that appears next to each bloggers pic. Very nice. I've added it to the list. spinnach wrote: http://www.pharmaconnectme.com - the first international network created by pharmacy students for all their friends in pharmacy.. jQuery

[jQuery] Ranges

2007-07-05 Thread Alan Gutierrez
I'm currently working on selections and ranges for a rich text editor. Is this built into jQuery in a cross-platform way, or is there a plugin I can use? -- Alan Gutierrez | [EMAIL PROTECTED] | http://blogometer.com/ | 504 717 1428 Think New Orleans | http://thinknola.com/

[jQuery] Re: Problem with .text() ??

2007-07-05 Thread Dan G. Switzer, II
Live Example: http://rcs-comp.com/code_examples/text_function_bug/ I have some code that has a three column table in it. When the user updates some number values in one of the two columns, I have some JS that sums those columns and updates the value in the third column with that info. When

[jQuery] Re: Opposite of .append

2007-07-05 Thread Benjamin Sterling
Very good call Klaus. On 7/5/07, Klaus Hartl [EMAIL PROTECTED] wrote: Benjamin Sterling wrote: If the cell is can be emptied after mouseout do $(selector).empty(); Otherwise try this: var appendable = $('spanAppend me/span'); $('#mouseover').hover( function() {

[jQuery] Re: Manipulating a stylesheet directly

2007-07-05 Thread Gordon
Oh, forgot to mention, I thought I'd post some code here as an example of what I'd like to be able to do (though it's not possible yet) $('.someclass').each (function (thisElemNum) { var elem = $(this); var newProps= { left: someLeftVal,

[jQuery] tabs plugin help

2007-07-05 Thread Robert O'Rourke
Hi everybody I'm using Klaus' tabs plugin and was wondering how to return or pull out information like attribute values from the clicked tab. Is anything like this possible? $(#mycontainer).tabs({ onClick: myFunction(args) }); Sorry if that's unclear. I can think of a slightly

[jQuery] Re: Manipulating a stylesheet directly

2007-07-05 Thread Gordon
Thanks for the help, but that's not quite what I had in mind. I need for the dimensions of my boxes to be animated when they change, I just thought that by doing it in a stylesheet instead of the style= attribute as jQuery uses currently I'd be able to get a big speedup as then I'd only have to

[jQuery] Re: jQuery 1.1.3.1

2007-07-05 Thread Gordon
Looking good here so far, except for one thing. The interface sliders plugin doesn't appear to work in IE anymore when using 1.1.3.x, though it still does work i FireFox. I do realise that the plan is to scrap Interface in favour of UI, but UI is a long way off yet and I need the

[jQuery] Re: Form submit problem when dealing with more than 1 form

2007-07-05 Thread Mike Alsup
Most likely the problem occurs because you're using the extend method incorrectly. If you only pass a single arg to extend it extends the jQuery object. I'm not really sure what you're trying to accomplish with this line anyway: options = jQuery.extend(options); Did you mean to use something

[jQuery] Feature suggestion: animating through stylesheets

2007-07-05 Thread Gordon
It has been my observation that, when animating a lot of elements, jQuery does so by manipulating the style attribute of each element to be animated directly. Accessign DOM attributes tends to be relitively slow in most browsers, and if you're applying an effect to a large number of elements,

[jQuery] Re: Problems with jCarouselLite and hide divs

2007-07-05 Thread Jean
I was making my defense for my university´s project and I´m trying hide divs only to show when i click in some tab but if i hide de divs with jcarousel it dont works, but the same code without the hide divs works, i have 2 examples´s pages. with hide

[jQuery] Re: Dynamically created elements do not trigger event handlers

2007-07-05 Thread Scott Sauyet
[EMAIL PROTECTED] wrote: Is it a fact that dynamically created content cannot trigger JS events? No. The problem is that the binding is done on specific items and not on some abstract class of items. When you later add items, they don't have your particular bindings associated with them.

[jQuery] Re: Is it possible to show elements that is not CSS display:none;?

2007-07-05 Thread Dan G. Switzer, II
You could always preload images before hand (no need to use CSS tricks). http://www.texotela.co.uk/code/jquery/preload/ I would recommend using new Image() to preload images--it's going to use a little less overhead (which can be important if you're preloading lots of images.)

[jQuery] Re: What's happened to $.expr['@'] in jQuery 1.1.3?

2007-07-05 Thread Aaron Heimlich
On 7/5/07, John Resig [EMAIL PROTECTED] wrote: Yeah, this was a really unfortunate change that had to be made. We really wanted to keep the extensible functionality of [EMAIL PROTECTED] but it ended up being just to incredibly slow. Moving all of the code internal was the only way to receive

[jQuery] Dynamically created elements do not trigger event handlers

2007-07-05 Thread [EMAIL PROTECTED]
When I insert a content to a page by using jQuerys append and after methods, those newly created elements do not trigger any javascript events as expected. var cont = $('a').attr('href', 'http:// goto.somewhere.org').append('go to...'); cont.click(handler); function handler() {

[jQuery] Re: tabs plugin help

2007-07-05 Thread Klaus Hartl
Robert O'Rourke wrote: Hi everybody I'm using Klaus' tabs plugin and was wondering how to return or pull out information like attribute values from the clicked tab. Is anything like this possible? $(#mycontainer).tabs({ onClick: myFunction(args) }); Sorry if that's unclear. I

[jQuery] Re: Multiple-select-box: set multiple to false

2007-07-05 Thread Dan G. Switzer, II
I'm trying to set a multiple-select-box to multiple=false, but neither $([EMAIL PROTECTED]).multiple = false; Try: $([EMAIL PROTECTED])[0].multiple = false; You need to actually reference the actual DOM object, not the jQuery array of objects that gets returned. -Dan

[jQuery] Re: Using part of JQuery

2007-07-05 Thread John Resig
You can download jQuery from SVN and build your own copy. If you were to open the Makefile that's included with jQuery you'd see a list of files that are to be included in jQuery directly - you can then remove the Ajax and FX modules and build a new copy. I realize that this is convoluted, and

[jQuery] Re: Feature suggestion: animating through stylesheets

2007-07-05 Thread Karl Swedberg
Hi Gordon, There is an extension to the .animate() method in Interface that allows you to animate classes. Perhaps it's more in line with what you're looking for? See the demo here: http://interface.eyecon.ro/demos/animate.html --Karl _ Karl Swedberg

[jQuery] Multiple-select-box: set multiple to false

2007-07-05 Thread backflip
I'm trying to set a multiple-select-box to multiple=false, but neither $([EMAIL PROTECTED]).multiple = false; nor $([EMAIL PROTECTED]).attr('multiple',''); nor $([EMAIL PROTECTED]).attr('multiple','false'); nor $([EMAIL PROTECTED]).removeAttr('multiple'); works. Has anybody an

[jQuery] Re: Setting Default Submit Button For Forms

2007-07-05 Thread [EMAIL PROTECTED]
Dan, Very interesting thought. I have always done my input elements like this: input type=submit name=btn_sumbit value=Submit / input type=submit name=btn_cancel value=Cancel / and if I wanted btn_cancel to be the default button, I would have to put it first in the form. Your example of the

[jQuery] Re: Setting Default Submit Button For Forms

2007-07-05 Thread Dan G. Switzer, II
Have you ever seen this done with an entire form, instead of just a single input element? I would like to be able to do something like: $ ('#my_form').defaultButton('#btn_submit').cancelButton('#btn_cancel'); I found a plugin on the JQuery list that did this for an input element, but not the

[jQuery] Re: Problem with .text() ??

2007-07-05 Thread [EMAIL PROTECTED]
Dan, Yes, I figured it had to do with the type of variable it was and you are correct, that worked. However, it still doesn't make sense to me that it would work for .html() but not for .text(). Why would the two operate differently? It just seems inconsistent to me. On Jul 5, 10:23 am, Dan

[jQuery] Using part of JQuery

2007-07-05 Thread climbingrose
Hi all, I've been moving from Prototype to jQuery and absolutely love it. Thanks a lot for all the excellent work guys! I just want to ask if I can build my custom jQuery js file for my specific need just like how mootools allow developer to select and download certain modules. I know that

[jQuery] Re: Feature suggestion: animating through stylesheets

2007-07-05 Thread Gordon
That wasn't quite what I was getting at. While the ability to morph between one class and another is quite nifty, as far as I can tell, it stil works by modifying the style attribute of the target elements. What I'm suggesting is a speed optimization, where animation is achieved by modifying a

[jQuery] attaching events to large table

2007-07-05 Thread Josh Bush
I have a table that has 1,000 rows and I'm trying to bind a function to the click event of each row. This can be quite slow the way I'm currently doing it. Here is an example my my current process: this.find(settings.selector).click(function(){selectRow(this);}); function

[jQuery] Re: Form submit problem when dealing with more than 1 form

2007-07-05 Thread Catalin
I've replaced options = jQuery.extend(options); with options = options || {}; and it works now. Thanx Mike ! On Jul 5, 5:00 pm, Mike Alsup [EMAIL PROTECTED] wrote: Most likely the problem occurs because you're using the extend method incorrectly. If you only pass a single arg to extend

[jQuery] Re: Problem with a possible race condition

2007-07-05 Thread Chris Jordan
Bump. Can anyone shed some light on this? Thanks heaps, Chris On Jul 4, 3:42 pm, Christopher Jordan [EMAIL PROTECTED] wrote: Okay, just an update for anyone thinking of helping. I ran the dialog page by itself (sans thickbox) and the focus gets set just fine. So this is somehow related to

[jQuery] Re: Need help with JQuery + Prototype integration

2007-07-05 Thread Ganeshji Marwaha
glad u finally figured it out.. -GTG On 7/5/07, sprak [EMAIL PROTECTED] wrote: On Jul 3, 12:31 pm, Ganeshji Marwaha [EMAIL PROTECTED] wrote: wow... keep us in the loop if u find a way out. The developer who wrote the JQuery portion found the answer; apparently, the toggle attribute the

[jQuery] Re: Feature suggestion: animating through stylesheets

2007-07-05 Thread Benjamin Sterling
Gordon, So you are saying that if you have a class: .theAnimateClass{ position:absolute; left:0px; } That the class params should change, not the inline params to that particular element: ie, you want to move the element with the class name of theAnimateClass for current position (0px) to

[jQuery] Re: Multiple-select-box: set multiple to false

2007-07-05 Thread Thomas Jaggi
Try: $([EMAIL PROTECTED])[0].multiple = false; You need to actually reference the actual DOM object, not the jQuery array of objects that gets returned. Thanks a lot for your help! I just wanted to reply that wouldn't work either but there was another problem: When I'm hiding some elements

[jQuery] Re: Problem with .text() ??

2007-07-05 Thread Dan G. Switzer, II
Yes, I figured it had to do with the type of variable it was and you are correct, that worked. However, it still doesn't make sense to me that it would work for .html() but not for .text(). Why would the two operate differently? It just seems inconsistent to me. I agree. You should file a

[jQuery] Re: Feature suggestion: animating through stylesheets

2007-07-05 Thread Gordon
Yes, that's what I'm getting at. Like I said, I noticed with my jQuery coding and script optimization efforts that DOM access has quite a significant overhead, and that jQuery animates by manipulating the DOM style attribute for all elements being animated. If it were possible to manipulate the

[jQuery] Re: Problems with jCarouselLite and hide divs

2007-07-05 Thread Ganeshji Marwaha
hi jean, i think u are using version 0.2.0. Last week 0.3.0. A few bugs were fixed as well... To start with, u might want to try that version. You can download it at http://www.gmarwaha.com/jquery/jcarousellite/index.php This should mostly fix your problem. If it doesn't try adding the

[jQuery] Re: attaching events to large table

2007-07-05 Thread Dan G. Switzer, II
Josh, I have a table that has 1,000 rows and I'm trying to bind a function to the click event of each row. This can be quite slow the way I'm currently doing it. Here is an example my my current process: this.find(settings.selector).click(function(){selectRow(this);}); function

[jQuery] Re: Multiple-select-box: set multiple to false

2007-07-05 Thread Dan G. Switzer, II
I just wanted to reply that wouldn't work either but there was another problem: When I'm hiding some elements of the form BEFORE I set multiple to false, it doesn't work: $(#field2).hide(); $(#field3).hide(); $(#field6).hide(); $([EMAIL PROTECTED])[0].multiple = false; Like this it

[jQuery] Re: What's happened to $.expr['@'] in jQuery 1.1.3?

2007-07-05 Thread Diego A.
I would like to help but you've lost me there Aaron... Is it possible to attach an else to the if statement that replaced it[1] that checks in [EMAIL PROTECTED] On 05/07/07, Aaron Heimlich [EMAIL PROTECTED] wrote: On 7/5/07, John Resig [EMAIL PROTECTED] wrote: Yeah, this was a really

[jQuery] Re: Multiple-select-box: set multiple to false

2007-07-05 Thread Mike Alsup
Quite frankly, this just feels wrong. Is there a reason you're doing this? :-) I was thinking the same thing, Dan. In fact, I'd be surprised if this works at all. multiple may be an attribute but I think the element type (select-multiple) is the key to the actual gui component style used.

[jQuery] Re: What's happened to $.expr['@'] in jQuery 1.1.3?

2007-07-05 Thread Aaron Heimlich
Basically, I'm wondering if something like this is feasible: if ( (type == !!z || type == = z == m[5] || type == != z != m[5] || type == ^= z !z.indexOf(m[5]) || type == $= z.substr(z.length - m[5].length) == m[5] || (type == *= || type == ~=) z.indexOf(m[5]) = 0) ^

[jQuery] Re: question about Firebug...

2007-07-05 Thread Aaron Heimlich
http://www.getfirebug.com/console.html The function documented here can be called from anywhere in your JS. On 7/5/07, Andy Matthews [EMAIL PROTECTED] wrote: I see that FB has a console...is it possible to print variables to this console as my JS code progresses? *

[jQuery] Re: question about Firebug...

2007-07-05 Thread Benjamin Sterling
Console can be used to run functions or write functions against your page. I think you should be able to just log your variables to the logger. On 7/5/07, Andy Matthews [EMAIL PROTECTED] wrote: I see that FB has a console...is it possible to print variables to this console as my JS code

[jQuery] Re: Feature suggestion: animating through stylesheets

2007-07-05 Thread Benjamin Sterling
Gordon, I put together a very quick example, although it does not run in ie6 (which I am sure there is a fix for) it looks OK in FF. http://www.benjaminsterling.com/experiments/jqAnimatedStyles/ The functions are from: http://www.hunlock.com/blogs/Totally_Pwn_CSS_with_Javascript On 7/5/07,

[jQuery] Re: Problem with a possible race condition

2007-07-05 Thread Klaus Hartl
Chris Jordan wrote: Bump. Can anyone shed some light on this? Thanks heaps, Chris On Jul 4, 3:42 pm, Christopher Jordan [EMAIL PROTECTED] wrote: Okay, just an update for anyone thinking of helping. I ran the dialog page by itself (sans thickbox) and the focus gets set just fine. So this is

[jQuery] Zebra table with hidden rows

2007-07-05 Thread backflip
I'm using the following code to style a table: $(table.xy tr:nth-child(odd)).addClass(odd); But before doing that I'm hiding some rows: $(tr#xy).hide(); Now the zebra pattern isn't working any more (it's an abnormal zebra), of course. How to apply the zebra-stuff just to the visible rows?

[jQuery] Re: Multiple-select-box: set multiple to false

2007-07-05 Thread Thomas Jaggi
Are you sure you're not getting an error somewhere in the execution path? I've never tried toggling a select element between a multiple select and a single select. It seems it just doesn't work in Safari if the .hide()-stuff is before the multiple = false. Well, whatever. Quite frankly,

[jQuery] Re: attaching events to large table

2007-07-05 Thread Josh Bush
Thank you kind sir. You just made my day. There was two similar calls in that plugin one for click and the other for double click. It was taking 16+ seconds and is now a respectable 300ms. Josh On Jul 5, 11:03 am, Dan G. Switzer, II [EMAIL PROTECTED] wrote: Josh, I have a table that has

[jQuery] question about Firebug...

2007-07-05 Thread Andy Matthews
I see that FB has a console...is it possible to print variables to this console as my JS code progresses? Andy Matthews Senior ColdFusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com

[jQuery] Re: Zebra table with hidden rows

2007-07-05 Thread Thomas Jaggi
This is not tested, but something like this might do it: $(table.xy tr:visible).each(function(index) { if (index %2 == 1) { $(this).addClass(odd); } }); It's perfect, thank you!

[jQuery] Load Google Analytics from jQuery

2007-07-05 Thread Skullman
Hello! I guess if any of you have tried to load Google Analytics from JQuery. What I want to do is as simple as this: My original footer: footer.php div id=footersomething/div /body /html /footer.php Instead of put the Google Analytics on

[jQuery] Re: Problem with a possible race condition

2007-07-05 Thread Chris Jordan
Klaus, Thanks for responding. This is happening in both IE and FF. I hadn't thought of ThickBox having an onShow Callback. That may be my best bet. I thought that putting code in the $(function(){}); section was supposed to prevent this sort of thing. For what it's worth, here's my code for the

[jQuery] Re: question about Firebug...

2007-07-05 Thread Dan G. Switzer, II
Andy, Make sure to read the docs: http://www.getfirebug.com/docs.html Lots of stuff you can do. (That link can be gotten to via the little Firebug icon next to the Inspect menu option.) To output data to the console, I usually use: console.log(); -Dan _ From:

[jQuery] Re: question about Firebug...

2007-07-05 Thread Andy Matthews
Beautiful guys... Found this: http://ajax.phpmagazine.net/2006/05/firebug_the_future_of_javascri.html as soon as I sent my email. Thanks for the quick response. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Benjamin Sterling Sent: Thursday, July 05, 2007

[jQuery] Re: What's happened to $.expr['@'] in jQuery 1.1.3?

2007-07-05 Thread John Resig
Possibly. While that would, functionally, work - it would provide a serious speed hit (requiring that each available [@] expression be parsed for every element that isn't matched. Although, that would only be in the case of when you include [@] checks. Aaron - you should file a ticket for this

[jQuery] Re: question about Firebug...

2007-07-05 Thread Nicolas Hoizey
I see that FB has a console...is it possible to print variables to this console as my JS code progresses? Yes, just do this: console.log('the message'); -Nicolas -- Nicolas Brush HOIZEY Clever Age : http://www.clever-age.com/ Gastero Prod : http://www.gasteroprod.com/ Photos :

[jQuery] mootools accordion, all items closed at page load?

2007-07-05 Thread Luciano A. Ferrer
Hi! I need to use mootools accordion, but just with 1 item... so, it would be nice to have it closed when pages loads... Do you have any idea about how to achieve this? (I am stupid using javascript... :( ) TIA, and sorry for the bad english :) luciano

[jQuery] Re: Zebra table with hidden rows

2007-07-05 Thread Scott Sauyet
backflip wrote: I'm using the following code to style a table: $(table.xy tr:nth-child(odd)).addClass(odd); But before doing that I'm hiding some rows: $(tr#xy).hide(); Now the zebra pattern isn't working any more (it's an abnormal zebra), of course. How to apply the zebra-stuff just to

[jQuery] Re: mootools accordion, all items closed at page load?

2007-07-05 Thread Rey Bango
Are you using jQuery, MooTools or both? Rey Luciano A. Ferrer wrote: Hi! I need to use mootools accordion, but just with 1 item... so, it would be nice to have it closed when pages loads... Do you have any idea about how to achieve this? (I am stupid using javascript... :( ) TIA, and

[jQuery] Re: question about redirecting url after post using jquery

2007-07-05 Thread Matt Stith
You might wanna use firebug and make sure your getting a correct response. It might be making an error because what you are assigning isnt a url. On 7/5/07, Mike Fern [EMAIL PROTECTED] wrote: hi devs, i'm new to this group. i recently play with jquery and feel happy with the features and

[jQuery] Re: Problems with jCarouselLite and hide divs

2007-07-05 Thread Ganeshji Marwaha
That wouldn't fix ur problem... For now ur best work-around is to hide the div using javascript after the call to jCarouselLite()... This way you are giving the plugin the means to construct itself before u hide it... In the mean-time, i will work on a fix for the same and keep u posted. Lemme

[jQuery] Re: Need to put-in web trends tracking using SmartSource data collector

2007-07-05 Thread skyeflye
Hi Nik, WebTrends is a commercial application that must be paid for. If you (or your client) do not have a paid license from WebTrends, then there is no way to use it. WebTrends sells versions of its software that they host for you and also versions that you can install on your own web

[jQuery] Re: Problems with jCarouselLite and hide divs

2007-07-05 Thread Jean
I will try, i think this will fix On 7/5/07, Ganeshji Marwaha [EMAIL PROTECTED] wrote: That wouldn't fix ur problem... For now ur best work-around is to hide the div using javascript after the call to jCarouselLite()... This way you are giving the plugin the means to construct itself before u

[jQuery] Re: Zebra table with hidden rows

2007-07-05 Thread Karl Swedberg
This should work, too* : $(table.xy tr:visible:odd).addClass(odd) * Might not work after first table if more than one table class=xy exists on the same page. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 5, 2007, at 1:03 PM, Scott

[jQuery] Re: tableSorter - problems with changing the number of rows

2007-07-05 Thread Phil Glatz
On Jul 5, 4:22 am, Christian Bach [EMAIL PROTECTED] wrote: set useCache: false then trigger this after the update. $('#bodytable').trigger(updateColumnData); Thanks, Christian; that did the trick. When I rebuild the table with more rows, sorting isn't working. If I was sorting on a

[jQuery] Re: mootools accordion, all items closed at page load?

2007-07-05 Thread Luciano A. Ferrer
On 7/5/07, Rey Bango [EMAIL PROTECTED] wrote: Are you using jQuery, MooTools or both? Rey only jquery... I have solved it! changed the line $(dd:not(:first)).hide(); to $(dd:first).hide(); This is the right way? luciano Luciano A. Ferrer wrote: Hi! I need to use mootools

  1   2   >