473,545 Members | 2,820 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 11425
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
14453
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...
1
3895
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
17351
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...
3
1474
by: Bill | last post by:
Hi Testing in IE6 I have the following doctype is xhtml strict ============
8
1427
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...
3
3794
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
27495
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
10021
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...
0
7502
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7434
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...
1
7457
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7791
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...
0
6026
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...
1
5360
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3470
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1045
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
744
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...

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.