Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Forum: Plugins
    In reply to: ajax nonce verification
    Thread Starter lrebrown

    (@lrebrown)

    bump

    Forum: Plugins
    In reply to: ajax nonce verification
    Thread Starter lrebrown

    (@lrebrown)

    Forum: Plugins
    In reply to: ajax problem
    Thread Starter lrebrown

    (@lrebrown)

    SOLVED!!!

    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 problem
    Thread Starter lrebrown

    (@lrebrown)

    small 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 problem
    Thread Starter lrebrown

    (@lrebrown)

    ok, heres the code: https://wordpress.pastebin.ca/629228

    someone please help!

    Forum: Plugins
    In reply to: test
    Thread Starter lrebrown

    (@lrebrown)

    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 ??

    Forum: Plugins
    In reply to: test
    Thread Starter lrebrown

    (@lrebrown)

    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…

    Forum: Plugins
    In reply to: test
    Thread Starter lrebrown

    (@lrebrown)

    i can’t believe this stupid forum, i actually need to request help posting…

    why won’t it display my larger post with code…

Viewing 8 replies - 1 through 8 (of 8 total)