[jQuery] Re: divert click to an anchor

2007-08-21 Thread Gordon
If the anchor you want to fire is inside the div and is the only anchor in the div then maybe this might work. $('div.test').click (function () { alert ('div.test clicked'); $('a', this).trigger ('click'); }); On Aug 22, 2:53 am, John Liu <[EMAIL PROTECTED]> wrote: > > > > $(document

[jQuery] Re: divert click to an anchor

2007-08-21 Thread Mitchell Waite
Ok I see what you are saying. This all worries me about web 2.0. Browsers are so fragile and persnickety. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Karl Rudd Sent: Tuesday, August 21, 2007 10:11 PM To: jquery-en@googlegroups.com Subject:

[jQuery] Re: divert click to an anchor

2007-08-21 Thread John Liu
Thanks for all these tips. jliu On Aug 22, 3:10 pm, "Karl Rudd" <[EMAIL PROTECTED]> wrote: > There's not really that many ways. John's method is (AFAIK) the only > way that actually works. i.e.: > > $('div.test').click(function(event){ location.href = > $('a').attr('href') }); > > It's not a

[jQuery] Re: divert click to an anchor

2007-08-21 Thread Karl Rudd
There's not really that many ways. John's method is (AFAIK) the only way that actually works. i.e.: $('div.test').click(function(event){ location.href = $('a').attr('href') }); It's not actually jQuery problem, just the way browsers do it. Even if you called ".click()" on a raw link it would

[jQuery] Re: divert click to an anchor

2007-08-21 Thread Mitchell Waite
Does anyone know why there are so many ways to do this? From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of John Beppu Sent: Tuesday, August 21, 2007 8:56 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: divert click to an anchor $('div.test').click(function(event

[jQuery] Re: Testing IE6 and IE7 with Virtual PC

2007-08-21 Thread Benjamin Sterling
I have a png fix on http://neurosesgalore.com/ for the background and I know it works in IE6, but when I load it in the stand alone, it fails. Thanks for the linux specs, that is going to help. On 8/22/07, Brice Burgess <[EMAIL PROTECTED]> wrote: > > > > > bmsterling wrote: > > > > I've notice so

[jQuery] Re: Testing IE6 and IE7 with Virtual PC

2007-08-21 Thread Brice Burgess
bmsterling wrote: > > I've notice some odd issues with using ie6 running along side ie7, activeX > issues and filter issues. Have you notice those issues with Multiple IE? > I haven't noticed any issues with Active-X / filters *yet*. IE6 .PNG alpha-transparency filter loading via active-x ap

[jQuery] Re: divert click to an anchor

2007-08-21 Thread John Beppu
$('div.test').click(function(event){ location.href = $('a').attr('href') }); On 8/21/07, John Liu <[EMAIL PROTECTED]> wrote: > > > > > > $(document).ready(function(){ > $("div.test").click(function(){ > alert('div.test clicked'); > $("a").click(); > }); > }); > > http://google.co

[jQuery] Re: Problems with VALIDATE PLUGIN

2007-08-21 Thread Jean
Yes is that i was searching for =P thanks a lot! i will put into structure list On 8/21/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > > Jean schrieb: > > Really lol > > Dude i´m with a little problem to append the error msg in the right place > > look my structure > > > > > > Pergunta 9: Qual

[jQuery] Re: divert click to an anchor

2007-08-21 Thread John Liu
Hi Michael, I think you might have misunderstood my problem. The div.text.click is firing properly, it's the a.click that isn't firing. --- On 8/21/07, John Beppu wrote: > The click() function doesn't actually simulate a click. > It's true purpose is to setup on onclick handler. New question

[jQuery] Re: divert click to an anchor

2007-08-21 Thread Michael E. Carluen
John: Try using bind(); with click() $("div.test").bind("click", function(){ $("a").click(); }); Hth, Michael > -Original Message- > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of John Liu > Sent: Tuesday, August 21, 2007 6:53 PM > To: jQuery (Eng

[jQuery] Re: divert click to an anchor

2007-08-21 Thread John Liu
Thanks for clarifying that, that was what I assumed. It's funny, I can't even get this to work: http://docs.jquery.com/Events#click.28.29 Did this used to work and now broke? jliu On Aug 22, 1:15 pm, "John Beppu" <[EMAIL PROTECTED]> wrote: > On 8/21/07, John Beppu <[EMAIL PROTECTED]> wrote: >

[jQuery] Re: divert click to an anchor

2007-08-21 Thread John Beppu
On 8/21/07, John Beppu <[EMAIL PROTECTED]> wrote: > > The click() function doesn't actually simulate a click. > > It's true purpose is to setup on onclick handler. s/It's/Its/;# argh!

[jQuery] Re: divert click to an anchor

2007-08-21 Thread John Beppu
The click() function doesn't actually simulate a click. It's true purpose is to setup on onclick handler. On 8/21/07, John Liu <[EMAIL PROTECTED]> wrote: > > > > > > $(document).ready(function(){ > $("div.test").click(function(){ > alert('div.test clicked'); > $("a").click(); > }

[jQuery] Re: Killing ajax calls

2007-08-21 Thread Pops
On Aug 21, 9:07 pm, "Mike Fern" <[EMAIL PROTECTED]> wrote: > > yep, it's a plugin called ajax queue > this is the > url:http://groups.google.com/group/jquery-en/browse_thread/thread/fde5bcf... > Thanks Mike. This should come in useful! :-) -- HLS

[jQuery] divert click to an anchor

2007-08-21 Thread John Liu
$(document).ready(function(){ $("div.test").click(function(){ alert('div.test clicked'); $("a").click(); }); }); http://google.com";> google click I have a situation where if anyone clicks anywhere within the div, I want the anchor to be fired - in this case, navigate to googl

[jQuery] [OT] Building Mashups? Check this Site Out

2007-08-21 Thread Rey Bango
So I came across a link on Digg to a great site which showed a list of several web APIs. The site was nice and all and provided quite a bit of links. But as I started probing the Digg posting further, I found within the comments a link to what has to be the most comprehensive compilation of

[jQuery] Re: Killing ajax calls

2007-08-21 Thread Mike Fern
>On 8/22/07, Stephan Beal <[EMAIL PROTECTED]> wrote: > > John Resig made a post about a week (maybe two?) ago with some > prototype code implementing serial ajax queues. If i'm not mistaken, > that code should provide a way to kill the queue, or at least stop any > requests which haven't already g

[jQuery] Re: Killing ajax calls

2007-08-21 Thread Pops
On Aug 21, 8:28 pm, Stephan Beal <[EMAIL PROTECTED]> wrote: > John Resig made a post about a week (maybe two?) ago with some > prototype code implementing serial ajax queues. If i'm not mistaken, > that code should provide a way to kill the queue, or at least stop any > requests which haven't alr

[jQuery] Re: Testing IE6 and IE7 with Virtual PC

2007-08-21 Thread Benjamin Sterling
Brice, I've notice some odd issues with using ie6 running along side ie7, activeX issues and filter issues. Have you notice those issues with Multiple IE? What distro are you using for linux? On 8/21/07, Brice Burgess <[EMAIL PROTECTED]> wrote: > > > > > > Bernd Matzner-2 wrote: > > > > two new

[jQuery] Re: Paul Bakaus on Ajaxian

2007-08-21 Thread Pops
On Aug 21, 4:56 pm, "Michael Geary" <[EMAIL PROTECTED]> wrote: >> We are still talking about short circuits? > > I think so. :-) Right. I was begining to mix a few different ideas. :-) My initial message first questioned the idea where paul parenthically stated the & operator may be used for

[jQuery] Re: Testing IE6 and IE7 with Virtual PC

2007-08-21 Thread Brice Burgess
Bernd Matzner-2 wrote: > > two new VPC images for IE6 and IE7 on Win XP SP2 are now available: > http://www.microsoft.com/downloads/details.aspx?FamilyID=21eabb90-958f-4b64-b5f1-73d0a413c8ef&DisplayLang=en > Bernd, Thanks for the above. It's nice to see Microsoft giving out these VPC imag

[jQuery] Re: Killing ajax calls

2007-08-21 Thread Eridius
What are you trying to do? Once you send a AJAX request you can not cancel it(to the best of my knowledge) and if you try to send another while that one it still processing, than that one will fail. Tamm wrote: > > > I'm working on a function that sends far too many ajax calls, an easy > way

[jQuery] Re: Killing ajax calls

2007-08-21 Thread Stephan Beal
On Aug 22, 1:05 am, Tamm <[EMAIL PROTECTED]> wrote: > I'm working on a function that sends far too many ajax calls, an easy > way to take care of the problem would be to kill all ajax calls before > sending a new one (i.e. if it isn't done yet, nvm the result) > > the xhr object idea works for one

[jQuery] Re: Killing ajax calls

2007-08-21 Thread Matt Stith
Can we get a description of what you are doing? There shouldnt be a reason for a function to send tons of ajax calls. Either condense them to 1, or use a different method. On 8/21/07, Tamm <[EMAIL PROTECTED]> wrote: > > > I'm working on a function that sends far too many ajax calls, an easy > way

[jQuery] Killing ajax calls

2007-08-21 Thread Tamm
I'm working on a function that sends far too many ajax calls, an easy way to take care of the problem would be to kill all ajax calls before sending a new one (i.e. if it isn't done yet, nvm the result) the xhr object idea works for one call or if you know all the previous calls but I simply want

[jQuery] Re: Testing IE6 and IE7 with Virtual PC

2007-08-21 Thread Stephan Beal
On Aug 21, 11:26 pm, Bernd Matzner <[EMAIL PROTECTED]> wrote: > You need Virtual PC 2007 to run it, which is available for free > here:http://www.microsoft.com/windows/products/winfamily/virtualpc/default... > > The latter is also nice for creating a Linux test environment you can > run from with

[jQuery] Re: Dinamically add elements to a existing jCarouselLite

2007-08-21 Thread Ganeshji Marwaha
hi thorfinn, Using the present featureset of jCarouselLite, you will not be able to add content at run-time once the carousel is initialized. You have 2 options 1. To add the "li" elements before u even initialize the carousel 2. look into jCarousel. Although a bit heavy, it has a host of features

[jQuery] Testing and Validating extension tips

2007-08-21 Thread Bernd Matzner
... and while we're at it: Paul Annesley, another avid jQuery user, left an interesting Firefox extension link in an Ajaxian comment: http://www.sitepoint.com/dustmeselectors/ Nice one to find unused css selectors. And being a validation fetishist, I would like to recommend this http://www.tota

[jQuery] Re: jCorner problem?

2007-08-21 Thread Stephan Beal
On Aug 21, 9:58 pm, Mark <[EMAIL PROTECTED]> wrote: > This is the result I am expecting > --http://www.augustine.com/images/test/expected.jpg > . This is what I get --http://www.augustine.com/images/test/actual.jpg > . I am using standard corner syntax, $(this).corner(); .. this > 'actual' res

[jQuery] Re: Testing IE6 and IE7 with Virtual PC

2007-08-21 Thread Benjamin Sterling
Thanks for the info Bernd. On 8/21/07, Bernd Matzner <[EMAIL PROTECTED]> wrote: > > > Hi, > > two new VPC images for IE6 and IE7 on Win XP SP2 are now available: > > http://www.microsoft.com/downloads/details.aspx?FamilyID=21eabb90-958f-4b64-b5f1-73d0a413c8ef&DisplayLang=en > > With these images y

[jQuery] Re: Cycle Plugin Killing me

2007-08-21 Thread Mike Alsup
> Besides adding an ID to the container code I suggest that your js > download contain a sample of ONE effect, the images and css. > > Lots of people do that and what is so nice is you can open there > index.htm and immediately have it working, then start modifying or > insidertinto your own code.

[jQuery] Re: Cycle Plugin Killing me

2007-08-21 Thread Mitch
JS: in > the DIV you have a single IMG file which will show up whether or not > JS is available I would like it so only ONE image showed when you were viewing in your editor instead of all images being stacked on top of each other. On Aug 21, 12:51 pm, Stephan Beal <[EMAIL PROTECTED]> wrote: > O

[jQuery] Re: Cycle Plugin Killing me

2007-08-21 Thread Mitch
Specifically I was confused that the ID was missing from the pics container. Besides adding an ID to the container code I suggest that your js download contain a sample of ONE effect, the images and css. Lots of people do that and what is so nice is you can open there index.htm and immediately h

[jQuery] Re: Prechecking the browser before loading jQuery

2007-08-21 Thread Glen Lipka
jQuery has some built-in browser agent tools: >From http://jquery.com/api $.browser returns Boolean Contains flags for the useragent, read from navigator. Contains flags for the useragent, read from navigator.userAgent. Available flags are: safari, opera, msie, mozilla This property is available

[jQuery] Testing IE6 and IE7 with Virtual PC

2007-08-21 Thread Bernd Matzner
Hi, two new VPC images for IE6 and IE7 on Win XP SP2 are now available: http://www.microsoft.com/downloads/details.aspx?FamilyID=21eabb90-958f-4b64-b5f1-73d0a413c8ef&DisplayLang=en With these images you can test web applications in each browser on a pre-activated XP SP2 virtual machine in your o

[jQuery] Re: Cycle Plugin Killing me

2007-08-21 Thread Mike Alsup
@mitch: What exactly is missing from the examples? Is it just the container ID that confused you? On the beginner demo I tried to clearly show how the markup and CSS should look but I didn't want to show that over and over for each and every demo. @Stephan: Interesting idea. For now I'm going

[jQuery] Prechecking the browser before loading jQuery

2007-08-21 Thread Dekortage
Hey all... I've been experimenting with jQuery a lot, and really like the functionality it provides. However, there are times when I'd like to use jQuery, but need to provide an alternative site for people with older browsers (particularly visitors from rural locations in developing countries, w

[jQuery] jCorner problem?

2007-08-21 Thread Mark
This is the result I am expecting -- http://www.augustine.com/images/test/expected.jpg . This is what I get -- http://www.augustine.com/images/test/actual.jpg . I am using standard corner syntax, $(this).corner(); .. this 'actual' result only occurs in Internet Explorer when the page is refres

[jQuery] Re: Paul Bakaus on Ajaxian

2007-08-21 Thread Michael Geary
> > From: Michael Geary > > It's pretty rare for anything like this to depend on the > > compiler or interpeter. > From: Pops > We are still talking about short circuits? I think so. :-) > For bitwise conditions. It can be larged based on only > compiler/ interpreter but machine word size. T

[jQuery] Re: Paul Bakaus on Ajaxian

2007-08-21 Thread Paul Bakaus
Hi again, very insightful to read all these great comments. "short circuit" just didn't came to my mind at the time of writing (d'oh). The example above with the 's' variable is very interesting. I'll have to investigate this one a bit further. Indeed, I should probably read a bit about bitwise o

[jQuery] Re: Problems with VALIDATE PLUGIN

2007-08-21 Thread Jörn Zaefferer
Jean schrieb: Really lol Dude i´m with a little problem to append the error msg in the right place look my structure Pergunta 9: Qual o faturamento anual da empresa? //Here is the supost place Até R$ 240.000 De R$ 240.001 a R$ 2.400.000 De R$ 2.400.001 a R$ 6

[jQuery] Re: Iterating over 1000 items - optimizing jquery

2007-08-21 Thread Michael Geary
> > From: Michael Geary > > Then, instead of binding event handlers to all of the individual > > buttons, just bind a single event handler to the parent form: > > > >$('#order_form').click( function( event ) { > > var $target = $(event.target); > > if( $target.is('img.increment')

[jQuery] Re: Cycle Plugin Killing me

2007-08-21 Thread Stephan Beal
On Aug 21, 9:32 pm, Mitch <[EMAIL PROTECTED]> wrote: ... > I would like to point out something that I think would make your cycle > plugin much easier to use which is this. ... > > > > Speaking of improvement, here's my idea: It would be nice to be able to pass additional images

[jQuery] Re: Iterating over 1000 items - optimizing jquery

2007-08-21 Thread Michael Geary
> From: Dan Eastwell > The thinking behind it is not to add the button images using > javascript, so that if you don't have javascript, you don't > have useless and confusing buttons. You can still generate the code on the server. Just use this code in : img.increment, img.decrement

[jQuery] Re: Cycle Plugin Killing me

2007-08-21 Thread Mitch
Mike is it possible that there is still a bug or am I just doing something really dumb here: http://www.whatbird.com/wwwroot/Components/cycle%20demo2.html I see the first image but no cycling. Firebug I would like to point out something that I think would make your cycle plugin much easier to u

[jQuery] Re: Problems with VALIDATE PLUGIN

2007-08-21 Thread Jean
Really lol Dude i´m with a little problem to append the error msg in the right place look my structure Pergunta 9: Qual o faturamento anual da empresa? //Here is the supost place Até R$ 240.000 De R$ 240.001 a R$ 2.400.000 De R$ 2.400.001 a R$ 60.000.000 Acima

[jQuery] Re: Iterating over 1000 items - optimizing jquery

2007-08-21 Thread Dan Eastwell
That is genius Mike, I'm extremely grateful. It worked perfectly - even with adding my images using jquery, the total time was ~1.2 secs, which I see as acceptable for 1000 s. Many thanks once more, Dan. PS - if it's not too much trouble, could you explain /why/ it works? Especially the event.

[jQuery] Re: Iterating over 1000 items - optimizing jquery

2007-08-21 Thread Dan Eastwell
Thanks for the reply, Mike, The thinking behind it is not to add the button images using javascript, so that if you don't have javascript, you don't have useless and confusing buttons. I'll try your form event handle, so thanks for that, Dan. On 8/21/07, Michael Geary <[EMAIL PROTECTED]> wrote

[jQuery] Re: Iterating over 1000 items - optimizing jquery

2007-08-21 Thread Michael Geary
> From: Dan Eastwell > I'm doing an order form for a bookstore. The order form has > over 500 items in it, so jquery runs slowly... Can't you do any of this on the server? All of the code generation - the IMG tags and the zebra striping - would cost next to nothing while the page is being genera

[jQuery] Re: Tablesorter 2.0

2007-08-21 Thread tlphipps
I have what I guess would be a feature request for the tablesorter. Some of our larger tables take a few seconds to sort and I would like to be able to display a message for our users to indicate that a sort is in progress. So basically, user clicks on , message overlays table saying "sort in pr

[jQuery] Re: Hiding and Showing behavior, where to mouseout?

2007-08-21 Thread cfdvlpr
Take a look at the .hover() method

[jQuery] Re: Problems with VALIDATE PLUGIN

2007-08-21 Thread Jörn Zaefferer
Jean schrieb: I´m so sorry!!! At least you got me thinking about that method name. If it says "jQuery(element).metadata() is not a function the solution would be much more obvious. -- Jörn

[jQuery] Re: Iterating over 1000 items - optimizing jquery

2007-08-21 Thread Dan Eastwell
I've got this: $('[EMAIL PROTECTED],[EMAIL PROTECTED]') .after("") .next("[EMAIL PROTECTED]'-']").bind('click', false, doPlusMinus) .next("[EMAIL PROTECTED]'+']").bind('click', true, doPlusMinus); Which works, but the two 'nexts' are adding maybe a second each, if I can get rid of th

[jQuery] Problem with easing function was: accordion adventures

2007-08-21 Thread Dragan Krstic
I'm writing inverted hover accordion plug in. In order to fully reproduce Apple.com menu, easing function is essential. I'm using easing function copied from Interface. That easing function causes menu to jumps. In plain version (non-plugin) this function behaves nicely. Any clues, please? plugin

[jQuery] Re: Iterating over 1000 items - optimizing jquery

2007-08-21 Thread Jonathan Sharp
Sending code via e-mail stinks! The basic logic for the after is: // Append our images $(...).after( // Create a new image element $('') // Bind your click event to it .bind('click', false, doPlusMinus) // Add the sceond image element after it .after( // You may be

[jQuery] Re: Just my two cents > Filter by ID, NAME or other tags while typing

2007-08-21 Thread SeViR
Selecting by ID's or ClassNames is simple with jQuery: $("#oneid, #anotherid").method(); $(".oneclass").method(...); but thinking in the hypothetical of you need to use non standard attributes, this example works for me: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3

[jQuery] Re: Jquery toggle headache

2007-08-21 Thread Pops
> What I was really saying with 'acting weird':. Let's say you have 3 > list items and you click the first one, it opens the way it should > (fade in). Clicking again closes the item as it should (fade out). You > can repeat it over and over and it performs right. BUT, if you click > for instance

[jQuery] Re: Incompatibility between jqem.js and jQuery 1.1.3

2007-08-21 Thread RealET
* RealET tapuscrivait, le 27/07/2007 18:05: > * RealET tapotait, le 07/07/2007 17:01: >> >> On 4 juil, 21:02, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >>> Hi all, >>> >>> Since installing jQuery 1.1.3, a major memory problem has arisen in >>> which 99% of the cpu is used. >>> >>> I did lots

[jQuery] Re: Jquery toggle headache

2007-08-21 Thread Codex
Hi Pops, Thank you for your reply and quick scan. Yeah, I knew I had to explain what was actually happening that wasn't right, but I had a bit of trouble finding the right words ;-) What I was really saying with 'acting weird':. Let's say you have 3 list items and you click the first one, it op

[jQuery] Re: Just my two cents > Filter by ID, NAME or other tags while typing

2007-08-21 Thread NccWarp9
Thanks for the comment, I wrote this in notepad and did not check for, or .. didn't care if it complied with standards, instead of name tag any tag can be used.like ID etc. The whole point was to provide an example on which someone could expand on. On Aug 21, 7:31 pm, SeViR <[EMAIL PROTECTED]> wr

[jQuery] Re: Iterating over 1000 items - optimizing jquery

2007-08-21 Thread Dan Eastwell
I think the problem with Jonathon's solution is that the added html can't have a click event bound to it? I'm not sure. I've tried stripping that code down, so that the bind click is just alerting, but that won't work. Any thoughts? .after( $('') .bind('click', false, doPlusM

[jQuery] Re: New Plugin: Live Query (previously called Behavior)

2007-08-21 Thread Brandon Aaron
Andy, That is not entirely true. It only binds the event the first time it finds the element. If you called unbind on a particular element, the event would be unbound. The only time that event would be rebound is if the Live Query was expired (.expire()) and then re-setup (.livequery()). However I

[jQuery] Re: Iterating over 1000 items - optimizing jquery

2007-08-21 Thread Erik Beeson
hmm, seems like your original version should have that problem too. Maybe the increment and decrement operators take care of the conversion. At any rate, should be: $qty_field.val(parseInt($qty_field.val())-1); And: $qty_field.val(parseInt($qty_field.val())+1); --Erik On 8/21/07, Dan Eastwell

[jQuery] Re: Iterating over 1000 items - optimizing jquery

2007-08-21 Thread Dan Eastwell
Oh, one more thing, $qty_field.val($qty_field.val()-1); Is concatenating as a string, not adding! Just a small point, and nothing compared to the errors I'd make in coding without any testing!! Cheers, Dan. On 8/21/07, Dan Eastwell <[EMAIL PROTECTED]> wrote: > No, not at all, many thanks to

[jQuery] Re: Iterating over 1000 items - optimizing jquery

2007-08-21 Thread Dan Eastwell
No, not at all, many thanks to both - I still don't think it's beaten, but I'll have another look with what you and Jonathon's examples have given me (by example) in my understanding of chaining jquery. Jonathon's is very elegant, but needs some debugging to get it to work - I think I need to wor

[jQuery] Re: Just my two cents > Filter by ID, NAME or other tags while typing

2007-08-21 Thread SeViR
You have the response. If you read quietly the xhtml11-strict.dtd you will find that name attribute is not correct for a div, and only is for a input. You can use a class by example if your elements are repeated. So your example is not correct. Also, name in form elements is deprecated to us

[jQuery] Re: Iterating over 1000 items - optimizing jquery

2007-08-21 Thread Erik Beeson
Yes, it looks like he intends to close the first 'after' before starting the second. --Erik On 8/21/07, Dan Eastwell <[EMAIL PROTECTED]> wrote: > > > Fantastic, thanks Jonathon! > > One problem - only the minus appears - does the first after call need > to be closed before the second? > > Thanks

[jQuery] Re: Iterating over 1000 items - optimizing jquery

2007-08-21 Thread Erik Beeson
heh, I took so long writing my reply, a bunch of other people replied in the mean time. Anyways, I suggest you use firebug (console.time/console.timeEnd) to see how long each version takes. --Erik On 8/21/07, Erik Beeson <[EMAIL PROTECTED]> wrote: > > You do a lot of repetitive selecting. Someth

[jQuery] Re: Iterating over 1000 items - optimizing jquery

2007-08-21 Thread Erik Beeson
You do a lot of repetitive selecting. Something like this might help (untested): $('td [EMAIL PROTECTED]').filter('[EMAIL PROTECTED],[EMAIL PROTECTED]') .after('') .next().bind("click", function() { var $qty_field = $(this).siblings('[EMAIL PROTECTED]'); if ($qty_field.val() > 0 )

[jQuery] Re: New Plugin: Live Query (previously called Behavior)

2007-08-21 Thread SeViR
The beautiful of jQuery is the extensibility of the plugins. The core of jQuery must be small, with the core methods and without complexes methods that overload the processor. In this sense, livequery is very good, I like it, but why insert it into the core? If you want allways the livequery

[jQuery] Setting the selected option in Safari 3

2007-08-21 Thread Lee Hinde
Hi; Based on this conversation: http://tinyurl.com/2qwpna I've added this code to my page function updateColor() { var currentColor = $("#setColorKey").val(); $("#color_Key option").each(function() { // $(this) is the current elem

[jQuery] Re: Iterating over 1000 items - optimizing jquery

2007-08-21 Thread Dan Eastwell
Fantastic, thanks Jonathon! One problem - only the minus appears - does the first after call need to be closed before the second? Thanks, Dan. On 8/21/07, Jonathan Sharp <[EMAIL PROTECTED]> wrote: > This can be reduced to this: > > $(document).ready(function() { > function doPlusMinus(even

[jQuery] Re: Iterating over 1000 items - optimizing jquery

2007-08-21 Thread Jonathan Sharp
This can be reduced to this: $(document).ready(function() { function doPlusMinus(event) { qty_field = $(this).parent('td').find('[EMAIL PROTECTED]'); var num = $(qty_field).val(); $(qty_field).val( num + (event.data === true ? 1 : (num > 0 ? -1 : 0)) ); } // Fi

[jQuery] Re: Problems with VALIDATE PLUGIN

2007-08-21 Thread Jean
I´m so sorry!!! On 8/20/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > > Jean schrieb: > > The error is in 795 line > > jQuery(element).data is not a function > > [Break on this error] : jQuery(element).data(); > > > Please check Dependencies section of the plugin pag

[jQuery] Re: Iterating over 1000 items - optimizing jquery

2007-08-21 Thread Dan Eastwell
Thanks Corey, I've now got my code down to what follows. If I swap qty_field for input_text in the function bound to the image button's click event, obviously, any click increments all input values. Is there any way cutting this code down further? Thanks, Dan. $(document).ready(function() {

[jQuery] Re: Cycle Plugin Killing me

2007-08-21 Thread Mike Fern
>On 8/21/07, Stephan Beal <[EMAIL PROTECTED]> wrote: > Almost every modern text editor can do this for you. To name just a > small number of them: > > xemacs > emacs > vi > vim > kate > kwrite > ... > > there are certainly some for Windows which can do this, too. (Xemacs > runs on Windows but has

[jQuery] Re: Iterating over 1000 items - optimizing jquery

2007-08-21 Thread seedy
You shouldn't need to use the .each $('td [EMAIL PROTECTED]@type=text]').after('stuff') will append to all elements that match the selector, no need to go into a loop with each. Dan Eastwell wrote: > > > Hi, > > I'm doing an order form for a bookstore. The order form has over 500 > items in

[jQuery] Re: Iterating over 1000 items - optimizing jquery

2007-08-21 Thread Dan Eastwell
Hi, I've improved my own function - to this: $(document).ready(function() { addPlusMinus("[EMAIL PROTECTED]@type=text]"); addPlusMinus("[EMAIL PROTECTED]@type=text]"); $("table.summarytable tr:even").addClass("odd"); }); function addPlusMinus(input_text){

[jQuery] Re: New Plugin: Live Query (previously called Behavior)

2007-08-21 Thread Andy Matthews
What happens though if you want to REMOVE the binding from an object. Using this plugin, it would Rebind it right afterwards. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Eridius Sent: Tuesday, August 21, 2007 11:30 AM To: jquery-en@googlegro

[jQuery] Re: New Plugin: Live Query (previously called Behavior)

2007-08-21 Thread Eridius
This should be intergrated in the core jquery, i think it could replace .bind since it does the same thing but more without have to change any parameters, just to to the change c.bind to .livequery. duma wrote: > > Oh, this is DOPE dude!! This is destined to be integrated into jQuery; > this

[jQuery] Re: Fwd: jQuery and UTF8

2007-08-21 Thread barophobia
On 8/21/07, R. Rajesh Jeba Anbiah <[EMAIL PROTECTED]> wrote: > >I had work with lot of UTF-8 and had no problem: > 1. You don't have font? > 2. or Your current charset is different from one that is been loaded? > 3. or Do you have any link for me to check? 1. I do have the font. It appears co

[jQuery] Iterating over 1000 items - optimizing jquery

2007-08-21 Thread Dan Eastwell
Hi, I'm doing an order form for a bookstore. The order form has over 500 items in it, so jquery runs slowly. There is no way I can change the number of items, it's a given and a piece of business 'logic'. The jquery I have comprises four simple functions to add increment/decrement buttons to th

[jQuery] Re: Jquery toggle headache

2007-08-21 Thread Pops
Codex, I played with your code and this is what I found: Yes, It acted "wierd!" First, I think that was because of the onFocus= on the tag link which will fool with your mind depending on where is the current keyboard focus including switching browser pages. :-). Changing it to OnClick= be

[jQuery] Re: Fwd: jQuery and UTF8

2007-08-21 Thread R. Rajesh Jeba Anbiah
On Aug 21, 8:11 pm, barophobia <[EMAIL PROTECTED]> wrote: > On 8/21/07, R. Rajesh Jeba Anbiah <[EMAIL PROTECTED]> wrote: > > 2. or send the UTF-8 charset header via header(); browser should > > handle > > All the UTF-8 data is stored in a database. > > Regarding #2. I put header('Content-type:

[jQuery] Re: New Plugin: Live Query (previously called Behavior)

2007-08-21 Thread duma
Oh, this is DOPE dude!! This is destined to be integrated into jQuery; this is a real problem for dynamic web pages right now. THANKS!!! Sean Brandon Aaron wrote: > > Some of you may be familiar with Behavior. It was a first attempt at > implementing a "live DOM" experience. Behavior has bee

[jQuery] Re: add class to row object of table

2007-08-21 Thread Roberto Gilberti
2007/8/21, Potluri <[EMAIL PROTECTED]>: > > > Hi, > My table format is this > > > > some data > some data > some data > some data > > > I have a small issue which might be easy for jquery pros. > > Initially I'm saving up all the table rows as suggested by George(Thanks to > him) in my

[jQuery] Re: Fwd: jQuery and UTF8

2007-08-21 Thread barophobia
On 8/21/07, R. Rajesh Jeba Anbiah <[EMAIL PROTECTED]> wrote: > > Either: > 1. Save the file in UTF-8 > 2. or send the UTF-8 charset header via header(); browser should > handle All the UTF-8 data is stored in a database. Regarding #2. I put header('Content-type: text/html; charset=UTF-8'); right

[jQuery] Re: .change() and IE bug

2007-08-21 Thread Eridius
After looking at that plug-in i decided to use that. That plug-in is so sweat, that allowed to to keep my code on one page which is a lot cleaner. R. Rajesh Jeba Anbiah wrote: > > > On Aug 20, 6:13 pm, Eridius <[EMAIL PROTECTED]> wrote: >> I have now just tried >> >> destination.load('/lib/a

[jQuery] Re: Cycle Plugin Killing me

2007-08-21 Thread Mike Alsup
Mitch, I've just fixed a bug in the scroll transitions. v1.8 is available now and should fix the problem. Give me a shout if you're still having troubles. http://www.malsup.com/jquery/cycle/download.html Mike > I got it to work, thank you guys, as you can see here (wait a few > seconds for

[jQuery] Dinamically add elements to a existing jCarouselLite

2007-08-21 Thread thorfinn
Hi jQuery folks, i'm trying to create a page where a new element is to be added to an existing carousel. The new element's content is coming from some ajax call and it should fit dinamically into the existing carousel forcing it to reinitialize (i suppose). Ex. THIS IS THE HTML MARKUP OF T

[jQuery] Re: changing class

2007-08-21 Thread [EMAIL PROTECTED]
fixed: $(this).toggleClass('pop').toggleClass('tart').ajaxStop(function(){}); On Aug 21, 12:58 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > hi > > i'm trying to change the class of a label and i'm using this: > > $('label').click(function(){ > > $(this).toggleClass('pop').toggleC

[jQuery] Re: $('#id').Pulsate(500, 100) .stop ??

2007-08-21 Thread Stephan Beal
On Aug 21, 9:58 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > i use $('#id').Pulsate(500, 100); but i cannot found where i can stop > my pulsate or how i can do this ? The docs: http://interface.eyecon.ro/docs/fx say that the arguments are (duration,times), which means that your pulsing

[jQuery] Re: Cycle Plugin Killing me

2007-08-21 Thread Stephan Beal
On Aug 21, 4:14 pm, Mitch <[EMAIL PROTECTED]> wrote: > Im going to do this from now on, its a really good idea. I wish there > was some kind of program that could scan the jQuery and correct braces > or at least tell you where they are wrong. Almost every modern text editor can do this for you. T

[jQuery] Re: Cycle Plugin Killing me

2007-08-21 Thread Rey Bango
Mitch, Firebug picked up the missing bracket as soon as I loaded the original page. Are you running FF with Firebug? If not, its definitely a lifesaver. Rey Mitch wrote: Im going to do this from now on, its a really good idea. I wish there was some kind of program that could scan the jQuery

[jQuery] Re: Cycle Plugin Killing me

2007-08-21 Thread Mitch
Im going to do this from now on, its a really good idea. I wish there was some kind of program that could scan the jQuery and correct braces or at least tell you where they are wrong. On Aug 21, 3:17 am, [EMAIL PROTECTED] wrote: > If you sort your indentation you could spot these things a lot eas

[jQuery] Re: Jquery toggle headache

2007-08-21 Thread Pops
On Aug 20, 4:50 pm, Codex <[EMAIL PROTECTED]> wrote: > It's sort of working, but the toggle seems to be acting weird. Can > someone please go over the code and tell me what I might be doing > wrong? A quick scan appears to be logical. What's wrong? Describe "Acting Wierd." By not being spec

[jQuery] Re: Cycle Plugin Killing me

2007-08-21 Thread Mitch
I got it to work, thank you guys, as you can see here (wait a few seconds for the fade to occur). http://www.whatbird.com/wwwroot/Components/cycle%20demo.html However I cant get the special effects to work. For example this link, which uses $('#birds').cycle( {fx: 'scrollDown'} ); should do a

[jQuery] Re: Passing variables to a dynamically loaded script

2007-08-21 Thread Stephan Beal
On Aug 21, 2:15 pm, Christopher <[EMAIL PROTECTED]> wrote: > What I have ended up doing (and haven't tested beyond firefox2) is > using a regular $.get and doing an eval() in the callback. This seems > to allow me to use the variable I need within test.js, but it really > seems that there should

[jQuery] Re: Passing variables to a dynamically loaded script

2007-08-21 Thread Pops
I'm not seeing the picture of your application design requirements, but is using session cookies out of the questions to memorize the page ids? Yes, depending on eval() can bite you. Most of our "user access" stuff is server driven to customize user pages. It takes away any security loophole if

  1   2   >