Tags:
Views: 5
Thanks for motivating me...
This is what I developed for getting the user's email address... couldn't get ip without a serverside solution or unless somebody knows a ning page that displays the ipaddress, but regardless, I think user's email is more useful anyway. You could use this to determine whether the ning user is on your blacklist, etc.
Hire me! chad@cyber-reality.com
function getEmailAddress( callback)
{
jQuery.get("http://"+location.host+"/profiles/settings/editProfileInfo", function(data){
var email = data.substr( data.indexOf("Email Address"), 200);
email = email.match(/[\w\+\-\._]+@[\w\-\._]+\.\w{2,}/);
callback(email)
});
}
if (jQuery) jQuery(document).ready(function() {
getEmailAddress( function(data) { alert (data); });
});
© 2026 Created by Ning Developer Admin.
Powered by