[jQuery] Re: Ajax uplaod

2009-06-25 Thread sinkingfish
Turns out the problem was with 'var'. Changed 'clickedItem = this;' to 'var clickedItem = this;' solved my problem. I'm going to have to read up on var, it was my understanding that using var within a function made it local. Hmmm... ?? sinkingfish wr

[jQuery] Ajax uplaod

2009-06-25 Thread sinkingfish
I'm doing some ajax image uploads using the plugin at valums.com (thanks). I have multiple images on the page which I will be replacing with the uploaded image. My problem is this, trying to refer to the clicked image within the onComplete function. I tried creating a variable that refered to '

[jQuery] Re: Interface sortable: Limit of elements which can be dragged into a droppable

2009-06-17 Thread sinkingfish
I'm also looking for an elegant solution to this. Did you have any luck? I've implemented it with sortables, but don't have return animations. Is there a better way of achieving this? I've uploaded here for example http://www.sinkingfish.com/target.html http://pastie.org/514867 Thanks Brian

[jQuery] Special Entities returned in json via plugin Ajax upload ??

2009-05-08 Thread sinkingfish
Hi I'm using the ajax upload plugin (http://valums.com/ajax-upload/) to upload images to the server. I'm then storing the images in an image cache and returning to the client 2 pieces of info in a json object, 1 the imageId & the url to display the image. The problem I'm having is that the plug

[jQuery] Getting all children, not just immediate children??

2009-04-01 Thread sinkingfish
Hi I trying to write a script which allows for easily hiding and revealing content by just specifying the correct class names. The problem I'm having is that my current script will only toggle elements if the 'toggletarget' is a immediate sibling of the 'togglebutton'. My problem is that the 'to

[jQuery] Posting a serialized string without Ajax ??

2009-02-04 Thread sinkingfish
Hi, I think i might be overlooking the obvious but I've got a string from my sortable list, something like : item[]=3&item[]=1... I don't want to post this using ajax, I want to do a plain old post, but how do I append the string to the post url? Thanks Brian -- View this message in context:

[jQuery] Re: Nesting toddle div's

2008-11-16 Thread sinkingfish
- No need to compare event.target, nor return false, since you are binding > to elements with no descendants > > - Richard > > On Fri, Nov 14, 2008 at 12:34 PM, sinkingfish <[EMAIL PROTECTED]> > wrote: > >> >> >> Thanks for the reply Richard, unfortunat

[jQuery] Re: Nesting toddle div's

2008-11-14 Thread sinkingfish
intend it to be nested. Once you've > corrected that, let us know if you still have a problem. > > - Richard > > On Fri, Nov 14, 2008 at 10:26 AM, sinkingfish <[EMAIL PROTECTED]> > wrote: > >> >> >> Hi, >> >> Im new to jQuery and look

[jQuery] Nesting toddle div's

2008-11-14 Thread sinkingfish
Hi, Im new to jQuery and looking for a bit of help. Im trying to have toggleable content within toggleable content. http://pastie.org/314861 Code It's just not working for me, when I click the first toggle all is revealed? Am I way off? Something to do with propagation? Thanks Brian -- Vi

[jQuery] toggle show hide - help

2008-11-13 Thread sinkingfish
Hi, Im working my way through the book 'jQuery in Action' and i'm a bit stumped with a block of code and how it works. The Code : $(function(){ $('li:has(ul)') .click(function(event){ if (this == event.targ