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.
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.
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.
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.
is working on a reply...