lrebrown
Forum Replies Created
-
Forum: Plugins
In reply to: ajax nonce verificationbump
Forum: Plugins
In reply to: ajax nonce verificationit has another meaning: https://en.wikipedia.org/wiki/Cryptographic_nonce
Forum: Plugins
In reply to: ajax problemSOLVED!!!
turned out that wordpress automatically prepends ‘wp_ajax_’ onto the supplied action in order to find the action hook. i didn’t realise that and was specifying that myself resulting in wordpress looking for a non-existant action named ‘wp_ajax_wp_ajax_aprmctest;.
because it wasn;t finding the hook, it went onto the next line which was a die(‘0’); command, hence the mysterious resulting number zero!Forum: Plugins
In reply to: ajax problemsmall update. i did some playing around. making the ajax variable global solves one issue: it now runs the onCompletion() function and displays a success result.
the bigger problem is still present though – retrieving something from the server!
i’ve enabled the execute option, and i’m now using the second line in aprmc_test() rather than the first, but nothing happens… no message box like there should be…
if i print out this.response/self.responce with an alert() it just prints the number zero…
why is it doing that? ??
i’m completely new to ajax and wordpress plugin development so i’d really appreciate help on this
Forum: Plugins
In reply to: ajax problemok, heres the code: https://wordpress.pastebin.ca/629228
someone please help!
oh, well i’d appreciate a message when my message was posted to tell me what was happening which would have saved all this bother…
thankyou for letting me know though
feel free to delete this thread when your done ??
god damn it, i posted the thread again without code and it showed up, then i edited it and put the code back it, submitted it and now the thread has no content…
i can’t believe this stupid forum, i actually need to request help posting…
why won’t it display my larger post with code…