Hi,
You can use the Scripting.FileSystemObject to write to files. It's well
documented on the net. Here is a good starting point:
http://www.webreference.com/js/column71/7.html. I also have a gadget that
reads from a file with this activex (writing is just as easy), you can check
it out at: http://fluidspark.com/index.php?gg=hexviewer.
And the best thing about this is, that GD already provides it through the
"framework.system.filesystem" object. That means that there is no need to do
this:
var fso = new ActiveXObject("Scripting.FileSystemObject");
fso.somefunction();
instead just do this:
framework.system.filesystem.somefunction();
Hope this helps,
Catalin.
On Sat, Mar 28, 2009 at 8:52 PM, woriworiwa <[email protected]> wrote:
>
> Hi,
>
> Today i wrote my first Desktop gadget that will retrieve data from a
> json file through Http and store the retrieved data on a text file.
> The first problem i faced was that the XMLHttpRequest caches the data,
> and i always receive the same result. to get around this i
> concatinated a random parameter to the request string so it will not
> be cached. is there a better way to do that?
> The other problem is saving this data to a file. i have searched the
> APIs and the group for such info and it seems like this function is
> not supported. does anyone know of a way to do that?
>
> Thank you for your help and it is really fun working with google
> APIs :)
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---