![]() Topic awaiting preservation: InnerHTML equivalent for Mozilla? (and many more JS questions) (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Mexico |
![]() 1.Well, as I mentioned here, I found out that Mozilla cannot edit the content of a tag with a innerHTML property (seeing how that seems exclusive of IE, and probably opera). code: function changeContent(what,text) {
code: var description = new Array(); //An array for putting the content. Just in case i dont rememebr what is this.
code: var visiblelay=false;
|
Maniac (V) Inmate From: Brisbane, Australia |
![]() Stop treating Mozilla like Netscape 4.x because their completely different! I probably shouldn?t have to say this, but I will because I?ll assume you haven?t done it yet -- go to the Mozilla home page and read the documentation, there's lots of info on the Mozilla DOM there. ( www.mozilla.org ) |
Bipolar (III) Inmate From: Cold Sweden |
![]() |
Paranoid (IV) Inmate From: A graveyard of dreams |
![]() A nice place to learn some more about JS is Slime's Enhancing Web Pages with JavaScript. A great introduction to js and DOM. |
Paranoid (IV) Inmate From: Mexico |
![]() Drac - as HZR said, innerhtml does not work for mozilla, as my prev version of that script was merely a 'onclick = obj.innerhtml ="stuff";' on the divs, and it did not work over mozilla, as Dl-44 can confirm. |
Bipolar (III) Inmate From: Cold Sweden |
![]() |
Paranoid (IV) Inmate From: Mexico |
![]() Well, i still cant get it to work |
Bipolar (III) Inmate From: Berlin (almost) |
![]() Alevice - it works when you use document.getElementById to get the object: |
Paranoid (IV) Inmate From: Mexico |
![]() Hello all, |
Maniac (V) Inmate From: under the bed |
![]() I am going to have to assume that Kuckus post right above yours actually gives you your answer. |
Paranoid (IV) Inmate From: Den Haag, Netherlands |
![]() I keep posting this guys site because it's one of the handiest tools I know for quick reference ... don't open an editor without it ... |
Paranoid (IV) Inmate From: Mexico |
![]() DL - Thats not quite what i asked. As i said, my problem was that 'test' (my div where i write the stuff) was not supposedly defined, according to my moz browser. Then again, my method was a bit wrong. code: function changeContent(what,text) {
|