By mokargas on
Hey there all, I need a bit of help with my website
I'm making a gallery which is public. Users can submit pictures to this public gallery using a simple 'Add Image' button.
Currently, when a user clicks on the 'Add Image' button, a thickbox modal box is generated containing an add image form like:
//Place image.module form
$image_form .= drupal_get_form("image_form");
print $image_form;
This prints the form out as expected, and I can use the functions of the form. The only issue is, when I press submit, it redirects me to the standard Add Content pages (with all fields filled) and I need to press submit on that form in order to submit.
Is there a way to stop my embedded form from going to the normal Image submit form and instead, just create derivatives and add to the database?
Comments
Ok I have submission working
Ok I have submission working on the form, but don't know how to ajax it.
How can I ajax the form so I don't need to leave the page?
Ok I'm trying to use jQuery
Ok I'm trying to use jQuery to submit my form - currently it works without the ajax, but strangely, not with it
Here's what I'm using
can anyone figure out why this may not work - the form appears to submit, but all I get is the following in the address bar
No one's ever made drupal
No one's ever made drupal forms submit via ajax I take it?