I believe that the sandbox is not going to let you do that :D

On Mon, Sep 7, 2009 at 10:35 PM, Rots <[email protected]> wrote:

>
> hello, i have a question about javascript/chrome extension
> capabilities...
> i want to dynamically create a file in the client browser with
> javascript and have user download it. i've been trying pure javascript
> solutions, but window.open() and document.open(), write() and close()
> methods doesn't seem to be doing what i need... I want to get the
> "Save File" dialog, but writing data into a new window doesn't trigger
> that, even telling browser that i'm using other mime types (tried
> document.open('some mime type')) that the browser shouldn't be trying
> to render, doesn't help.
> is it maybe possible to create(edit) a temporary file into my
> extension directory and have user download it? It works on a static
> file i have in my extension... i.e. window.open(chrome.extension.getURL
> ('test.file')); opens the "Save File" dialog... now i just need to
> have the right data there in the file somehow
>
> Thanks for any help...
> Rots
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" 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/chromium-extensions?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to