Welcome to WebmasterWorld Guest from 54.159.50.111

Forum Moderators: open

Message Too Old, No Replies

Disappointed with Opera

no innerHtml

     
10:02 pm on Jun 29, 2001 (gmt 0)

Preferred Member

10+ Year Member

joined:Oct 26, 2000
posts:414
votes: 0



I have a js script that updates the contents of <div id="bla"> tag that works on Netscape 4.0 to 6.0 and IE 4.0 forwards. Opera has added the GetElementById but thats as far as I can get. Looks like I am going to give opera users an alert box.

It seems to me that if from 4.0 browsers forward it possible. There should be a way with Opera. ??

I have converted to a full time Opera user and enjoy the heck out of it. This surprises me.

1:24 am on June 30, 2001 (gmt 0)

Full Member

10+ Year Member

joined:Oct 18, 2000
posts:256
votes: 0


innerHTML is a proprietary IE extension. Have you tried using the standard DOM1 equivalents? They should be faster, anyway.
1:59 am on June 30, 2001 (gmt 0)

Preferred Member

10+ Year Member

joined:Oct 26, 2000
posts:414
votes: 0


innerHtml is now used by Netscape 6.(It looks like many of the once proprietary IE extension have been adopted).

I am using the standard DOM1 equivalents for the older Netscape browsers but I can't replace content of a div tag in opera. I am new to this level of scripting and am still learning

11:19 pm on June 30, 2001 (gmt 0)

Full Member

10+ Year Member

joined:Oct 18, 2000
posts:256
votes: 0


NN4 supports basically nothing from standard DOM1. While innerHTML has been adopted by NS6, it's still not a part of the standard and isn't (afaik) supported anywhere else.

The ...Child() functions and their relatives are part of the standard, so there's a good chance Opera supports them (I don't remember off the top of my head) and they tend to provide better performance than innerHTML. Have you tried them on Opera yet?