I don't think that is going to work.

The problem here is that if you run the code above, while won't throw an
exception, you also won't really get the browser text. When you enable the
status bar, it *always* resets the status to '' on IE9

irb(main):093:0> ie.ie.StatusBar=false
=> false
irb(main):094:0> ie.ie.statusText = 'test'
=> "test"
irb(main):095:0> ie.ie.StatusBar=true
=> true
irb(main):096:0> ie.ie.statusText
=> ""

I think the right thing to do is if people are relying on the status bar,
they just need to know to enable it. If they do this, then when the status
bar text is set, IE will retain the value.

def status
    if @ie.StatusBar
        @ie.statusText
    else
        raise RuntimeError, "The status bar in IE is currently disabled.
Please enable it if you would like to use this feature"
    end
end

Does this seem like a reasonable approach?

Hugh
_______________________________________________
Wtr-development mailing list
Wtr-development@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to