0
votes
0answers
24 views

load blog post with AJAX

I want to be able to load a specific blog post without reloading the page. I was thinking to use prettyphoto which is already installed in the theme which I'm using, I added this : <a ...
0
votes
0answers
18 views

Contact Form 7 conflict with Advanced Ajax Page Loader plugin

I am using Advanced Ajax Page Loader plugin form loading my pages. One of the pages contains Contact Form 7. When the page loads, it shows fine but when I try to submit the form, contact form 7 ...
1
vote
0answers
39 views

Ajax : Call undefined function plugin_function() … can't call any plugin function

I use a Ajax query to show some content, but I can't use any of my plugins functions. Javascript : $('#load_more').click(function() { var data = { action: 'load_more', id: ...
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 ...
0
votes
0answers
244 views

How to create load more button without a plugin?

I'm using Jobroller Apptheme, it will show the first 10 jobs list in the home page with pagination which allows to go next page. But I would like to create a load more button instead of normal ...
0
votes
1answer
67 views

jQuery AJAX call not executing in Plugin

I've been working on a class for my free plugins that outputs a "Donate" form. The "No thanks" dismissal link hides the form and runs an AJAX call to update a WP Option keeping track of the ...
1
vote
0answers
29 views

wordpress file upload with ajax when site is ajaxyfi

I am getting problem in upload any file. My word press site is using Ajax Page Loader Plugin.So page is not refreshing when the form is submitting.. I am not getting any value in PHP code in ...
0
votes
2answers
85 views

What are the Best Practises When Using AJAX in Plugin Development?

I am in the middle of creating a plugin and everything works fine with the AJAX calls but one question I can't seem to find the answer to is about best practise. I route the AJAX calls through ...
1
vote
1answer
85 views

What's the best way to implement AJAX in WordPress?

WordPress has a framework in place for handling AJAX which is well documented here: http://codex.wordpress.org/AJAX_in_Plugins My concern with this is that every time you execute an AJAX query, (even ...
1
vote
0answers
237 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 ...
1
vote
0answers
59 views

Post Comments with Ajax in Wordpress

I use this code to post comments with ajax on my WP blog. It works fine but I display the comment form on my homepage so the plugin only works for the first post (first comment form). I want it to ...
1
vote
1answer
86 views

How to Create a Custom Panel and Fields in Post Page [Plugin]

I would like to write a custom plugin that adds a custom panel below the post compose panel that will have a few fields and a submit button. JS will kick-in to submit content to the database, without ...
2
votes
1answer
76 views

How to include admin-ajax when loading external javascript

I'm creating a plugin that has some external Javascript and some AJAX calls ... but I don't know the best way to make reference to the admin-ajax.php file since the path requires some input from PHP ...
0
votes
1answer
56 views

My AJAX API plugin isn't working

I've created a tiny AJAX plugin to count hits on my articles and bypass caching but it just isn't working and not throwing up any errors. Can you see what I am doing wrong here? <?php ...
0
votes
3answers
214 views

I can't access wordpress functions from an ajax php call

I've seen a few questions similar to this but I can't find a solution to the issue I have. <?php add_action('wp_ajax_nopriv_LogHit_callback', 'LogHit_callback'); ...
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
1answer
141 views

Adding inside wp-plugin jQuery script that receives JSON-formatted data, generated by php-function inside this plugin

I'm trying to add Highstock chart in my plugin. It requires input data in json format. But I have some troubles with default json parser in jQuery. I've already read this article, but still can't ...
1
vote
1answer
276 views

AJAX search as you type?

I'm trying to implement a kind of "search as you type" feature with the Search bar. Essentially, I'd like to have the user begin to type, make some kind of ajax request after each key, and then ...
0
votes
3answers
66 views

where do I send my ajax calls

Fighting to create an ajax request. I've been reading couple of articles but still I can't get my plugin to send and recive ajax datas. first init the js function ajax_load_scripts() { ...
0
votes
1answer
65 views

ajax sends data to plugin

I'm trying to send datas via jquery ajax to my plugins class to update a filed in a table and I'm getting the following error Fatal error: Call to a member function query() my class looks like ...
1
vote
1answer
57 views

Execute a function using ajax

I have a function called function getSingleAmazonProduct($asin=''). It returns an amazon product. I have a form field to enter the $asin. <div id="asinform"> <form ...
0
votes
1answer
159 views

Call plugin with php function

This plugin only works as widget. I need call this plugin with php function. How to modify this code ? <?php /* Plugin Name: AJAX Calendar Plugin URI: ...
0
votes
1answer
93 views

How to implement a plugin featuring foursquare like check-in

I need to add a check-in feature (very similar to foursquare check-in) in worpress based site. There will be "Check in" button at the top of the web site, and clicking on it the visitor will be ...
0
votes
1answer
764 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 ...
0
votes
0answers
41 views

apply changes via ajax in plugin [closed]

I'm writing a wordpress plugin where registered users with a specific role are listing, but I can not run that for each user, the admin can update the data in the user profile without leaving the ...
0
votes
1answer
352 views

Pulling Advanced Custom Fields from other pages

Basically I am using Advanced Custom Fields and have an ajax tabbing system that works with the ACF. The current set up is below: <ul class="css-tabs"> <li><a class="current" ...
0
votes
2answers
230 views

ajax front-end increment views on click

I'm using a redirect plugin that adds rewrites to the permalink. I want to count views on the front-end since I can't hook into the single.php as a result. This seems to be close, but it isn't ...
1
vote
1answer
470 views

How to put JQuery/Ajax inside shortcode?

The purpose of this plugin is to create a list that users can modify with up or down votes. The shortcode is supposed to display the list on a page and use JQuery to fadeIn and fadeOut while updating ...
3
votes
1answer
405 views

How to add a sub menu with AJAX?

What i want to do is fire up the add_submenu_page() function from within ajax on my plugin options page. When i click an "Add League" link, i want to display an ajax input[text] that will save into ...
0
votes
2answers
226 views

Why plugin ajax response is -1?

I do not know why this response me -1 always? I am using this code in my plugin file. i want response on click p tag <?php function myajax(){ ?> <script type="text/javascript"> ...
0
votes
2answers
97 views

AJAX call - failling to call do_action

I am trying to make an AJAX call for a plugin. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script ...
0
votes
3answers
120 views

Trouble After Update, Removing Plugin

I'm editing this site http://www.millermusicproductions.com/ currently and I updated WP 3.0.1 to 3.3.1. After updating, the page now is zoomed in compared to how it had been and I have no idea why. ...
0
votes
1answer
427 views

Problem running Ajax in Wordpress

FIXED I changed this: wp_enqueue_script( 'pfxconversion', plugin_dir_url( __FILE__ ) . 'function.js', array( 'jquery' ) ); wp_localize_script( 'pfxconversion', 'MyAjax', array( 'ajaxurl' => ...
0
votes
1answer
108 views

Ajax request sends url rather than data

I have a very weird error running on my plugin. I am currently developing a plugin that will allow the user to create routes and specific dates for the route. The dates are more or less tickets that ...
0
votes
1answer
279 views

Problem with ajax plugin for refreshing posts

Im using a cool plugin called "wp ajax random posts". It basically lets me call a function into a template that can auto refresh a loop of posts. It works great until I tried to change the loop ...
0
votes
1answer
51 views

Trouble Removing Plugin [closed]

I'm editing this site http://www.millermusicproductions.com/ currently and I am trying to get rid of the login in the upper-right corner. I go to plugins and deactivate a plugin called "Login with ...
0
votes
1answer
78 views

grab or load text on demand

What i want to do I want some content (could be stored any where in a post or custom field) to load only when the user clicks for it to load. This content could be any thing (text,images,html etc) ...
0
votes
3answers
625 views

Ajax save data to database on document ready, no data being saved

I have written a plugin which collects stats on document ready. Keep in mind that my database table is already created. I've added the following code to do the ajax code add_action( 'wp_head', ...
0
votes
2answers
368 views

Why none of the plugins that have ajax doesn't work in my website?

This is my website. I installed many plugins but if a plugin have ajax, then it doesn't work in main page. can anybody help me?!?
1
vote
1answer
305 views

AJAX search posts and pages

Im trying to make a plugin where i need to create an AJAX search. Im using the method described in http://www.garyc40.com/2010/03/5-tips-for-using-ajax-in-wordpress/ to perform the ajax calls. So far ...
1
vote
1answer
90 views

Why do plugins that cause 'unexpected output' create AJAX problems?

I just had to fix an AJAX failure in the admin area (the search/attach dialog box in the Media Library wasn't working) and tracked down a plugin that was the culprit. On activation, this plugin was ...
0
votes
1answer
605 views

WordPress front end AJAX. Return 0 :?

I have create the appropriate code to handle AJAX request on WordPress but I get 0 as responce from the server. My plugin code is here: class my_plugin { function my_plugin() { ...
1
vote
1answer
75 views

Wordpress Ajax Posting from App

I am working on an App for a University radio station that allows users to listen to the station and read stories from there wordpress site. I can do this functionality easy enough using RSS feeds. ...
7
votes
3answers
496 views

Help with 4.6. Attachment response object in JSON API plugin

I am a big fan of the JSON API plugin. The developer did a great job and I thank him very much. I am learning how to work with json and jquery and am trying to limit the information I get back from ...
5
votes
1answer
187 views

Help making my pagination plugin better

I'm not sure if this is the right place to ask for this kind of help since is not an actual question but hopefully I can learn a thing or two. I'm developing a plugin (my first one) inspired in the ...
25
votes
1answer
2k views

What's the preferred method of writing AJAX-enabled plugins?

I'm wondering what the preferred method is for dealing with AJAX calls. Should one use the same plugin php file to process the POST or a separate one? Which is cleaner or safer?
0
votes
1answer
170 views

best way to run a php script away from the template?

I'm looking for some inspiration on the best way to run a php script away from the template. I know that the wordpress core files won't have loaded, so I am wondering what workgflow you follow when ...
1
vote
1answer
270 views

How to run JS, PHP and etc. inside WP post?

I would like to try little web apps with WordPress. Just to accept some values for few fields and present the output using AJAX. What are all the necessary modifications on WordPress? So, far ...
1
vote
2answers
334 views

__callStatic method handler passed to add_action causes bug in PHP <5.3

I have a class that handles AJAX requests for my plugin. The class has a __callStatic wrapper for all actions, which subsequently calls non-static methods for each action, like so: class ...
4
votes
5answers
1k views

How can I make an Ajax login form work with FORCE_SSL_ADMIN enabled?

I'm working on a site that requires an https secured admin area and a secure front-end area as well where private information will be shown. My preference for user login is an Ajax-enabled widget that ...