blackberry webworks upload with parameters - blackberry

Is there any way to upload a file sending additional parameter (like AJAX or so) with Blackberry WebWorks? (I tried to use Phonegap FileTransfer, but it doesn't work for me at all. Secondly, I tried WebWorks UploadDownload extension, it works fine, but there is no possibility to send parameters.
Can anyone help me?

Have you considered using XHR2?
Good article over here - http://www.html5rocks.com/en/tutorials/file/xhr2/

As I heard, XHR isn't working on Blackberry Playbook

Related

NativeScript - How to create a webview with request blocking/redirection?

I'm trying to create a webview with the capability to block/redirect certain urls requested inside the webview (not just the page url, but also the requests sent from the page, think of it as what a browser extension is able to do).
After some research, the closest I get was this Swift/Obj-c approach of use NSUrlProtocol: https://www.raywenderlich.com/2292-using-nsurlprotocol-with-swift, and the doc of the native-webview-ext mentioned something about WKURLSchemeHandler https://github.com/Notalib/nativescript-webview-ext .
I'm new to mobile development and this feature is crucial for my project. I wonder if anyone has experience building this out in NativeScript, I hope I don't have to convince my team and my boss to write this in Swift instead :(.
As you see in the webview-ext plugin docs, it does support overriding resource urls. Refer the registerLocalResource method.
Just in case, even if that is not supported you don't have to write your whole project in Swift as you can always access all native apis from JavaScript / TypeScript itself, read more about it here.

is swf supported in ibooks? if yes how to integrate it into epub3

I need a way to integrate a swf file with all the click events into an epub3 format? i tried including text on a swf file it shows an error in tags used while validation.Please help me with this.
Thanks to every help, suggestion or any links
While it's legal to embed a Flash file in an EPUB, Flash won't run on iOS at all, so it's not worth pursuing validation.
http://blog.threepress.org/2009/11/14/using-flash-video-in-epub/
A huge post toward the middle talks about ISO Mpeg4 and using that format for video, other suggestions talk about using a fallback image, other comments on this page that might help.
Good luck!
As from the
Liza Daly
answer and some of my research i found out that apple iOS doesn't support flash any more so it doesn't support swf in epubs. i Acheived it by using HTML5, css3 and jquery.

Generate PDF via objective-C in Cordova app

I followed this guide
http://www.ioslearner.com/convert-html-uiwebview-pdf-iphone-ipad/
to generate PDF from a UIWebView.
What I actually need to do is generate a PDF from the cordova UIWebView in my app.
Does someone know how to do this? I think it will be necessary to write a plugin for this..
Thank in advance.
Use this KAPDFPlugin .Add into the plugin into your project and follow the instructions to link it to your code.
Yes, you'll need a plugin for that.
You already have the native code you need, so it won't be difficult

Save images phonegap query iOS (url in xml)

I'm sort of stuck with a iOS / phonegap question.
I have a XML on the server which I download successful with ajax. I even save the XML in the local storage and can read it later when offline.
The next step is the one where i need a startup. Within the XML I've got image URLs. I would like to download them and save them locally.
What is best practice and also the quickest way?
Do i need the FileWriter plugin for that? Or do i need to save them in a database as base64?
And after that how can i read them to show in the application?
Thanks in advance
There is no simple way as far as i can tell. You may wish to try using the cache manifest, or downloading them using code such as this: http://blog.clearlyinnovative.com/post/2056122828/phonegap-plugin-for-downloading-url-all-the-code
Full project here: https://github.com/aaronksaunders/FileDownLoadApp
Good luck

Exporting files from a Javascript based phonegap app - options or ideas?

I'm currently writing a mobile app (hopefully iOS or android) using the jquery mobile framework and phonegap.
It'll need to export/send csv files in some way to the users, but I'd be interested to hear ideas or suggestions about the best way of doing so. If this can be done on the js side of the app that'd be ideal as it's what I'm most familiar with. A couple of options I've considered are:
Uploading the file using the google docs api
Writing the file to the file system (then export e.g. via iTunes)
I'm new to this so any suggestions gratefully received! Thanks for your help
There are a few options that you could use depending on how you want it to work.
The main options would be to
Use the File API (http://docs.phonegap.com/phonegap_file_file.md.html#File) to store files on the filesystem of the device.
Upload the file to a server using a standard XMLHttpRequest.
Write a native PhoneGap plugin on each platform that you are interested in that could connect to Google docs.
As Dave pointed out you can write files with the FILE API. I have used the file api on iOs to write custom log files and havent found any yikes so far.

Resources