FAQ - Frequently Asked Questions about Opera Widgets

Forums » General Opera topics » Opera Widgets

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

3. April 2009, 12:37:03

Opera Software

For_d

Posts: 229

FAQ - Frequently Asked Questions about Opera Widgets

Widgets FAQ

Last updated: 2013-01-07 by For_d.

Opera Widgets are no longer supported. The questions and answers below are kept for historical purposes. The W3C Widget Packaging and Configuration specification is now used for the packaging of Opera Extensions.

Are Opera Widgets like Firefox extensions?

No. Opera Widgets are built using Web technology, such as HTML, CSS and JavaScript, and packaged and distributed in the ZIP format. Widgets can contact most servers on the internet and download and combine information. They cannot, however, interact with the browser itself, modify or insert content into Web pages, add specific chrome or menu items to the browser or similar.

Does Opera support Firefox extensions?

No.

See this blog post for a more in-depth comparison of Opera features and available extensions.

Can I display a widget in a panel in Opera?

Not directly, but you can display a Web page as a panel by following a link to the Web site with a rel="sidebar" attribute, dragging a Web page to the panel, or by choosing a page from the Customize menu item of the panel. You can do this for the index.html file in an unpackged widget, but note that this will not be able to do cross-origin requests.

Can I change the content of a tab (Web page) through a widget?

No, Opera Widgets do not work as extensions. They cannot interact with the browser itself, modify or insert content into Web pages, add specific chrome or menu items to the browser or similar.

User JavaScript can be used to manipulate Web pages being loaded, however.

Can widgets open URLs pointing to localhost?

This does not work in Opera 9~, but is expected to work in Opera 10.

Can widgets read files from the file system?

Not yet. We are planning on including support for File I/O in regular builds of Opera. This feature will be turned on for widgets.

My widget worked in Opera 9, but stopped working in Opera 10, why?

See the next question.

I get a "SECURITY VIOLATION" exception in my error console, what does this mean?

A new security model for widgets is introduced in Opera 10 where the author needs to explicitly allow network access for the widget. You can do this by adding a network attribute with the value "public" to the widget element in config.xml. See this blog post for more information.

The code in config.xml would now look like this:

<widget network="public">...</widget>


Can a widget read files inside itself?

For images and scripts you can define a relative URL. This will be relative to where config.xml resides.

For data files like XML, you should be able to use XMLHttpRequest and a relative URL as above. This does not work on Opera 9~. It is expected to work in Opera 10.

You can also use DOM 3 Load and Save, which works in Opera 9.

var oXmlDoc = document.implementation.createDocument("","",null);
oXmlDoc.load("relative_path/file.xml");


Can a widget read files inside of or otherwise communicate with another widget?

No.

Does Opera store cookies for widgets?

Yes. This should work just as on a Web page.

Are cookies shared between widgets or Web pages?

No. Cookies set for one widget are only visible for that widget. Web pages cannot see cookies set for widgets.

My widget doesn't work, how can I get help?

Try reading the documentation in the Opera Widgets SDK to see if that answers your questions.

If not, use the forums to ask questions. When you do, please include this information:

* The Opera version you're trying it on, i.e. 9.64, 9.5, 10.
* The Operating System you're trying it on, i.e. Windows, Linux or Mac.
* The device you're using, if any.
* Check your Error console and report if you get any errors in it.
* Quote code if applicable. That makes it easier for people to diagnose the problem. It may make sense to attach the entire widget to the post in some cases.

Visit the forums here.
--
Vennlig hilsen
Hans S. Tømmerholt

3. April 2009, 12:40:59

Moderator

Tamil

:-(|)

Posts: 115311

up & make this thread sticky.

Originally posted by For_d:

Can widgets open URLs ponting to localhost?

Typo.

3. April 2009, 12:44:32

Opera Software

For_d

Posts: 229

Fixed and done. Thanks! I had to aquire some moderation powers first.
--
Vennlig hilsen
Hans S. Tømmerholt

13. June 2009, 00:31:33

Christ06

Posts: 3

cry where's the widgets for my java device?

15. June 2009, 09:03:35

Opera Software

For_d

Posts: 229

You can run widgets on phones with Symbian S60 and Windows Mobile OSes. I'm not sure what a "Java device" is.
--
Vennlig hilsen
Hans S. Tømmerholt

20. June 2009, 22:17:01

demank

Posts: 3

Any widget for operamini?

22. June 2009, 07:42:33

Opera Software

For_d

Posts: 229

Not at current, I'm afraid.
--
Vennlig hilsen
Hans S. Tømmerholt

6. September 2009, 10:29:31

mannri

Banned user

Hi guys. is it possible to minimize widgets if opera is minimized? Or maybe to stick widget to opera window so it stays inside opera window??

7. September 2009, 08:42:31

Opera Software

For_d

Posts: 229

No, I'm afraid not.
--
Vennlig hilsen
Hans S. Tømmerholt

25. November 2009, 22:03:14

gbilotta

Posts: 239

The FAQ should probably be updated where it mentions things that 'might' be possible in Opera 10, stating which ones are which ones aren't actually possible 8-)

1. December 2009, 14:50:28

Opera Software

For_d

Posts: 229

I'll give it a review and update it. There's probably more stuff that should be mentioned now with the Alpha of the Desktop WRT. If anyone have suggestions for Q&As to add, feel free to suggest.
--
Vennlig hilsen
Hans S. Tømmerholt

6. December 2009, 17:03:38

Hades32

What I use:

Posts: 1917

Originally posted by For_d:

Not yet. We are planning on including support for File I/O in regular builds of Opera. This feature will be turned on for widgets.


With Opera 10.2 this works smile
Using Windows 7 64Bit SP1 and of course Opera
(If nothing else stated the most current weekly) on a nice Dell Studio XPS 16!

10. December 2009, 17:57:39

patsennarion

Posts: 3

need help , inorder for my archos 5 to run widgets i have to download them to my pc first then copy them over , now how do i get the webpage to do that? im using ie8 , i also installed opera 10 on my pc, im useing win7ultimate x64
help please?

11. December 2009, 09:35:48

Opera Software

For_d

Posts: 229

Please make a proper post, rather than post in a random thread.
--
Vennlig hilsen
Hans S. Tømmerholt

15. December 2009, 13:27:42

PaulReeves

Posts: 4

Hello;
This seems to be the best place I can find to post a general question on Widgets.

Background: A particular widget ( "dotoo" ) works fine at first, then a few days later stops operating. It launches OK, but does not display. The only indication it is "active" is it's entry in my Windows Vista taskbar.
I left a post on this Nov 27 for the widget's author on the widget page, but have seen no reply.

Question: Is there a better way to try to get this resolved?
Thanks, Paul Reeves

21. December 2009, 15:22:02

mreyes104

Posts: 1

How I can download widgets for my archos 5 (generation 6). I click in the widgets and open in my computer, but not save for trasfer to my archos. Please, someone help me.

Thanks.


mreyes104

22. January 2010, 04:24:23

orochi65

Posts: 17

I'm lost about this!! damn it...i feel like a little child on kindergarden!! I look for a boy to help me...lol...I'll try! anyway


say hi and bye!! thanks

2. May 2010, 09:37:47

superMmerlin

Posts: 2

I get an error saying " The location "C:\Documents and Settings\... ...\temporary_downloads\Widget_Analog-Clock_3529-1.14.wgt" is unavailable or does not to a valid widget file." What does it mean?
What I have to do?

6. May 2010, 04:22:43

soundgirl-ddl

Posts: 1

Hi, I'm getting the same problem as superMmerlin, I can't access any widget because it says " The location "C:\Documents and Settings\... ...\temporary_downloads\Widget_Analog-Clock_3529-1.14.wgt" is unavailable or does not to a valid widget file." ): what is going on? I've already tried uninstalling it & re-runing my Opera.

9. October 2010, 16:27:31

DavidCan

Posts: 10

Excellent FAQ for Widgets. Thanks.

20. October 2011, 17:26:28

juliusopra

Posts: 5

Hi,

I have created and published an Opera Widget called Mahjong using my developer name JuliusOpra:
http://widgets.opera.com/widget/27182/1.0/


I am a little concerned as to the length of time for approval. I created this Opera Widget on Friday 7th October 2011, to-date I have received no correspondence, and my Widget has still not been approved.

Please can this matter be given the expediency and efficiency that it deserves, and provision made for my Opera Widget to receive appropriate approval.

I am deeply enthusiastic about developing Opera Widgets, I believe that this offers developers an immense opportunity to hit the ground running in the provision of excellent, well crafted, unique Apps for the Opera community, enabling the fastest web browsing community another step forward in their quest for number one dominance of the web browsing market.

Thank You in advance.

Please contact me directly on my mobile, ph. 0794 057 8423, if you have further questions.

I look forward to your response.

Regards

Mobile :0794 057 8423
Mail : juliusopra@myopera.com

9. January 2013, 15:36:47

Opera Software

For_d

Posts: 229

Ahem. Yes, thank you. Sorry for the late reply, but was fighting an editing bug. I've now marked the FAQ to be of historical interest only. As a former widget docs writer, thanks for staying with us and playing with this tech and contributing questions and suggestions.
--
Vennlig hilsen
Hans S. Tømmerholt

2. May 2013, 17:33:05 (edited)

thealexander99

Posts: 1

Off-topic post removed

Forums » General Opera topics » Opera Widgets