Opera: browser quirks still continue

Posted: October 20th, 2003 | Author: telcor | Filed under: Software, WWW |

While putting together a modest web app for something at the house, I discovered an odd little quirk with Opera. The Web App uses an IFRAME to display content called by the user. It’s very simple really. A list is presented. The user picks an option in the list and there are several buttons to do something with the option selected. Clicking a button calls a JavaScript function that retrieves the option selected, the command chosen and loads the appropriate information in the IFRAME.

The JavaScript function looks something like:

function doSomthing(sel, cmd){
  sid = getSelected(sel);
  if(sid != false){
    window.IFRAME.location.href = cmd + '.php?sid=' + sid
  }
  else
    alert('Please select something from the list first);
}

where sid = getSelected(sel) returns the proper value selected in the list, or false if nothing is selected. Now, the above code works in Mozilla and IE6, but does absolutely nothing in Opera 7.21. After playing with the code a while, I discovered how to make it work, very easily. After the call to change the IFRAME location, place an alert(). That is all. Weird

Related posts

  1. Opera: Script This! Breaking with Tradition, I'm posting on a Thursday :) Today...
  2. Phoenix vs Opera The last few months I've used Phoenix as my main...
  3. XMLHttpRequest possibilities As it seems everyone is doing, lately I've been playing...
  4. Can you spot the bug Found in bBlog code: function maketimestamp($day,$month,$year,$hour,$minute) { // make timestamp...
  5. Google mail…Google browser? At Arstechnica this morning, they are reporting (from the...

Related posts brought to you by Yet Another Related Posts Plugin.



Leave a Reply