View Full Version : not populating the addresses
AHafele
November 12th, 2006, 08:11 PM
Hi
I need some help with the widget. It pops up just fine and such but it doesn't populate the addresses into the text field, it just keeps the please wait button there and does nothing else. http://12.21.244.206/getbook.html
What am I missing? :confused:
Amy
Never mind, I figured it out. To me absolute path means http full address of file. not /directory/file . That was my mistake. :o
funnybones
November 13th, 2006, 06:30 AM
Hi,
This is a very good widget. This just what I have been looking for.
But somehow I am not able to run it.
I am also facing the same problem as stated above and I am still not able to solve it.
I have tried all sorts of paths.
Please help me.
You can look at the html page at http://208.109.78.25/launch.html (http://www.avniinfo.com/launch.html)
Regards,
Funnybones.
vpahwa
November 13th, 2006, 08:10 AM
this is really strange, basically the same file doesn't seem to work on two different domains..
indianradar.com/hello.php works
and
zohho.com/hello.php
does not work...
the above posts also point out a similar problem, they both are correct, one is working and the other isn't
please help!!
kas
November 13th, 2006, 06:54 PM
Hello Funnybones,
Unfortunately, I am not able to access:
http://208.109.78.25/launch.html
I get a Forbidden: You don't have permission to access /luanch.html on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
:-(
Kathy
kas
November 13th, 2006, 07:23 PM
Hello Vpahwa,
Do you have plaxo.html hosted on both indianradar.com and on zohho.com?
If you are getting an error on zohho.com, please let us know what that is. If you are not getting an error, it’s probably not actually loading your callback page (and thus nothing is happening). To verify, please look at your server logs and see if that page is ever getting loaded when you get to the last step of the widget flow.
Kathy
vpahwa
November 13th, 2006, 09:17 PM
yes, plaxo.html is hosted on both domains.
we are not getting an error, it is just not going to the callback page..
it says please wait and then stops.
however, the same Exact script on the other domain is working.
please help..
funnybones
November 13th, 2006, 09:46 PM
Hi ppl,
Thanks for your prompt replies and looking into the matters.
I found the solution to it. The solution seems odd and is exactly same as that has been given in the "simple instructions" part of plaxo, but I failed to understand why so? If somebody could elaborate on that, it would be much helpful.
First of all you can look at the working script at http://24.16.111.7/launch.html
Here is the solution:
Firstly you need a file launch.html with the following code:
***** launch.html ******
<html>
<head>
<script type="text/javascript" src="http://www.plaxo.com/css/m/js/util.js"></script>
<script type="text/javascript" src="http://www.plaxo.com/css/m/js/basic.js"></script>
<script type="text/javascript" src="http://www.plaxo.com/css/m/js/abc_launcher.js"></script>
</head>
<body>
<textarea id="recipient_list" rows="3" cols="80" name="recipients"></textarea>
<a href="#" onclick="showPlaxoABChooser('recipient_list', 'mail.html'); return false"><img src="http://www.plaxo.com/images/abc/buttons/add_button.gif" alt="Add from my address book" /></a>
</body>
</html>
Very Important Note: If you do not include the <textarea> here, then the pop itself won't work. So you need to specify the <textarea> in launch.html. But then one would think that why to specify another mail.html file in the <a> link and why not just give the name of the same launch.html file.
Here is the catch, you can give the name of the same file, but then it wont work since u have not included the following code in the head tag:
<script type="text/javascript" src="http://www.plaxo.com/ab_chooser/abc_comm.jsdyn"></script>
It will give the problem that we all are facing. The Please Wait button keeps flickering and nothing happens.
Now there is another catch. If you do add this line to launch.html then it will show this error:
Unable to add recipients. Please close the address book window and try again.
Hence the solution is to have two files. One launch.html with the code above and another mail.html with the code below.
****** mail.html *********
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="http://www.plaxo.com/ab_chooser/abc_comm.jsdyn"></script>
</head>
<body>
</body>
</html>
I hope this solves the doubts. Do let me know if I am going wrong somewhere.
Regards,
Funnybones.
funnybones
November 13th, 2006, 10:03 PM
Hi,
I need another favour.
Once the email ids are populated in the widget, I would like to show the email ids and the corresponding names(if any) to the user as a list and not in the textarea.
one thing that i can do is make the textarea hidden.
But how do i come to know that the textarea has been populated and secondly how can i extract individually the name and email ids from the textarea.
Also the function onABComplete doesn't seem to work here.
Regards,
funnybones.
kas
November 15th, 2006, 04:48 PM
Hi Funnybones,
On how to get at the names and email addresses in onABCommComplete:
From this thread ... http://forum.plaxo.com/showthread.php?t=2684
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>
On whether this works if the textarea is hidden, I'll have to ask.
Kathy
kas
November 15th, 2006, 04:57 PM
Hello Vpahwa,
I'm not getting the same behavior if I just check on plaxo.html on each site:
www.indianradar.com/plaxo.html -- "unable to add recipients"
and
www.zohho.com/plaxo.html -- "webpage cannot be found"
Seems that you don't have plaxo.html in the right place or permissions for zohho.com.
Kathy
vpahwa
November 15th, 2006, 07:17 PM
thanks, its working now..!!
funnybones
November 15th, 2006, 09:55 PM
Hi Kathy,
Thanks for all your help. You people have got a great product here. You have saved a lot of my work.
I can turn the textarea hidden and still it works. The onABComplete function also works great. It will solve all my problems now.
Just one suggestion. On the instructions page for Address Book Access Widget at http://www.plaxo.com/api/widget they have mentioned that you can use onABComplete() function for optional work.
But there they do not mention that 'data' can be used as a parameter to the function which contains the array. This can be known only if we see the source code of the page. If you mention that on the instructions page itself, it will be more helpful. Also are there any such similar functions which we can work with? Can we get a list of such functions?
Regards,
funnybones.
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.