View Full Version : help needed... Begining of PLAXO
desmortes
September 23rd, 2006, 05:11 AM
hi friends,
even i stuck after a high excitement...nothing works for me when i click image...plz chek this n help me as soon as possible....
file name : adr_chk.htm
<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>
<script type="text/javascript"><!--
function onABCommComplete(data) {
// OPTIONAL: do something here after the new data has been populated in your text area
}
//--></script>
</head>
<body>
<textarea id="recipient_list" name="recipients"></textarea>
<br/>
<strong>Message</strong>
<br/><a href="javascript:showPlaxoABChooser('recipient_lis t', '/adr_acc.html'); return false"><img src="http://www.plaxo.com/images/abc/buttons/add_button.gif" alt="Add from my address book" /></a>
</body>
</html>
file name: adr_acc.html
<html>
<head>
<script type="text/javascript" src="https://www.plaxo.com/ab_chooser/abc_comm.jsdyn"></script>
</head>
<body></body>
</html>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
:confused:
both file r the same location....like
home/adr_chk.htm and
home/adr_acc.html
but nothing is working plz help me...... .:(
joseph
September 23rd, 2006, 11:21 PM
.htm and .html are NOT the same filename. Make sure you call them both .htm or .html, but don't mix them. Does that fix it for you? Also, is adr_acc.htm in your top-level directory? Since you're referring to it as '/adr_acc.html', it needs to be in your root level. If, for instance, you had it under a "pages" directory, you would put '/pages/adr_acc.html' in the call to showPlaxoABChooser.
Hope this helps! js
desmortes
September 25th, 2006, 10:25 PM
Hi Joseph,
thanks for your kind response...i've changed now n did like this...like
adr_chk.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>
<script type="text/javascript"><!--
function onABCommComplete() {
// OPTIONAL: do something here after the new data has been populated in your text area
}
//--></script>
</head>
<body>
<textarea id="recipient_list" name="recipients"></textarea>
<br/>
<br/><a href="javascript:showPlaxoABChooser('recipient_list', 'pages/adr_acc.html'); return false"><img src="http://www.plaxo.com/images/abc/buttons/add_button.gif" alt="Add from my address book" /></a>
</body>
</html>
pages/adr_acc.html
```````````
<html>
<head>
<script type="text/javascript" src="https://www.plaxo.com/ab_chooser/abc_comm.jsdyn"></script>
</head>
<body></body>
</html>
i juz created a pages directory n i moved this file to that location...but overall now. when i click that button it says me "Error on Page"......on the status bar...n i cheked today when i was working on it..plz tell me what would be the better solution..:(
rock
joseph
September 26th, 2006, 08:08 AM
The path still needs to be absolute, e.g. "/pages/adr_acc.html" or if pages is not the top level, you may need to go even further back, like "/~user/pages/adr_acc.html". Basically you need everything after the domain on the URL--you can't make it relative to the launch page (because the widget is in its own popup). If you're getting an error, see what it is. maybe your security settings prevent mixing HTTPS and HTTP? If your base page isn't HTTPs, you may see a "this page contains a mix of secure and insecure content" warning when you click to add contacts. This is expected and unfortunately there's no good fix currrently. But make sure that works and you're not blocking it (again, see if you can see adr_acc.html getting loaded in your server logs). Hope this helps, js
desmortes
September 27th, 2006, 01:16 AM
The path still needs to be absolute, e.g. "/pages/adr_acc.html" or if pages is not the top level, you may need to go even further back, like "/~user/pages/adr_acc.html". Basically you need everything after the domain on the URL--you can't make it relative to the launch page (because the widget is in its own popup). If you're getting an error, see what it is. maybe your security settings prevent mixing HTTPS and HTTP? If your base page isn't HTTPs, you may see a "this page contains a mix of secure and insecure content" warning when you click to add contacts. This is expected and unfortunately there's no good fix currrently. But make sure that works and you're not blocking it (again, see if you can see adr_acc.html getting loaded in your server logs). Hope this helps, js
thanks for your valuable reply...by the by..i checked, pages folder is in top-level directory..error shows on the status bar of browser saying "Error on Page" right after when i click the image.if you could plz give me some step by step instructions.i'd even checked plaxoz documents.but i worried i didnt get this usefull oppurtunity for my site.plz help me to utilize this
desmortes
September 27th, 2006, 02:05 AM
Hi Joseph.:)
Thanks for helping me...its now working properly...
one more thing..after selecting the IDz from address book..it showing..a page where its asking for email ID for this plaxo free link..how can stop it..
joseph
September 27th, 2006, 08:35 AM
That final light upsell page only shows up if a user imported an address book other than Plaxo. There's no way to turn it off--it's one of the small benefits to Plaxo of hosting and providing this free service. We've tried hard to make it unobtrusive and clearly optional and opt-in. I hope it's ok for your needs to leave it as is.
Glad you got everything working and enjoy the widget! Thanks, js
sachinkraj
September 29th, 2007, 05:09 AM
Hi JS, I am facing the same problem, I did exactly same you had discussed above but it is not working at all, the please wait keeps on blowing .... Actually I have 4-5 section of pages in php, and they loads once anyone access the url, and make a single page. I have main script in php, which has the textarea field and the plaxo_cb.html in same directory. Please help ???
sachinkraj
September 29th, 2007, 05:25 AM
thouh I did tests in seprate files, I have demo.html and plaxo_cb.html in same directoy, here is the code for them
demo.html
=============
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>plaxo ex</title>
<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>
<script type="text/javascript"><!--
function onABCommComplete() {
// OPTIONAL: do something here after the new data has been populated in your text area
}
//--></script>
</head>
<body>
<textarea id="recipient_list" rows="4" cols="55"></textarea>
<a href="#" onclick="showPlaxoABChooser('recipient_list', '/info/plaxo_cb.html'); return false"><img src="http://www.plaxo.com/images/abc/buttons/add_button.gif" alt="Add from my address book" /></a>
</body>
</html>
plaxo_cb.html
============
<html>
<head>
<script type="text/javascript" src="https://www.plaxo.com/ab_chooser/abc_comm.jsdyn"></script>
</head>
<body></body>
</html>
both files are in same directory calle 'info' so I put the file path as '/info/plaxo_cb.html' info directory is in root level.
Can you please help , what I am missing or doing wrong in this????
joseph
October 1st, 2007, 12:45 PM
sachinkraj (http://forums.plaxo.com/member.php?u=7767)-what you have looks good to me--so you have to see whether your callback file is ever getting loaded (my guess is that it isn't). Are both pages on an actual web server, or are you using file:// to browse them? They have to be on a server? Can you go to http://YOURSERVER.com/info/plaxo_cb.html and does it load? If not, your path must be wrong or your file has the wrong perms or something. Can you watch your server logs when using the widget and see if it ever tries and/or succeeds to load /info/plaxo_cb.html? If you can't see it getting loaded, you must be passing it in wrong or it's on the wrong server or something. Lastly, if it does get called, just make sure it's really loading the JavaScript properly (e.g. use HTTPAnalyzer and see if gets the JS code with the selected contacts).
Hope this helps! js
sachinkraj
October 3rd, 2007, 04:25 AM
Thanks for your reply JS, actually got the solution before going through your reply. :D
and what' more I am writing a solution post for all users who are facing the same problem like me. :) . SO here it is, I wish it 'll give some help to users...
--------------------------------------------------------------------------
Hi, I have working example now, I figured out the problem.
Actually , the users are facing two types of problems, one is with the absolute path and other one is with the code they get from the demo page, by "view source".
So here is the solution for both types of problem.
1) create two seprate files, as mentioned in the API docs.
2) Put the absolute full path in the callback function.
For example if you have, two files like...
main file: http://www.mydomain.com/plaxo/plaxo-example.com
callback: http//www.mydomain.com/plaxo/callback/plaxo_cb.html
so now put the absolute path in call back function till the extension of the filename.
like this: <a href="#" onclick="showPlaxoABChooser('recipient_list', '/plaxo/callback/plaxo_cb.html'); return false">
OR if you have call back function in same directory like:
main file: http://www.mydomain.com/plaxo/plaxo-example.com
callback: http//www.mydomain.com/plaxo/plaxo_cb.html
then put the absolute path in call back function till the extension of the filename.
like this: <a href="#" onclick="showPlaxoABChooser('recipient_list', '/plaxo/plaxo_cb.html'); return false">
Note: not that the forward slash is needed at the start of /plaxo/plaxo_cb.html. This is the main common mistake, all are doing, forgetting to put the forward slash(/)
hopefully it works for you... :)
The reson of this problem that I figured out is that, the javascript code of the API identifies the domain automatically and concatinate the absolute path with the call back file.
For example if you have files like this:
main file: http://www.mydomain.com/plaxo/plaxo-example.com
callback: http//www.mydomain.com/plaxo/plaxo_cb.html
then the javascript of the api gets out the domain (http://www.mydomain.com) (http://www.mydomain.com%29), from the launch file, which is plaxo-example.html and then later it concatinate the absolute path of the other call back file to it. Like this....
http://www.mydomain.com + /plaxo/plaxo_cb.html
that makes to complete path to access call back page, like : http://www.mydomain.com/plaxo/plaxo_cb.html
Here is the working example link : http://www.sachinkraj.com/share/plaxoab/plaxodemo.html
Wish, these all things I wrote would be useable for anyone. I would be happy if only one can get a solution from my post.
Thanks!
Sachin
( sachinkraj@gmail.com )
( http://sachinkraj.wordpress.com )
AucTor
October 5th, 2007, 02:24 PM
Can you please post the finished product so we can see? I'm now having the same problems that you were. What's the solution?
Thanks!
Auctor
sachinkraj
October 6th, 2007, 01:10 PM
Hi AucTor, Sorry I forget to put working example there in my post. Here is the live example you can see,
http://www.sachinkraj.com/share/plaxoab/plaxodemo.html
you will find few instructions there too, if you still find any problem regarding it, please feel free to conact me or post your reply here in post thread.
I am also adding this working example link in original post.
SachinKRaj
( http://sachinkraj.wordpress.com )
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.