Welcome to WebmasterWorld Guest from 54.226.130.194

Forum Moderators: open

Message Too Old, No Replies

Disappointed with Opera

no innerHtml

     

David

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

10+ Year Member




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.

gmiller

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

10+ Year Member



innerHTML is a proprietary IE extension. Have you tried using the standard DOM1 equivalents? They should be faster, anyway.

David

1:59 am on Jun 30, 2001 (gmt 0)

10+ Year Member



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

gmiller

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

10+ Year Member



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?