• nermal

    (@nermal)


    I have created a very simple plugin that allows a user to enter a image path and some dates, and uses some jQuery to put the images on the site between these dates. The problem is, when the plugin is activated, the “update Custom Field” button doesn’t use ajax to add the custom fields to the database.

    please help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Rajesh Soni

    (@rajeshsoni)

    Screenshots?

    Thread Starter nermal

    (@nermal)

    here is a link to the image of the custom field button

    http://marshsandbox.com/cfajax.png

    not really sure what else to show you a screenshot of. Basically when my new plugin is activated, this button no longer updates with ajax. It prepends the new field rather than appending it, and i have to click update post to see it in the list.

    This is an issue that wordpress has had in the past, but now my plugin is causing it.

    Rajesh Soni

    (@rajeshsoni)

    It’s difficult to diagnose without actually looking at any code / access to a test site with the plugin installed.

    Thread Starter nermal

    (@nermal)

    thanks for trying to help. I have posted the code here:

    http://marshsandbox.com/csajax.txt

    This is my first plugin using admin functions.

    I’ve tried taking out all the javascript files to make sure they are not causing conflict, but it doesn’t seem to do any good.

    I hope you see something obvious.

    Rajesh Soni

    (@rajeshsoni)

    Okay do you see any JavaScript errors in your browser (when you’re on the page that the AJAX is broken) ?

    Thread Starter nermal

    (@nermal)

    I am not seeing any errors. if i click “delete” on a custom field, the ajax works just fine. On “update preferences”, i see nothing.

    Rajesh Soni

    (@rajeshsoni)

    Hmm, okay. Any chance you could provide temporary access to your test setup?

    Thread Starter nermal

    (@nermal)

    I’m working locally right now. I don’t have the plugin live on our production site.

    But here’s the plugin file.

    http://marshsandbox.com/tzr-skin.zip

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

The topic ‘Admin Ajax Conflict’ is closed to new replies.