473,738 Members | 1,949 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.j s 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 11429
Chantal wrote on 09 feb 2006 in comp.lang.javas cript:
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.j s 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
14467
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 page, there is a huge gap (like 3/8 inch or 25 px) between them. This is driving me bananas. What the hey am I missing? dh ------------------------------------------------ Dan Hansen ------------------------------------------------
1
3909
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. It used to be something like this: <table> <tr> <td><img>caption</td> <td><img>caption</td>
19
17542
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 spacing? Thanks, CMA <div class="vlgray">Condition</div> <table cellpadding="0" cellspacing="0">
44
919
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 put either tag inside an HTML <TD> and have the same kind of scrolling effect. This would allow me to fill the screen and have the size of the scrolling box change on resize. Thanks in advance.
3
1480
by: Bill | last post by:
Hi Testing in IE6 I have the following doctype is xhtml strict ============
8
1436
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 to call it). First thing I checked was the generated html-output and I was shocked! I found <div>-tags everywhere .... what are they for? which w3c standard or recommendation was intended to be covered by this tags??? However I thought I could...
3
3812
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" onclick="__doPostBack('SitesRadioButtonList_3','')" language="javascript" />
13
27505
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 matter what tags you use I would have thought, or am I missing something? tia, Davo
8
10047
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 editor. A fellow member of the PCG has helped me by creating a bit of Javascript to emulate the scrolling and using Google I've now gotten it into a state where it almost passes the W3C Markup Validation Service. However, the one error, Error Line 166,...
0
8787
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9473
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9208
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8208
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6053
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4824
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3279
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.