473,397 Members | 2,077 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,397 software developers and data experts.

IE needs to close

I have a parent page with a number of child rows on it.

When I press an onclick event on the parent page a child window opens
and deletes the child data from the db table, then the child window
passes back that row to the parent window.

The child window open up using:
mydeltaskwin =
window.open(mycgi,'task_delete','width=800,height= 400,top=50,left=50,scrollbars=no');

In the parent window I use some js code embedded in the parent page
like:
<script type="text/javascript" src="mycode.js"></script>

The code that executes in that js file looks like:
function delTaskRow(x,y)
{
var row_delete = document.getElementById("Task_Row_"+y);
if ( this_num == lx && row_delete )
{
row_delete.parentNode.removeChild(row_delete);
}
}

If I have a number of rows that need to be deleted then pressing them
in succession ultimately causes an error in IE and I get the message:

IE experienced a problem and needs to close! debug, close.

Is this happening because I am using some code that is inconsistent?

I am wondering if it is because IE open the windows and then they
close, but the reminants of them are somewhere still in memory and then
it gets confused.

Anyone experience this kind of thing?

Mike

Oct 14 '05 #1
1 1511
mike wrote:
I have a parent page with a number of child rows on it.

When I press an onclick event on the parent page a child window opens
and deletes the child data from the db table, then the child window
passes back that row to the parent window.

The child window open up using:
mydeltaskwin =
window.open(mycgi,'task_delete','width=800,height= 400,top=50,left=50,scrollbars=no');

In the parent window I use some js code embedded in the parent page
like:
<script type="text/javascript" src="mycode.js"></script>

The code that executes in that js file looks like:
function delTaskRow(x,y)
{
var row_delete = document.getElementById("Task_Row_"+y);
if ( this_num == lx && row_delete )
{
row_delete.parentNode.removeChild(row_delete);
}
}

If I have a number of rows that need to be deleted then pressing them
in succession ultimately causes an error in IE and I get the message:

IE experienced a problem and needs to close! debug, close.

Is this happening because I am using some code that is inconsistent?

I am wondering if it is because IE open the windows and then they
close, but the reminants of them are somewhere still in memory and then
it gets confused.


Closures may cause memory leak problems with IE, but nothing you have
here uses them. However, given what you are doing, it is quite possibly
happening - Google 'Javascript IE memory leak'.

Build a minimal test case that demonstrates the error and post it or
provide a link to your page (the DB interaction can be omitted). Often
while building the test case you will find your problem and be able to
express it more explicitly, if not fix it.

[...]

--
Rob
Oct 14 '05 #2

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

Similar topics

4
by: ...D. | last post by:
OK. I am halfway decent with HTML. Now I want to try javascript for some things that HTML cannot do. I have looked over a tutorial & all. What I want to do is create a button, that when...
0
by: sitpost | last post by:
Only days before the election, a few key ‘battleground-states' esp. OHIO are barraged with political ads; which are increasingly "canceling each other out!" Talk about the "fog of politics!" A...
1
by: pw | last post by:
Someone was using our A97 product earlier in the day. He exited it, and now can't open the application. He is all of a sudden getting "MSAccess.exe has encountered an error and needs to close". ...
3
by: ljubo lecic via AccessMonster.com | last post by:
I have written a pretty complex ACCESS accounting aplication which is working fine.But under some circumstances I get this nasty error message: "Microsoft ACCESS has encauntered a problem and needs...
13
by: M O J O | last post by:
Often when I run my aspnet 2.0 vb application, I get this exception.... "Microsoft (R) Visual Basic Compiler has encountered a problem and needs to close. We are sorry for the inconvenience." ...
5
by: mk | last post by:
Greetings all - im new to this newsgroup so pls dont flame me :p I need some help! Please view the html below in a browser. Or goto this url -http://firebrain.co.uk/java-problem.htm (Assuming...
0
by: Ola | last post by:
I have an application that is runing all the time, 24 7. Sometimes it just stops and I recive this error: " has encounted a problem and needs to close. We are sorry for the inconvenience" And...
0
by: John A. Bailo | last post by:
I just got a new server built by my network group with Windows 2003. I updated a c# console app that was running under 2000/.NET 1.1 to .NET 2.0 When running it on the new machine it runs to...
4
by: Aric Green | last post by:
At work we have upgraded to Office 2007. Our users are getting an error message at random while using Excel and Word. “Microsoft Office (Appname) has encountered a problem and needs to close. We...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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,...
0
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...

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.