Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Phil 31 posts 53 karma points
    Nov 18, 2011 @ 02:30
    Phil
    0

    How to make UmbracoMemberProfileProvider work with Ajax - Javascript

    Thanks for your article and code it's very useful.  I have ported over a .net app into umbraco and wanted to attempt to use the Ajax client libraries that were created with the original solution.  While I can easily make web services work with the profile configured as per your settings, I cannot seem to get the standard Ajax libraries to work.  For instance, if I have a property defined as "firstName" in web.config.  When I authenticate from my new site and attempt to retrieve firstName by using Sys.Services.ProfileService.properties.firstName, I get "undefined" as the result.  However I can easily pull this profile information using a web service.  It's also visible from the Umbraco back-office.  Can you lend me any insight as to what I am doing wrong?  Thanks. 

  • Phil 31 posts 53 karma points
    Nov 18, 2011 @ 17:50
    Phil
    0

    Please disregard this question, now that I've slept on it I have solved my issue.  To make ProfileServices work from script all I needed to add was the simple "readAccessProperties" and "writeAccessProperties" to my config file for all my custom properties I wish to read/write.  All works well now and I won't need to convert the bulk of this code. If anyone is interested in making script calls for managing profile information please take a look at this link http://msdn.microsoft.com/en-us/library/bb398816.aspx#Y3700.  As well as the excellent editor macro source contained in the solution.  Thanks again.

Please Sign in or register to post replies

Write your reply to:

Draft