Hello Manohar,

I do not see a solution to your problem using only JavaScript in a
html type gadget. The easiest solution would be to use a url type:
http://code.google.com/apis/gadgets/docs/fundamentals.html#Content_Type
If you do not currently have a server to host your server side gadget
application, you should look at AppEngine, either in Python or Java.
It would be working great for what you are doing.

Jerome

On Jan 6, 7:31 am, Manohar Akula <[email protected]> wrote:
> I'm writing a gadget to upload a file onto a private google site using
> the sites 
> api.http://code.google.com/apis/sites/docs/1.0/developers_guide_protocol....
>
> I can only upload the file using a multi-part form. But it doesn't
> work because the api needs oauth authentication. Authetication
> involves setting some header fields in the POST request. Unfortunately
> form submit does not let us set the header, thus no authentication.
> Ajax call won't work because of cross-domain restrictions. Any ideas
> on what can be done?
>
> One way I can think of is to use a proxy which makes the authenticated
> call, but I want to avoid that. I need a javascript-only way of doing
> it.
-- 
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" 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-Gadgets-API?hl=en.


Reply via email to