Tagged Questions
0
votes
1answer
21 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
31 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
235 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
69 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
3k 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
762 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
105 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
313 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
411 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
214 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
2k 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
478 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 ...
2
votes
1answer
667 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
840 views
Redirect to another page using contact form 7?
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
313 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');
...