472,964 Members | 2,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,964 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 1492
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: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...

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.