[wp-hackers] jQuery x-editable with update_user_meta?

J.D. Grimes jdg at codesymphony.co
Mon Oct 28 18:40:47 UTC 2013

Use the ajaxurl as the value for the x-editable url:

jQuery( '#selector' ).editable({
	type: 'text',
	pk: pk,
	url: ajaxurl,
	// etc.

I don't know if it will let you pass the action through ajaxOptions.data, but if not you could try appending it to the ajaxurl as a GET query parameter.


On Oct 28, 2013, at 12:48 PM, BenderisGreat <greglancaster71 at gmail.com> wrote:

> Thanks JD!  with ajaxOptions though, it requests the url, 'ajaxurl' does not
> work.  Should i dorectly specify my admin-ajax.php here?  Also there is no
> option for action: which is required in WP to reach the function to handle
> the ajax call right?  I tried adding that in as well, and it did not
> function.  
> I could just use a separate .php file for processing, and place the code in
> that.  Would that be the best option?
> --
> View this message in context: http://wordpress-hackers.1065353.n5.nabble.com/jQuery-x-editable-with-update-user-meta-tp42641p42645.html
> Sent from the Wordpress Hackers mailing list archive at Nabble.com.
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list