[jQuery] JSON error: " missing } after property list"

2009-08-29 Thread twitchy
Why does this JSON generate the error "missing } after property list" in Firebug? What's missing? {"newitem": " Test Title 10 Test Caption 10drag to reorder "} Guessing the error lies outside this code block but not sure how to track down the problem.

[jQuery] scrollTop remembers it's own history?

2009-04-04 Thread twitchy
I can't find the example I just posted, and this is stripped down quite a bit. I just want to record the scroll bar position before a click to a feature and go back when finished with that feature. This works, except that it builds a history of where the scrollTop positions were when the feature

[jQuery] Clearing data from function between uses?

2009-04-04 Thread twitchy
This code attempts to determine the position of the browser scroll bar before clicking to a feature and then return to that position when the feature is closed. It works. But it is also building a history of every position for every time the feature is used, which I don't want it to do. So, the f