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

Login

Lost password?

Forums » Article Discussions

Discuss the articles posted on Dev.Opera.

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

By operadev anchor Tuesday, 22. January 2008, 18:24:21

Creating your your first Opera widget

Everyone's gotta start somewhere...this article gives you a detailed step by step guide to creating, packaging and distributing an Opera Widget, complete with CSS styling and dynamic JavaScript behavior! Note that this is an update of the "Your first widget" article we had up here previously.

( Read the article )

By hzr O anchor Wednesday, 23. January 2008, 16:16:50

avatarI haven't read the whole updated article, but it still says that the extension should be '.wgt' which does not work in 9.2 (but does in 9.5). Only '.zip' works. You might want to mention that.

By Mygolix anchor Monday, 2. February 2009, 04:28:11

avatarLooks like there is a space missing in the CSS example:

#container:hover.controlbutton {
  opacity: 0.3;
}

instead should be
#container:hover .controlbutton {
  opacity: 0.3;
}

By gonzalotravieso anchor Friday, 10. July 2009, 20:02:49

avatarThe javascript mentions a wocbutton:

    // make WOC button open a browser window
    document.getElementById('wocbutton').addEventListener('click', function(ev){
      widget.openURL('http://widgets.opera.com');
    }, false);


Unfortunately, there's no wocbutton!

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