Ah, sorry, I thought you fixed it already. This code is working for
me:
gadget = document.Gadget(GADGET_URL)
doc.AppendElement(gadget)
delta = { 'firstname' : 'joe' }
doc.GadgetSubmitDelta(gadget, delta)
And regarding the variable names, they do get changed from var_name to
varName but if your gadget expects varName you should be fine. I tried
it both ways and if the gadget expects var_name, it doesn't work.
I'm rushing to finish something (it's 7pm here) so I'll be brief but
I'll be around tomorrow in case you need help to debug. Just let me
know.
Agustin.
On Oct 19, 6:17 pm, Chris Searle <[email protected]> wrote:
> On 19. okt.. 2009, at 17.54, Agustin Horischnik wrote:
>
>
>
> > Hey Chris, no that wasn't the issue in this case but you're right, I
> > tried and it does make var_name into varName...
>
> > Thanks for the answer.
>
> What does your gadget expect? var_name or varName?
>
> Did I get it right that you were successful with this type of code:
>
> gadget = document.Gadget(gadgetUrl)
> doc.InsertElement(pos, gadget)
> delta = {'key', val}
> doc.GadgetSubmitDelta(gadget, delta)
>
> Because it's not working for me - which is why I was wondering about
> the change of name.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Wave API" 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://groups.google.com/group/google-wave-api?hl=en
-~----------~----~----~----~------~----~------~--~---