Topic awaiting preservation: InnerHTML equivalent for Mozilla? (and many more JS questions) |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: Mexico |
posted 08-22-2003 23:25
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 |
posted 08-23-2003 17:31
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 |
posted 08-23-2003 19:15 |
Paranoid (IV) Inmate From: A graveyard of dreams |
posted 08-23-2003 22:17
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 |
posted 08-24-2003 00:55
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 |
posted 08-24-2003 01:11 |
Paranoid (IV) Inmate From: Mexico |
posted 08-24-2003 01:53
Well, i still cant get it to work |
Bipolar (III) Inmate From: Berlin (almost) |
posted 08-24-2003 08:56
Alevice - it works when you use document.getElementById to get the object: |
Paranoid (IV) Inmate From: Mexico |
posted 09-01-2003 00:51
Hello all, |
Maniac (V) Inmate From: under the bed |
posted 09-01-2003 01:27
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 |
posted 09-01-2003 09:53
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 |
posted 09-04-2003 01:26
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) {
|