[jQuery] Wait for a certain word in array before executing when using .each loop

2009-06-01 Thread SmpleJohn
Here's my jQuery: var arr = ['621|342| ','620|343| ','622|342|clicked']; for (var i=0; i < arr.length; i++){ var splode = arr[i].split('|'); xPos = splode[0]; yPos = splode[1]; click = splode[2]; $('#box').animate({top: yPos+'px', left: xPos+'px'},15); if (click === 'clicked'){ alert(

[jQuery] Re: $.ajax POST single quote issues...

2009-02-24 Thread SmpleJohn
Well, I can't figure out how to delete this, but there was nothing wrong with the js. Apparently it's my lack of knowledge of php. I needed to write to the db as an escape string and I wasn't. Until next time...

[jQuery] $.ajax POST single quote issues...

2009-02-24 Thread SmpleJohn
Alright, so here's the code I'm using (minus all the fluff): $.ajax({ type: 'POST', url: 'add-item.php', data: 'desc='+ $('#description').val() }); return false; With #description being the id of my input field on the form. Everything works properly except when I thro

[jQuery] Re: Hover Repeats Over and Over...

2008-12-03 Thread SmpleJohn
This worked. Still has a bit of bugs, but doesn't loop infinitely. Thanks for you help. My final code: $("#header").hover(       function(over){           $("#header #menu").stop(true,true).slideDown();       },       function(out){            $("#header #menu").stop(true,true).slideUp();  

[jQuery] Re: Hover Repeats Over and Over...

2008-12-03 Thread SmpleJohn
uery > animations cannot be stopped once they've started it's best not to > start them prematurely. > -- snip -- > > On Wed, Dec 3, 2008 at 9:40 AM, SmpleJohn <[EMAIL PROTECTED]> wrote: > > > It's amazing I can't find anything helpful on this.  When

[jQuery] Hover Repeats Over and Over...

2008-12-03 Thread SmpleJohn
It's amazing I can't find anything helpful on this. When I use hover over and out with and animating technique, then mouse over it quickly, it bugs out. Here's my code: $("#header").hoverIntent( function(over){ $("#header #menu").slideDown();