[wp-hackers] Using ajax in admin plugin for wp 2.6

Aaron Axelsen lists at frozenpc.net
Fri Jul 25 13:55:46 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
I am working on an expiration date plugin that will add a meta box to 
the post page, and use ajax to submit the data.  However, i'm having 
trouble getting the ajax portion to work.

My understand is that I have to print out some javascript using the 
"admin_print_scripts" action.  However, i'm not sure what exactly I 
should put there.

After that, I know it needs to hook into ajax-admin with the custom action.

Can anyone offer some thoughts or ideas?  Thanks!

- --
Aaron Axelsen
lists at frozenpc.net

Great hosting, low prices.  Modevia Web Services LLC -- 
http://www.modevia.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFIidthuucONIvD0AMRAh+qAJ9+0PcGcls2xjed+1ArBZNlzc41uQCgl6nK
2H9hLOT2U9G9Hc+kZXa4yUs=
=icIR
-----END PGP SIGNATURE-----



More information about the wp-hackers mailing list