Quantcast
Channel: Comments on: Ajax in WordPress
Browsing all 43 articles
Browse latest View live

By: P’SEC: Connecting Dots, Part IV « David Seah / Code

[...] this. I suppose I should try it first with the “right way” and see how slow it is. This succinct example provides the template to [...]

View Article



By: P’SEC: Connecting Dots, Part V « David Seah / Code

[...] The upshot: I should just try the WordPress AJAX thing now to get it working, and then consider optimizations later. So without further ado, let’s follow this tutorial. [...]

View Article

By: theBrettman

You left out the nonce. It won't work without the nonce, will it?

View Article

By: web-developer

Code will work, but it is not secure.

View Article

By: theBrettman

die is just an alias for exit. you only need to use one or the other...

View Article


By: web-developer

removed exit(), thanks for feedback

View Article

By: Gab

Hi, I followed instructions and I get the alert box. Great! But I'm trying to load the #content of the target url into the current #content div. How can I do that? Many thanks for your help.

View Article

By: web-developer

In php: <code>echo $content;</code> In javascript: <code>$('#content div').html(data);</code>

View Article


By: theBrettman

it should be noted that ajaxurl is already defined in the header of admin pages but your localize_script example is needed on the frontend. thanks for the updated article though. It helped me out. some...

View Article


By: web-developer

I updated page about ajaxurl in admin pages. You can read more about <a href="http://www.garyc40.com/2010/03/5-tips-for-using-ajax-in-wordpress/" rel="nofollow">nonces in WordPress and...

View Article

By: Gab

Thanks for the quick answer. I'm sorry but nothing is returned on click (testing with alert(data);), could you include a quick example. Added the following to functions.php: function...

View Article

By: web-developer

Check this link if you want to <a href="http://www.deluxeblogtips.com/2010/05/how-to-ajaxify-wordpress-theme.html" rel="nofollow">ajaxify your theme</a>.

View Article

By: Gab

This article doesn't use admin-ajax.php and the method you described above. My theme is pretty much ajaxified. I just need to know how to retreive the information. The handler is ready. ;-) But...

View Article


By: lel

Thanks for the info. It was extremely helpful. Do you have any information on nounce. If I'm able, I'd like to make the my code secure.

View Article

By: webvitaly

You may check out <a href="http://stackoverflow.com/questions/7718556/using-nonce-with-ajax-in-wordpress-plugin" rel="nofollow">this discussion about ajax and nonce</a>.

View Article


By: Tom

Thanks for this post. I used your script and thought everything was fine. It works perfectly in Chrome, FF and Safari. However, I discovered that in all versions of IE, the post meta is not updating...

View Article

By: Tom

I posted a comment a few hours ago that is still awaiting moderation. I could have sworn this script was working in Firefox before. But, now I discovered it is not working in Firefox nor IE (all...

View Article


By: Tom

Thanks for posting my comments. I was curious though if you have checked your code to see if it actually works on IE and Safari. I saw someone who posted earlier about just getting an alert box. I am...

View Article

By: webvitaly

I am using this code in all my projects and it works in all modern browsers (including older IE versions). If you have an error in firefox - try to use firebug addon to find the problems in the code.

View Article

By: Tom

Thanks for the response. I have used Firebug. But, there are no errors being generated. There are no breakpoints to deal with. I also checked error logs. Nothing there. Likewise, I tried using the IE...

View Article
Browsing all 43 articles
Browse latest View live


Latest Images