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

J.D. Grimes jdg at codesymphony.co
Mon Oct 28 19:53:40 UTC 2013


That sounds like a JS conflict. Are you getting any errors in your browsers console?

-J.D.

On Oct 28, 2013, at 3:49 PM, Gregory Lancaster <greglancaster71 at gmail.com> wrote:

> I got the ajaxurl working, but for some reason clicking the <a> only
> displays the popup if I am logged out now.  I think I will need to hire
> help for this one.  Thank you for your assistance though J.D. you did help.
> 
> 
> 
> On Mon, Oct 28, 2013 at 11:40 AM, J.D. Grimes <jdg at codesymphony.co> wrote:
> 
>> 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.
>> 
>> -J.D.
>> 
>> 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
>> 
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>> 
> _______________________________________________
> 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