<!doctype html> <HTML> <HEAD>
<script type="text/javascript" src="http://www.google.com/jsapi"></ script> <script type="text/javascript" src="http://gdata-javascript- client.googlecode.com/svn/trunk/samples/contacts/contacts_picker/ picker.js"></script> <script> google.load("gdata", "1.x"); var contactsService; google.setOnLoadCallback(initFunc); var scope; var token; function setupContactsService() { contactsService = new google.gdata.contacts.ContactsService('exampleCo-exampleApp-1.0'); } function logMeIn() { scope = 'https://www.google.com/m8/feeds/contacts/default/full'; if (location.hash == ""){ token = google.accounts.user.login(scope); } } function initFunc() { setupContactsService(); logMeIn(); getMyContacts() } function doCheck(){ scope = "http://www.google.com/calendar/feeds"; token = google.accounts.user.checkLogin(scope); } function getMyContacts() { var contactsFeedUri = 'https://www.google.com/m8/feeds/contacts/ default/full'; var query = new google.gdata.contacts.ContactQuery(contactsFeedUri); // Set the maximum of the result set to be 5 query.setMaxResults(3000); contactsService.getContactFeed(query, handleContactsFeed, handleError); } var handleContactsFeed = function(result) { var entries = result.feed.entry; var totalsSet=0; var allAddress = ""; for (var i = 0; i < entries.length; i++) { var contactEntry = entries[i]; var emailAddresses = contactEntry.getEmailAddresses(); if (emailAddresses[0]) { emailAddress = emailAddresses[0].getAddress(); newName = contactEntry.getTitle().getText(); allAddress += emailAddress+"|sepa|"+newName+","; totalsSet++; } } if (totalsSet>0) { try { //window.opener.fillBg(); } catch(err) { alert(err.description) alert(err.line) } window.opener.$("contactsSearch").innerHTML = "<img src='../../ images/ajax_blue.gif' border=0 hspace=0 vspace=0 />"; window.opener.moreInfoPAsy("welcome/friends-find- Viewer.asp","emails="+allAddress.replace(/,/ g,String.fromCharCode(1)),window.opener.contactsSearchDiv,alert); window.close(); google.accounts.user.logout() } } function handleError(e) { //alert("There was an error!"); //alert(e.cause ? e.cause.statusText : e.message); } </script> </HEAD> <BODY> <img src="../../../images/logo.gif" style="position:absolute; top: -1000px;" /> </BODY> </HTML> ------------------------------ That's my code. When I'm running it on http protocol it works great, but when i use the https protocol (that's how my site works) - i get the error message. "The page you have requested cannot be displayed. Another site was requesting access to your Google Account, but sent a malformed request. Please contact the site that you were trying to use when you received this message to inform them of the error. A detailed error message follows: The "next" parameter was bad or missing." any help? thanks. -- You received this message because you are subscribed to the Google Groups "Google Contacts, Shared Contacts and User Profiles APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://code.google.com/apis/contacts/community/forum.html
