Gingah
Forum Replies Created
-
Forum: Hacks
In reply to: Ajax 500 Internal Server ErrorSolution: There is actually nothing wrong with the code above. However, admin-ajax.php has no solution for error handling other than directly linked to itself and the request from JavaScript. Meaning: My error came from the callback function in my php, and though that error is actually printed, it does not end up as the response from admin-ajax.php.
Forum: Fixing WordPress
In reply to: wp-admin/admin-ajax.phpThis is actually NOT eating bandwith; admin-ajax.php is what enables all ajax-features (usability without navigating away from a page) in WordPress, and it greatly reduces server-loads because of this:
An ajax call to altar something usually only call a single or a few functions within WordPress, rather than calling the same functions ASWELL as loading the entire page associated with this altaration (as would happen without ajax).
Most hits do go to admin-ajax.php, because it is called everytime ajax is utilized within WordPress. If anything, tell your statistics-system to ignore this file, or at least count this traffic as internal rather than actual hits (unless admin-ajax is used as a frontend, in which case you might actually have a problem of over-use of ajax-functionality).
Forum: Plugins
In reply to: Using Javascript with a custom pluginwp_enqueue_script(‘slider20’, plugins_url(‘coda-slider/javascripts/jquery.coda-slider-2.0.js.php’), array(‘jquery’));
Well for starters, your “slider20” script is apparently a .php file, which really cannot be inserted as a .js would. Other than that, the code seems to be correct. And you are correct, this all loads in the header, so given that your implementation of the code is correct, it should work (also given that these jQuery plugins do not require jQueryUI or have other dependencies).
$Skip Savage
The best method is almost always starting from scratch and keeping very good track of what logic you are following; this line of code does this, but requires this, which in turn allows this. Make sure to always check that your code should theoretically work just between components.Not sure exactly what either of you are really trying to make, but if you still follow this topic, I’d be glad to help. And to whomever have noticed that I just replied to a 5 month old post, it’s because I happened to arrive here by chance and found it lacking in solutions.