Dev.Opera - Follow the standards, break the rulesDev.Opera - Follow the standards, break the rules

Login

Lost password?

Forums » General Web Development Discussions

Discuss general web development related issues. For Opera bugs, use the Bug Report Wizard: https://bugs.opera.com/wizard/. For Opera feature requests and queries, use Desktop wish-list: http://my.opera.com/community/forums/forum.dml?id=24.

Note: You need to login to post in the forums. if you don't have an account you first need to sign up.

By PhaniMVS anchor Tuesday, 6. October 2009, 14:03:46

avatar

Using FileIo Feature

Hi,

We are trying to use FileIo library in the opera webbrowser version 10.
However unable to succeed in writing and reading the file using the javascript.

Added below lines in Config.xml
-------------------------------
<feature name="http://xmlns.opera.com/fileio">
</feature>

Added below java script to use opera.io.filesystem.mountsystemDirectory.
-------------------------------------------------------------
<script>
function sample()
{
alert("Welcome to Test WebSite");
var dir = opera.io.filesystem.mountSystemDirectory();
alert("After using FileSystem");
}
</script>
<body onLoad="sample();">

Javascript console throws the following error for the above settings
--------------------------------------------------------------------
"cannot convert undefined or null to Object"

Observation:
------------
We are suspecting at line
"var dir = opera.io.filesystem.mountSystemDirectory();" , as it is unable to register opera.io.filesystem onto the webservice.

Hence, we are requesting "is there any plugin for this library to be installed?"

Thanks & Regards,
Phani

By PhaniMVS anchor Wednesday, 7. October 2009, 16:25:22

avatarSir,

FileIo is working on Opera Version 9.52.

FileIo API are working only with .wgt files.

Extracted the .wgt file by renaming it as zip and extracted the files.

Invoking the index.html directly in the browser failes with error "cannot convert undefined or null to Object"

Is there way to use fileio without .wgt files.

As i have to work on Opera Version version 9.5 build 507.

Thanks,
Phani

By PhaniMVS anchor Thursday, 8. October 2009, 13:37:45

avatar
Hi,

I am able to execute the file I/O widgets. But i have a opera browser at version 9.5 but doesn't recognize widget files. Is there a way to use the fileio directly with out widgets.

Kindly respond at the earliest.

Thanks,
Phani

By andreasbovens O anchor Saturday, 31. October 2009, 03:24:06

avatarHi PhaniMVS - I recommend looking at our latest Opera Widgets release: http://labs.opera.com/news/2009/10/15/
This will have File I/O enabled, and allows you to run widgets as standalone applications.

Moderators: pepelsbey | dstorey | mcx | operadev | chrismills | shwetankdixit | brucelawson | iheni | andreasbovens | zibin | mollydotcom