I am really stumped on something and could use help. I have a form on my site where users can email their friends to notify them of something. The "To" box is a text box that users can type in as many email addresses as they like. I would liek to hook into the google contacts API to make it easy for my users populate that "To" box with their contacts. I don't need to be able to do anything else just let the user login in to google, select the names they want and then those names fill in my textbox. Actually sending the email is no problem ( that works now but users have to manuualy type in the addresses).
I found a tutuorial but it uses multiple CSS which don't go with my design at all. When I try to edit them it ends up screwing up the API part really bad (for example the liost of names expands so there is no scroll bar and its 5 pages long). It is just killing me because it should be so simple. Does anyone have simple code to accomplish this?
Google contacts
Moderator: General Moderators
- aceconcepts
- DevNet Resident
- Posts: 1424
- Joined: Mon Feb 06, 2006 11:26 am
- Location: London
Re: Google contacts
This sounds like something JavaScript would be able to accomplish.
-
lordrain11
- Forum Newbie
- Posts: 8
- Joined: Wed Nov 19, 2008 7:33 pm
Re: Google contacts
Yes I am sure javascript is needed as well. I think it is a combination of both (google lists other ways as well but php javascript are things I am familar with). Like I said the problem isn't really getting it started up its finding a more simple way to do it where the style sheets don't cause havoc.
- aceconcepts
- DevNet Resident
- Posts: 1424
- Joined: Mon Feb 06, 2006 11:26 am
- Location: London
Re: Google contacts
Have you looked into much CSS for this?
auto height and padding spring to mind!
auto height and padding spring to mind!
Re: Google contacts
ok so is this basically what u want to accomplish....
u have all the functionally to work but when u expand the box of contacts it expands all the contacts...which <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> up your design?
u have all the functionally to work but when u expand the box of contacts it expands all the contacts...which <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> up your design?
-
lordrain11
- Forum Newbie
- Posts: 8
- Joined: Wed Nov 19, 2008 7:33 pm
Re: Google contacts
Basically yes, there are a few other things that happen too which screw up the design. However, I was hoping soemone had an example of how to do it even easier as what I had set up was sort of cumbersome for the user. Offered more than needed. They should just be taken to google to login, and then once they do it either puts all their conbtacts in my text box or they just have a list they can pick which ones they want and click submit.
It is just crazy how many style sheets they were using.
It is just crazy how many style sheets they were using.