[FX.php List] JQuery and posting image-upload forms
Jodi Buckingham
jbuckingham at thinkconnected.com
Thu Aug 18 10:36:52 MDT 2011
Can you remove me from this list?
Thanks...
Sent from my HTC Inspire™ 4G on AT&T
----- Reply message -----
From: "Bob Patin" <bob at patin.com>
To: "FX.php Discussion List" <fx.php_list at mail.iviking.org>
Subject: [FX.php List] JQuery and posting image-upload forms
Date: Thu, Aug 18, 2011 10:02 am
Well, I do know about submitting with Javascript, but my goal is to stay within the same page for everything on this web application.
So my quesiton is this:
I have a page called index.php that loads various pages into a DIV; in this case, it's a page called "upload.php" that I would use to upload documents.
Can I submit a form from "upload.php" and stay within this DIV the entire time? I could just load an exterior page, perhaps in another window or tab, but I'm trying to avoid that and have hte entire web app work within this one page (index).
Does that make sense?
Bob
bob at patin.com
On Aug 18, 2011, at 10:24 AM, Steve Winter wrote:
Hi Bob
Then that is using Ajax, and no, that won't work as written because you're not actually posting the form itself, you're building an array of values which you are then posting...
What you could try, instead of doing $.post(... as you do below, is actually then do a 'return true' which should then actually submit the form...
Is there some reason why you want to do this with Ajax, rather than just submitting the form....?
Cheers
Steve
More information about the FX.php_List
mailing list