Hi

> I have tested  the library jQuery.twFile.js   in a mobile (iPad) javascript
> application to save an on-the-fly created PDF document. But it does not
> work and I don't get error or warning messages on javascript console.

$.twFile.save("urlWhereIWouldLikeToCreateMyFile",
"data:application/pdf;base64," +uriFile);

> I do not know what I'm doing wrong

twFile doesn't work on the iPad because there is no way to save files
within Mobile Safari.

As far as I know, the best you can do on the iPad is to show the user
a link to your data: URI of the PDF, and ask them to save it as a
bookmark. Mobile Safari is happy to save quite large files in that
way, giving an easy way to save things for offline use.

> hello, I have tested to use your library jQuery.twFile.js to create a
> javascript apple application, but she dont' work. I don't understand why. I
> don't have error or warning message in the javascript consol
>
> I use this code
>
> $.twFile.save(urlWhereIWouldLikeCreateFile, "data:application/pdf;base64,"
> +uriData);

Firstly, twFile doesn't work with binary data, just UTF-8 encoded text
files. The Mozilla drivers could easily be updated to work with binary
data, but the IE activeX control will only ever deal with text.

Secondly, and academically given the first point, you don't need to
encode your content as a data: URI to save it with twFile.

Given that PDFs are binary files, I think that the
right-click-save-link approach outlined above might be your best bet.

Best wishes

Jeremy


>
> thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWikiDev" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/tiddlywikidev/-/nvVW4hEUzXUJ.
> 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/tiddlywikidev?hl=en.



-- 
Jeremy Ruston
mailto:[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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/tiddlywikidev?hl=en.

Reply via email to