473,320 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

IE don't refresh DOM after <DIV> removing

Hello everybody,

I'm relatively new to javascript + DOM so I've a question :

I'm removing <div> elements in DOM with javascript.
It works perfectly in Firefox and Opera : I mean the DOM is refreshed
automatically and I see the changes.

But in IE (version 6), I don't see any changes. Do I have do to
something more with IE to tell "him" to refresh the DOM.

If you want more details. I'm using the wz_jsgraphics.js library.
This library add DIV tag to draw shapes.

I modified the clear function by just removing the added DIV. And it
works perfectly on FF and Opera but
on IE the DOM doesn't seem to be refreshed.
So, what can i do to get the DOM refreshed in IE ?

Thanks in advance,

Chantal

Feb 9 '06 #1
3 11411
Chantal wrote on 09 feb 2006 in comp.lang.javascript:
I'm relatively new to javascript + DOM so I've a question :

I'm removing <div> elements in DOM with javascript.
It works perfectly in Firefox and Opera : I mean the DOM is refreshed
automatically and I see the changes.

But in IE (version 6), I don't see any changes. Do I have do to
something more with IE to tell "him" to refresh the DOM.

If you want more details. I'm using the wz_jsgraphics.js library.
This library add DIV tag to draw shapes.

I modified the clear function by just removing the added DIV. And it
works perfectly on FF and Opera but
on IE the DOM doesn't seem to be refreshed.
So, what can i do to get the DOM refreshed in IE ?


Why not simply make a <div> display:none; ?
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Feb 9 '06 #2
Hi Evert-Jan,

Because I really need to remove the DIV elements.

Loot at http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm to
understand what I mean.

;o)

Btw, IT WORKS NOW on my 3 browsers.

In fact, IE, I don't know why, refused to add a ID to my DIV elements
in my function.

So, my deleting function was looking this ID and didn't found it with
IE.
So, now I only test the NodeName of the element.
I'm lucky enough to have only "DIV to remove" in my childnodes and not
some to preserve.

This IE DOM inspector helped me a lot to find the problem :
http://www.cheztabor.com/IEDocMon/

Thanks,

Chantal

Feb 9 '06 #3
Chantal wrote:
Hi Evert-Jan,

Because I really need to remove the DIV elements.

Loot at http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm to
understand what I mean.
Better yet, why not post the offending code?
In fact, IE, I don't know why, refused to add a ID to my DIV elements
in my function.


I have never experienced that problem - therefore, I suspect it may be
in the way you were declaring the ID property. Post the code and we can
see.

OTOH, if it works & you're satisfied, don't bother :)

Feb 9 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Daniel Hansen | last post by:
I know this must seem totally basic and stupid, but I cannot find any reference that describes how to control the spacing between <p>...</p> and <div>...</div> blocks. When I implement these on a...
1
by: Alan Hoyle | last post by:
I was using a <table border> to generate borders around some info/images, and decided to follow the w3c guidelines and convert it to CSS boxes with borders since it wasn't really tabular data. ...
19
by: CMAR | last post by:
I have the following markup. The problem is that the browser, e.g., IE6, inserts several lines of blank space between the <div> and the following table. Is there a way to minimize that vertical...
44
by: Jim M | last post by:
I have had great success with using <iframe> with overflow-y set to auto. I can get a similar look with the <iframe> tag. BUT... In all cases I need to have fixed heights. Is there a way to...
3
by: Bill | last post by:
Hi Testing in IE6 I have the following doctype is xhtml strict ============
8
by: Patrick | last post by:
Hi you all, I've just downloaded the latest beta of the .Net Framework and Visual Studio Expression 2005 edition. I only created a simple ASPX file with some code-beside/behind (however you want...
3
by: Josef K. | last post by:
Asp.net generates the following html when producing RadioButton lists: <td><input id="RadioButtonList_3" type="radio" name="MyRadioButtonList" value="644"...
13
by: Davo | last post by:
Hi Folks, There seems to be something about not using tables for layout, but use divs instead. I'm not sure if I've got this right. If the output looks like what you want, then it shouldn't...
8
prino
by: prino | last post by:
Hi all, I've written code (in REXX) that takes files in legacy languages (PL/I, COBOL, z/OS assembler, etc) and converts them into HTML in a format similar to what's displayed in the z/OS ISPF...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.