[jQuery] Re: An idiot's question about returning results from a form submission

2009-09-04 Thread Alan
Wow, Brian, thanks so much for taking the time. I really appreciate it. On Sep 3, 8:06 pm, brian bally.z...@gmail.com wrote: On Thu, Sep 3, 2009 at 10:23 PM, Alanalanmand...@gmail.com wrote: Thanks, Brian. I appreciate it. As mentioned, the document has the following script references in

[jQuery] Re: An idiot's question about returning results from a form submission

2009-09-04 Thread Alan
When you say... Then, in your JS function, test the returned text for failure or reject first, or parse the JSON object and create a new image tag with the supplied src, width, height. ... what's the exact code for parsing the JSON object within my current structure?

[jQuery] Re: An idiot's question about returning results from a form submission

2009-09-04 Thread brian
On Fri, Sep 4, 2009 at 9:48 AM, Alanalanmand...@gmail.com wrote: When you say...        Then, in your JS function, test the returned text for failure or        reject first, or parse the JSON object and create a new image tag        with the supplied src, width, height. ... what's the

[jQuery] Re: An idiot's question about returning results from a form submission

2009-09-04 Thread Alan
Thank you, once again, Brian. I got everything working by replacing... $('#imageUploader1').ajaxForm(function() { alert(I wish I could post the actual server response.); }); with... var options = {success: showResponse};

[jQuery] Re: An idiot's question about returning results from a form submission

2009-09-03 Thread brian
I've done this. The PHP script can just echo the path (from webroot) to the saved image. You'd then just create a new Image, assign the src, and add it to the DOM. What I do, though, is echo a JSON object with the src, width, and height, then append the image. If you post your code, I'm sure we

[jQuery] Re: An idiot's question about returning results from a form submission

2009-09-03 Thread Alan
Thanks, Brian. I appreciate it. As mentioned, the document has the following script references in head... script src=script.js/script script src=jquery.js/script script src=jquery.form.js/script As a result of a user action, JavaScript (from script.js) generates a form

[jQuery] Re: An idiot's question about returning results from a form submission

2009-09-03 Thread brian
On Thu, Sep 3, 2009 at 10:23 PM, Alanalanmand...@gmail.com wrote: Thanks, Brian. I appreciate it. As mentioned, the document has the following script references in head...        script src=script.js/script        script src=jquery.js/script        script src=jquery.form.js/script As a