213 reputation
214
bio website stackoverflow.com
location Tennessee
age 34
visits member for 4 years, 1 month
seen Jan 11 '13 at 19:23

Constantly learning web application development. Self taught ASP.NET since 2003.


Sep
30
awarded  Popular Question
Oct
29
awarded  Popular Question
Mar
29
awarded  Notable Question
Mar
27
awarded  Yearling
Dec
10
accepted Trying to get custom js files in my admin header
Dec
10
accepted Debug whats going on inside a function called from AJAX
Dec
10
comment Debug whats going on inside a function called from AJAX
Ahh I see. I'm able to echo anything from my delete_pdf_and_metadata function but the only thing that my jQuery does is return a response of 0. I probably should make another question to try to get my ID passed into my function. What you said helped tremendously though. Thank you.
Dec
9
asked Debug whats going on inside a function called from AJAX
Dec
9
accepted Invalid file type when using wp_upload_bits to upload PDF to a custom post type
Dec
9
accepted Checking if $_FILE isset for an array of file upload metaboxes
Dec
5
comment Trying to implement AJAX into my admin pages. Am I improperly enqueue and localizing my scripts?
Ok I'll work on that! What should it return if it worked? THANK YOU !
Dec
5
comment Trying to implement AJAX into my admin pages. Am I improperly enqueue and localizing my scripts?
It actually looks like it is calling the function delete_pdf_and_metadata(), how can I test for sure? I tried an alert() in my function but it errors out in firebug saying: Fatal error: Call to undefined function alert() in mytheme/functions.php
Dec
5
comment Trying to implement AJAX into my admin pages. Am I improperly enqueue and localizing my scripts?
Ok did that, under POST I see action: delete_meta the_id: aps_pdf1 //this is correct And under RESPONSE i'm getting 0
Dec
5
comment Trying to implement AJAX into my admin pages. Am I improperly enqueue and localizing my scripts?
Dunno if I'm onto something but... Since we're passing 'wp_ajax' into 'wp_localize_script' I tried doing this in my JS file: alert(wp_ajax.alert);. It alerts 'UNDEFINED'. Am I passing the correct values into my localize script function?
Dec
5
comment Trying to implement AJAX into my admin pages. Am I improperly enqueue and localizing my scripts?
Did that, still nothing. Can't even get a simple alert() inside my function to fire. it's not firing the function and I'm not sure why. No errors in javascript console though...
Dec
5
comment Trying to implement AJAX into my admin pages. Am I improperly enqueue and localizing my scripts?
Thanks for the comment, when I comment out this line: wp_localize_script('my-scripts', 'wp_ajax', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ))); And click my link to call my ajax I get the error "wp_ajax is undefined" in my javascript error console. Also enabling debugging doesn't give me any info on the ajax call...
Dec
4
asked Trying to implement AJAX into my admin pages. Am I improperly enqueue and localizing my scripts?
Dec
4
accepted Add a button or image button that calls wp functions in the wp-admin
Dec
4
comment Add a button or image button that calls wp functions in the wp-admin
I'm going to give you the answer on this quesiton since you've gotten me farther than I ever could have on my own, but I'll start a new question with updated code. THANK YOU!
Dec
4
awarded  Self-Learner