0
votes
1answer
51 views

Ajax contact form return 0

I have a contact form that I want to submit using ajax. It seems like send the data, but the only retrieved is 0. HTML form: <form method="post" ...
0
votes
1answer
41 views

How do I convince this button to do something when it is clicked?

I'm trying to use ajax to give me an alert when I click a button. Eventually I want it to do some form validation, but for now I would be happy just to see the alert. I've read the docs and about a ...
0
votes
1answer
125 views

Form isn't inserting data into database with ajax plugin

I've been working at this for weeks without success. I've figured out problem after problem with the code, but none of the corrections seem to fix my core problem. The form doesn't insert anything ...
1
vote
0answers
174 views

jQuery and AJAX Not working with Select Form Element

I seem to be having a strange issue with jQuery and a newly-created AJAX form/function. I'm pretty new to AJAX so please bear with me. Here's the jQuery: ...
0
votes
1answer
98 views

jQuery form plugin, submit in the wordpress way

Trying to use jQuery form plugin in wordpress site to upload files. HTML markup: <form id="myForm" action="process.php" method="POST" enctype="multipart/form-data"> <input type="file" ...
0
votes
0answers
138 views

Gravity Forms, multi-page, loading dropdowns dynamically, dropdown values clearing on submit

Using a two-page multi-page Gravity Form with AJAX. I have an issue with one of my dropdown's clearing it's $_POST value on submit. I have: A US States dropdown - loading dynamically via ...
0
votes
0answers
115 views

Nonces and Cache

It's clear that form submissions and AJAX requests, especially sensible ones, need "nonces" to avoid certain exploits. However, with heavy use of caching systems it becomes harder to generate them ...
0
votes
1answer
1k views

Accept AJAX call with serialized form data

I'm trying to pass a wordpress plugin some form data via ajax and it works just fine, unless the form data is serialized, then the server responds with an error message. I'm stuck with this for days ...
0
votes
1answer
272 views

Ajax Form seems to post, but does not return

I have a very simple form with 3 checkboxes allowing users to flag a video as inappropriate. I'm trying to make a simple ajax request to create an email, and give the user some feedback. The form ...
0
votes
1answer
144 views

Using admin-ajax prevents regular php form submission

I have a page with a table of posts and groups of checkbox filters in the sidebar. Looks something like this: www.example.com/toylist |___________| |_______________________| | [ ] Red | | ...
0
votes
0answers
76 views

Ajax call activate after submit in edit-tags.php page

Is there a proper way to activate a ajax call in wordpress in the edit category page after the submit is pressed?
1
vote
0answers
122 views

Dynamically add more fields/remove last field in a form

What I want to achieve is to build a form, which contains buttons "add one more field" and "remove last field" that would do exactly this - add a field dynamically to my form or remove the last one. I ...
0
votes
1answer
52 views

Using AJAX with Forms

I am attempting to validate and submit a form using AJAX in WordPress, however, the response that I am getting is 0. According to the codex, this would seem to indicate that admin-ajax is unable to ...
0
votes
1answer
109 views

POST from jQuery to PHP

I have a form that passes field values to jQuery, which validates the fields and creates the variables being sent in data: {} in the snippet below. $.ajax({ type: "POST", url: "<?php ...
0
votes
1answer
70 views

Capturing POST data

I am trying to modify the Member Status Plugin so that the status are based on the data saved on a custom database table. Basically I wanted to change the administration menu with a form that can ...
1
vote
0answers
414 views

jQuery Plugin to use Wordpress functions in AJAX request

I'm using Chained Selects jQuery Plugin to create multiple chained selection fields. I'm using the remote version of the plugin to build the related options by means of AJAX request from a separate ...
0
votes
2answers
126 views

Ajax Plugin Not Echoing Response

I have created a plugin that will submit a form via ajax. Below is the php function. add_action('wp_ajax_nopriv_audience_intel', 'audience_intel_ajax'); add_action('wp_ajax_audience_intel', ...
0
votes
2answers
15k views

How do I Upload/Import Form (Input) Files via. Ajax function?

I keep running into an issue getting the file(s) added/switched to ajax so that the server ajax handler can deal with the rest. How can I get the $_FILES to be passed the same as with the default ...
0
votes
1answer
1k views

Using AJAX to run sql statement and populate dropdown

I am trying to create a search where the user select two different bit of data from databases and it them prints some results that meet requirements. I know I need to use ajax or something similar but ...
1
vote
0answers
162 views

Ajaxify Form That Submits To Same Page To Display Post Data

I have a drop down menu that submits one of several filter options. The options are submitted to the same page, where post titles are displayed based on these options. The form is working fine, but I ...
0
votes
1answer
426 views

Converting a working AJAX form to work with Wordpress

I have a working html form with jQuery validation and have been submitting the data with AJAX, I am now trying to copy this form in to my own Wordpress theme, but I can't see where I am going wrong in ...
0
votes
2answers
745 views

Specify ABSPATH in jQuery url

I'm building a custom jQuery form and I need to specify the siteurl in the url that loads /wp-admin/admin-ajax.php. I place this code in the template that has the form: <script ...
0
votes
3answers
316 views

Page reload occurs before request finishes

I wrote a plugin to send an invitation to a friend and am submitting a form using AJAX and used the tips talked about in 5 tips for using AJAX in wordpress and another article referenced in the AJAX ...
1
vote
2answers
4k views

Using AJAX in a plugin to submit form - REALLY confused

Having a bit of trouble using all the Wordpress ajax hooks, and functions. Been reading this post: 5 Tips for Using Ajax in Wordpress But became confused after trying all the code and applying it to ...
0
votes
1answer
742 views

How can I use AJAX to save/update a widget form?

My custom widget's form will have two pull-down menus: the content of the second menu is dependent on the user's selection in the first menu (think of the way Country and State/Province works). I ...
3
votes
1answer
1k views

ajax - why multiple calls to wp_create_nonce() return same value?

I've some trouble getting nonces working with my ajax submit form. First of all i create a nonce and pass it to my registered script, i'll later send it to ajax-handler packed with my form fields: ...
0
votes
2answers
1k views

Redirect to another page using contact form 7? [on hold]

I'm using CF7 to send some information to my email and everything's working fine, but I need to redirect the users to a different page after the email has been sent, by default the forms are sent to ...
0
votes
1answer
345 views

jQuery forms & updating info

I'm attempting add some ajax to an existing script, all goes well for the first submit, but subsequent ones are not working as expected. add_action('wp_head', 'my_special_action_javascript'); ...