We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Form action | Forum

Sean
Sean Nov 21 '13
Okay, so I have a JavaScript upload module that I'm using as a fancy way to upload files to the site.


I've created a plugin and made a widget for the index page to house the uploader.


The uploader needs the 'action' part of a form to be set so it knows what logic to use to process the files.


My problem is that Oxwall uses JavaScript to submit form data back to the php page it came from.


What can I put in the 'action' tag so the form submits to itself?


I've tried '?' but this just causes the form to try and submit to index.php.


Help?

Alia Team
Alia Nov 22 '13
Topic was moved from Bug reports and troubleshooting.
Daisy Team
Daisy Nov 27 '13
Sean, you can use the setAction function described in /ow_core/form.php file.

Also, we suggest that you download our new Plugin Skeleton plugin to see how the forms work. Here is URL to the Store item: http://www.oxwall.org/store/item/695