dintorf / gdata-javascript-client

Automatically exported from code.google.com/p/gdata-javascript-client
0 stars 0 forks source link

setTitle() oddities with 2.x that do not exist with 2.s #21

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I am looking at this:

http://gdata-javascript-client.googlecode.com/svn›
trunk›
samples›
core›
etags›
conditionalupdates›
loadcontacts.html

sample code and I find that it does not run.  Specifically:

This Line:
google.load('gdata', '2.x', { packages : ['contacts'] });Loads version 2 of the 
underlying API, and it should instead load 1.x version. The problem is that the 
version 2 API ignores the setTitle() and it doe snot fully implement the new 
more advanced name code. So, when I try to use the more advanced name methods, 
they work but return an error on save. When I try to use the setTitle() code it 
works but does not set the name of the contact. The end result is that I can 
not set the name of the contact using the example code!
thanks,
Scott.

I just tested it with
google.load('gdata', '2.s', { packages : ['contacts'] });

and it worked fine.  In reading over some of the code, I believe you now make 
the setTitle() read-only which is the root cause of this problem.  Not sure if 
that's such a hot idea - at least until you get the more advanced methods for 
setting the name in place.

The same kind of problems exist with the addresses as well.  The old functions 
won't save and the new functions do not work!

Original issue reported on code.google.com by wildtest...@gmail.com on 15 Jul 2010 at 7:07