[jQuery] Re: simple JSON parse problem!!!

2009-07-02 Thread theozmanbo
Thanks everyone. as it turns out it was that stupid uploadPictures thing. That happened because in the php script I was echo'ing it to test something and forgot to remove it. Once it was there and I was testing JSON I guess it looked natural to me and I didn't notice that it was wrong? I simply r

[jQuery] Re: simple JSON parse problem!!!

2009-07-01 Thread theozmanbo
Is it because of the uploadPicture part? Why isn't it valid? Sorry for all these stupid questions. -- View this message in context: http://www.nabble.com/simple-JSON-parse-problem%21%21%21-tp24283450s27240p24289615.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.

[jQuery] Re: simple JSON parse problem!!!

2009-07-01 Thread theozmanbo
Okay - well here's what I'm really doing. I'm using an ajax upload plugin and in the callback function, which returns a variable "data", I need to parse it into a JSO so I can use it. Right now it's just a string. onComplete: function(file, data) { $('

[jQuery] simple JSON parse problem!!!

2009-06-30 Thread theozmanbo
Why won't this work??? Nothing pops up for the alert. var theObject = {"key": "value"}; var JSON = eval ("("+theObject+")"); alert(JSON.key); -- View this message in context: http://www.nabble.com/simple-JSON-parse-problem%21%21%21-tp2428

[jQuery] Event for when a is changed?

2009-06-30 Thread theozmanbo
How can I trigger a jquery event for when a user changes the option that is selected in a select statement? I need to update a variable with the new selected item when this happens. thanks -- View this message in context: http://www.nabble.com/Event-for-when-a-%3Cselect%3E-is-changed--tp2428155