Try to use this:
var xml = gadget.storage.openText("my_file.xml");
where my_file.xml is in gadget package.
This method will return the contents of the file as a string.
For more information, see:
http://code.google.com/intl/pt-BR/apis/desktop/docs/gadget_apiref.html#gadget.storage
Meir Rotstein wrote:
> Hi,
>
> Is there's any official way to read local files with javascript based
> on the google desktop frwk?
>
> Thanks,
> Meir.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Desktop Developer Group" 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-Desktop-Developer?hl=en
-~----------~----~----~----~------~----~------~--~---