What am I trying to build? I wish to build a AJAX loading system for every segment of wordpress.
Lets start off with my PHP for wordpress here i initiate 3 scripts one, for JSON2 as it is said to be a more reliable parser than the one included in jQuery, then jQuery, and last my custom script called einaudi.js
As you can see I'm currently trying passing the following data along:
An action hook for wordpress called ajaxRequest
ajaxRequestNonce something needed to authenticate the ajax request
cleanedLinkStructureArray containing values from the permalink structure defined by the user like %year% without the special characters
cleanedPermaLinkArray containing values for the actual permalink structure like 2012
On this .post() I hope to get return values for responseText, textStatus, jqXHR on success. But I can't grasp why I can't get it to work yet or what I still need to add. I hope someone can explain me how to return values for these 3 through PHP, preferably include in your explanation how I could use JSON_encode() for this. But any form of returned values will do, a string or an array or whatever.
// AJAX sendData after Request
// Declare variables with content passed in ajaxRequest
Hi, I'm Marnix and I'm currently trying to get JQuery mobile to work with Wordpress, but unfortunately due to the way wordpress generates all it's links in the source with PHP they all come without a "rel" attribute. This causes problems with links towards the admin panels from Wordpress. These admin pages need to be treated as a rel="external" or "data-ajax=false" by JQuery mobile and it needs to completely reload the admin page with the admin.css files for these pages.
As wordpress is a platform others build on as well I don't want to mess around in its source code so I hope to be able work around this with JQuery selectors and add the "data-ajax=false" to these links.
My idea was to do the following 1. I want to find all links to the admin pages (this needs to be done on every page change not just the initial homepage) 2. And I wish to add data-ajax=false to these links
(now here is the problem, I'm probably an absolute retard for thinking it could possibly work this way, so please enlighten me on where I'm wrong) :
I'm gonna try and explain my steps in the hope someone with more experience in JQuery can help me out:
I started with the BLANK Theme for wordpress (it can be downloaded here: http://themeclubhouse.digwp.com/. I've put the code (block 1) in the functions.php file, and copy pasted the JQuery mobile style definitions into the already existing style.css for the theme under the rest of the @media screen.