This topic has been closed. No new entries allowed.
Reason: You can now post comments on articles on Dev Opera
You need to be logged in to post in the forums. If you do not have an account, please sign up first.
Saying hello world to Opera extensions!
In this tutorial we give you a basic walkthrough to create the classic Hello World, using Opera extensions.( Read the article )
David Storey, Chief Web Opener, Product Manager Opera Dragonfly, Opera Software ASA
Originally posted by Lex1:
Error in the code:
Fixed.
Developer Relations Manager
Editor, dev.opera.com and labs.opera.com
http://dev.opera.com/forums/topic/776342
«clicking on the button again closes it. Looking at the JSDoc there is no methods to close it from within the popup.»
Originally posted by shoust:
I think he meant programatically. I've been looking for this answer myself. It seems the popup can't close itself and the background page can't close it either.Is there currently any way to close the popup by a script?
My bugs / disable RSS subscription prompt (This will disable email and chat as well) / Receive emailed copies of your bug reports
quote from desktopteam blog Feb 23 2007 06:49.36 (direct link to comment)
Originally posted by borg:
Source: Mozilla Links - 5 things I’d like to see in Operawe will not be satisfied before we have the best developer tools in the industry
Originally posted by Percy Cabello:
One of the main reasons I prefer Firefox is that it starts from the belief that it can’t be the ideal browser for everybody
var extension = window.opera.extension, tab = '';
extension.onmessage = function(e){
if(e.data && extension.tabs.getFocused())tab = extension.tabs.getFocused();
http://ruzanow.ru/opera/extensions/google-translate.oex
Originally posted by Lex1:
Another problem with popup. If popup is opened, extension.tabs.getFocused() returned null. I tried to use this code, but it's seems ugly: var extension = window.opera.extension, tab = '';
extension.onmessage = function(e){
if(e.data && extension.tabs.getFocused())tab = extension.tabs.getFocused();
From one of our developers: If you want to communicate with a popup, messages can be used. To change it's content do it through the background process. If you want to get a reference to a popup using extension.tabs.getFocused() it won't work, hence the null object.
Developer Relations Manager
Editor, dev.opera.com and labs.opera.com
getFocused()
Very bugged. It not worked when the page isn't completely loaded: «Uncaught exception: TypeError: 'tab.postMessage' is not a function»
Also if you use back/forward on the pages what's contain iframes: http://dev.opera.com/forums/findpost.pl?id=7454462
If you want to communicate with a popup, messages can be used.
I want to communicate with userjs in the current page. From popup.
Originally posted by infostations:
i copied everything you guys told me to do and i dragged my new file after zipping it to the browser and it said "Installation Failed" even when i make my own but when i download the already made one it works
did you zip the contents? or the folder of the contents? it should be the former.
Originally posted by fetis:
how can I develop extension w/o putting it every time in .oex archive?
this is the only way now, but we're making changes so that it's easier in the next iteration. Maybe in the form of widgets style installation where you can drag your config.xml only. or maybe some other ways.
Originally posted by desktopteam blog:
For extensions developers, from now on if you drag'n'drop extension's config.xml file onto Opera a separate list is created in Extensions Manager which is titled 'Developer mode'. Each entry on this list has additional buttons: 'Reload' (you don't have to install and uninstall to see the changes now, just click 'Reload') and 'Open containing folder' which we think can be quite useful.
source: http://my.opera.com/desktopteam/blog/2010/11/06/snapshot
HTH

blog (en/de) | houmpäidsch (de) | Extension: cleanPages for Opera 11 and 12
Proghead: Could you tell me what OS you're using please? I'm trying to reproduce the issue but in the meantime, using wget to download it should work:
wget http://dev.opera.com/articles/view/opera-extensions-hello-world/hello.oex
Originally posted by Tano80:
please give my message to opera developers that UCWEB IS FAR BETTER THAN PERA MINI now so try to advance Opera with keypad handling system. thanks
This is a slightly trollish comment - can you be a bit more exact with your feedback? What exactly is wrong with the keypad system? Feel free to message me on cmills@opera.com if you want to target feedback more directly.
thanks!
Developer Relations Manager
Editor, dev.opera.com and labs.opera.com
<widget xmlns="http://www.w3.org/ns/widgets" id="http://www.example.org/helloworld">
It should be:
<widget xmlns="http://www.w3.org/ns/widgets" id="http://www.example.org/helloworld">
Without this fix it doesn't work on my side at least.
Took me few minutes to find this.
Shame to post "Hello world" examples not working!
However it is great step from Opera to introduce extensions.
Thanks.
Originally posted by IgorT75:
There is a mistype in config.xml file in this line:<widget xmlns="http://www.w3.org/ns/widgets" id="http://www.example.org/helloworld">It should be:<widget xmlns="http://www.w3.org/ns/widgets" id="http://www.example.org/helloworld">Without this fix it doesn't work on my side at least.Took me few minutes to find this.
At the risk of sounding stupid - I can't see any difference between these two lines. What is the mistake that we included? ;-)
oh, wait - now I see - there was an (un)unescaped " in the code listing. Fixed now - sorry about that!
Appreciate you bringing it to my attention.
Developer Relations Manager
Editor, dev.opera.com and labs.opera.com