View Full Version : function onABCommComplete
xtreme416
September 5th, 2006, 09:55 PM
Are there any properties that we can retrieve from the the widget inside this function or any other function?
Specifically, I'm interested in knowing how many contacts the user selected in the widget.
Also, is there another way of displaying the returned data - ie not all grouped together inside of a textarea? Any other formats?
And lastly, I understand the widget is free and hence the ad/promotion at the end. Is there a commercial version available where the promotion at the end can be removed? If so, what is the monthly or annual fee?
thanks you! Great app by the way! :)
Hani
kas
September 6th, 2006, 07:23 PM
Hi Hani --
I have to check whether there is additional info you can get from the widget such as number of checked contacts. On how the contacts display, you can manage some of that yourself through what you code in the function onABCommComplete(data).
The widget allows your users to quickly get access to their favorite address books and it allows the 10+M Plaxo members know they can have their up-to-date info accessible while on your site. So, we try to keep the branding minimal, save you coding time, and let your users and Plaxo members have easy access to their address books. A long explanation to say that no, we don't have a version without the branding.
Best,
Kathy
jpark
September 8th, 2006, 09:58 PM
Hi Kathy,
You said:
"On how the contacts display, you can manage some of that yourself through what you code in the function onABCommComplete(data)."
How can I format how the contacts display? Isn't "data" an immutable string?
What I would like to do is reformat the data so that only a minimal version of the email address is inserted into our recipient text box
Instead of
"Joe Bloggs" <joebloggs@mail.com>, "Sue Bloggs" <suebloggs@mail.com>
I would like
joebloggs@mail.com, suebloggs@mail.com
This doesn't seem possible within onABCommComplete(data)
kas
September 13th, 2006, 06:18 PM
Hi Jpark,
I think you can grab elements of data by doing something similar to (for grabbing the first name and email in the list):
function onABCommComplete(data) {
// called when user completes the widget; data is [[name1, email1], [name2, email2], ...]
if (data) {
var nameAndEmail = data[0];
if (nameAndEmail.length > 0) {
setValue('txtNameRecip', nameAndEmail[0]);
setValue('txtEmailRecip', nameAndEmail[1]);
} else alert('no namesAndEmails[0]');
} else alert('no data');
}
//--></script>
Kathy
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.