[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}; $('#imageUploader1').ajax

[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, Alan 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 exact cod

[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-03 Thread Alan
Wow, Brian, thanks so much for taking the time. I really appreciate it. On Sep 3, 8:06 pm, brian wrote: > On Thu, Sep 3, 2009 at 10:23 PM, Alan 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-03 Thread brian
On Thu, Sep 3, 2009 at 10:23 PM, Alan wrote: > > Thanks, Brian. I appreciate it. > > As mentioned, the document has the following script references in > ... >         >         >         > > As a result of a user action, JavaScript (from script.js) generates a > form and inserts it into the html o

[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 ... As a result of a user action, JavaScript (from script.js) generates a form and inserts it into the html of a table cell. It also calls the Ajax form function to regist

[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 c