Skip navigation

Sign up | Lost password? | Help

Hello World

Practical programming... and stuff...

MyOpera status

I decided to throw together a widget for updating your status here on MyOpera. Or is it My Opera with a space? Well, in any case...

It's a nice little feature... but quite useless to be honest... Fun, but useless. :D


I had to do some research to be able to make the widget work: It wasn't immediately obvious from looking at the HTML code for this page how it should do the XMLHttpRequest calls, but luckily the Opera folks hadn't obfuscated their JavaScript code that does the AJAX when you change your status, so I was able to get help from there.

Additionally, I realized I needed to add log in to the widget; Despite being logged in in the browser, the widget wouldn't be able to update the status. For this I again took liberties to get some help from Opera's people's code, this time the My Opera widget.


In the end the widget is very simple. It just does some AJAX calls and with Prototype making them work was a breeze. Have I mentioned how much I like Prototype? No? Oh, well in that case: Prototype is the best JavaScript AJAX/DOM library. Period.



As an end note, I know some of my old widgets are in need of updates... I'm sorry, I don't have enough time to go over them. However, if you like them and want to fix it on your own, I'm happy to answer questions related to the source code etc. and if you send me an updated version, I'll go over it and if it's okay I will upload it as a new version with credits to you. Note that this applies only to bug fixes, not completely new feature additions.

Blog tag: 5 things I'd like to see in OperaRuby on Rails vs. PHP

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies