[jQuery] Load JSON, Use It via Callback, Then Destroy?

2009-02-01 Thread nathanziarek
I'm repeatedly loading data via JSON every 2 seconds or so to keep a page updated. Each time data is returned. I take the data, update a list (the list can only have 5 items) and then never reference the data again. If I let this run for an hour, it crashes Safari. Looking at the inspector palett

[jQuery] Re: Having trouble thinking through the "how": make node, append (w/o showing), then fade in ...

2008-12-08 Thread nathanziarek
Ah-ha! I'd love to know more about the internals at play here, but rearranging the "hide()" and the "appendTo" commands did the trick. For anyone else that might stumble across this thread: $('') .append( $('').val(item.a) ) .appendTo('myList').hide() .slideDown() ...works great. Than

[jQuery] Re: Having trouble thinking through the "how": make node, append (w/o showing), then fade in ...

2008-12-08 Thread nathanziarek
I really appreciate your helping with this. I'm still not sure what wasn't working with Ryura's code, but after copying and pasting it to a new document, it too works for writing the elements to the document. The hide() and slideDown() commands don't seem to be getting through, though. Here is th

[jQuery] Resize to fit all text (needing scrollHeight?)

2008-12-07 Thread nathanziarek
I want to adjust a to fit all of the text within. I tried toying with the dimensions plugin, but it doesn't offer the scrollHeight attribute, which is what I think I need. Before I go journeying off on a wild tangent to my actual project, I wanted to make sure that a) I'm barking up the right tre

[jQuery] Re: Having trouble thinking through the "how": make node, append (w/o showing), then fade in ...

2008-12-07 Thread nathanziarek
Thanks Ryura -- That's exactly what I thought I could do, but could not get it to work. That's when I came up with my much less elegant solution that works OK, but I have the feeling has some serious shortcomings. The error I get with your solution is "Value undefined (result of expression "".hi

[jQuery] Having trouble thinking through the "how": make node, append (w/o showing), then fade in ...

2008-12-07 Thread nathanziarek
I'm having a hard time working through this in my mind (and a much harder time in code.) I am receiving a JSON array. I am then looping through each result, and trying to create three text boxes within a list item for each line of data. The result should look like this: ... Once that node is cr

[jQuery] [autocomplete] INPUT/SELECT hybrid (show all results?)

2008-07-11 Thread nathanziarek
Eventually using the autocomplete on this project will be the fastest way to maneuver. At the beginning, however, users won't know all of the options available. What I'd like to do is offer a "drop down" of sorts showing all of the options available. If the user already knows the option, though, I