troubleshooting Question

How to read/write files with Opera Mobile on Windows Mobile 6.1 using javascript

Avatar of evc134
evc134Flag for Belgium asked on
Web BrowsersSmartphonesWindows OS
3 Comments1 Solution847 ViewsLast Modified:
Hello !

I am trying to write a file from a HTML page using javascript in my offline application. I use Opera Mobile on a Windows Mobile 6.1 OS.
I do not find any working solution at the moment...

The best attempt so far was to use the following procedure :

It uses JQuery and a small library implementing a "save" and a "load" function. It has to call a jar file in order to work with Opera.
My very simple script works on my computer, using a "normal" Opera, but the "save" and "load" functions do not work anymore on the mobile device. I also tried on my computer with an Opera Mobile emulator, it did not work neither.

Here is a the main part of my code. It succeeds on Opera, but not on Opera Mobile (emulator and mobile device).
Other JQuery queries are working properly on the mobile.

// Run on document load
jQuery(function() {
	var $ = jQuery; // local alias
	var loc = location.pathname;
	var filepath = loc.substr(0,loc.lastIndexOf('/') + 1) + 'test.txt';

	var text = $.twFile.load(filepath); // Load the file
	        $, $('#name').attr('value'));

Any idea ? Of course, any other method allowing to read/write files would be good too.

Thank you,


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros