473,322 Members | 1,540 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,322 software developers and data experts.

JS problems on IE

I wrote some JS that works fine under Firefox, but causes IE to hang.
Can anyone give me some tips as to what the problem is in IE?
http://www.sci.brooklyn.cuny.edu/~gu...ice/index.html

Thanks!

Mar 1 '07 #1
13 1309


Maybe because you aren't generating <HTMLtags in the content you send
to the top.right frame?

*** Sent via Developersdex http://www.developersdex.com ***
Mar 1 '07 #2

Oh, I think I know why ...

-- change this:
<a href="arrex1.cpp" onclick="process(1,'a',5);">

-- to this:
<a href="javascript:process(1,'a',5);">

*** Sent via Developersdex http://www.developersdex.com ***
Mar 1 '07 #3
töff 93722 said the following on 3/1/2007 4:11 PM:
Oh, I think I know why ...
Don't think too hard, you might be wrong again.
-- change this:
<a href="arrex1.cpp" onclick="process(1,'a',5);">

-- to this:
<a href="javascript:process(1,'a',5);">
That is a dumb way to attempt to fix any problem. The effect is the
same, it calls a function.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Mar 1 '07 #4
Scuse me, I thought getting rid of the call to the .CPP file might help.
Please forgive me. I look forward to your own solution to the guy's
original question.

*** Sent via Developersdex http://www.developersdex.com ***
Mar 1 '07 #5
töff said the following on 3/1/2007 5:57 PM:
Scuse me, I thought getting rid of the call to the .CPP file might help.
What are you babbling about? If you had quoted what you were replying to
it would be easier to follow.
Please forgive me.
Sure thing.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Mar 2 '07 #6
I don't care if you are the FAQ editor. You're a jerk. You've flamed me
twice and not even tried to help the guy who asked the question. You've
got nothing better to do, I guess. What a life.

*** Sent via Developersdex http://www.developersdex.com ***
Mar 2 '07 #7
töff said the following on 3/1/2007 8:44 PM:
I don't care if you are the FAQ editor.
And I don't care if you are an idiot. Me being an FAQ Editor is
irrelevant, your idiocy is relevant.
You're a jerk.
I will add that to the list of names I have been called. You are gonna
have to try harder than that though.
You've flamed me twice
I did? Wow. If you think that was a flame you should see a real one.
and not even tried to help the guy who asked the question.
Sure I did. I told him, indirectly, that your advice was of no use.
You've got nothing better to do, I guess. What a life.
Actually, I do, I just choose to do this every now and then just for the
amusement.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Mar 2 '07 #8
cg******@gmail.com said the following on 3/1/2007 12:30 PM:
I wrote some JS that works fine under Firefox, but causes IE to hang.
Can anyone give me some tips as to what the problem is in IE?
http://www.sci.brooklyn.cuny.edu/~gu...ice/index.html
IE isn't issuing a document.open before you document.write to it. Adding
a top.right.document.write() to the beginning of the function keeps IE
from hanging forever:

function process(exno,arrayname,arraydim)
{
top.right.document.open();

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Mar 2 '07 #9
On Mar 2, 12:11 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
cgurw...@gmail.com said the following on 3/1/2007 12:30 PM:
I wrote some JS that works fine under Firefox, but causes IE to hang.
Can anyone give me some tips as to what the problem is in IE?
http://www.sci.brooklyn.cuny.edu/~gu...practice/index....

IE isn't issuing a document.open before you document.write to it. Adding
a top.right.document.write() to the beginning of the function keeps IE
from hanging forever:
Weird - isn't a call to document.open() *supposed* to be made
automatically when document.write() is called?

A better strategy might be to remove the use of document.write
completely.
--
Rob
Mar 2 '07 #10
RobG said the following on 3/2/2007 12:05 AM:
On Mar 2, 12:11 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
>cgurw...@gmail.com said the following on 3/1/2007 12:30 PM:
>>I wrote some JS that works fine under Firefox, but causes IE to hang.
Can anyone give me some tips as to what the problem is in IE?
http://www.sci.brooklyn.cuny.edu/~gu...practice/index....
IE isn't issuing a document.open before you document.write to it. Adding
a top.right.document.write() to the beginning of the function keeps IE
from hanging forever:

Weird - isn't a call to document.open() *supposed* to be made
automatically when document.write() is called?
That is my understanding. But adding the call to document.open solves
the freeze issue which points at the lack of an explicit document.open
as the culprit.
A better strategy might be to remove the use of document.write
completely.
Absolutely.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Mar 2 '07 #11
Inserting document.open() does not solve the problem.
Any other ideas??
Thanks!

On Mar 2, 12:45 am, Randy Webb <HikksNotAtH...@aol.comwrote:
RobG said the following on 3/2/2007 12:05 AM:
On Mar 2, 12:11 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
cgurw...@gmail.com said the following on 3/1/2007 12:30 PM:
>I wrote someJSthat works fine under Firefox, but causesIEto hang.
Can anyone give me some tips as to what the problem is inIE?
http://www.sci.brooklyn.cuny.edu/~gu...practice/index....
IEisn't issuing a document.open before you document.write to it. Adding
a top.right.document.write() to the beginning of the function keepsIE
from hanging forever:
Weird - isn't a call to document.open() *supposed* to be made
automatically when document.write() is called?

That is my understanding. But adding the call to document.open solves
the freeze issue which points at the lack of an explicit document.open
as the culprit.
A better strategy might be to remove the use of document.write
completely.

Absolutely.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -http://jibbering.com/faq/index.html
Javascript Best Practices -http://www.JavascriptToolbox.com/bestpractices/

Mar 5 '07 #12
cg******@gmail.com said the following on 3/5/2007 11:31 AM:
Inserting document.open() does not solve the problem.
It solved it for me locally. If it is not solving it for you then it is
something in your setup causing it.
Any other ideas??
Yes, don't top-post.

Answer:It destroys the order of the conversation
Question: Why?
Answer: Top-Posting.
Question: Whats the most annoying thing on Usenet?
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Mar 5 '07 #13
On Mar 5, 12:34 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
cgurw...@gmail.com said the following on 3/5/2007 11:31 AM:
Inserting document.open() does not solve the problem.

It solved it for me locally. If it is not solving it for you then it is
something in your setup causing it.
At this point it does work with the document.open(), but only on my
local machine.
When I access it off the server, it still makes IE hang. I did turn
off the pop-up blocker. What else could be causing this behavior?
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -http://jibbering.com/faq/index.html
Javascript Best Practices -http://www.JavascriptToolbox.com/bestpractices/

Mar 8 '07 #14

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

Similar topics

0
by: Jerome Lefebvre | last post by:
Hello, Hope this will interest a few. I been working with a friend on the problems given out during the "International Collegiate Programming Contest" (ICPC) http://icpc.baylor.edu/icpc/ ....
14
by: Jim Hubbard | last post by:
Are you up to speed on the difficulties in using the 1.1 .Net framework? Not if you are unaware of the 1,596 issues listed at KBAlertz (http://www.kbalertz.com/technology_3.aspx). If you are...
1
by: 3f | last post by:
Hello; We have made a web application that people can download from our web site and installed on: Windows XP Windows 2000 Professional Windows 2003 Server Windows 2000 Server
5
by: Corky | last post by:
This works: db2 SELECT DISTINCT PROBLEM_OBJECTS.PROBLEM_ID FROM PROBLEM_OBJECTS INNER JOIN PROBLEMS ON PROBLEM_OBJECTS.PROBLEM_ID = PROBLEMS.PROBLEM_ID WHERE INTEGER(DAYS(CURRENT DATE) -...
2
by: Ellen Graves | last post by:
I am having a lot of problems with DB2 8.3.1 on RH Linux AS2.1. Installing and running stored procedures is problematic. Stored procedures I have used for years on V7 on WinNT are now failing...
19
by: Jim | last post by:
I have spent the past few weeks designing a database for my company. The problem is I have started running into what I believe are stack overflow problems. There are two tab controls on the form...
10
by: BBFrost | last post by:
We just recently moved one of our major c# apps from VS Net 2002 to VS Net 2003. At first things were looking ok, now problems are starting to appear. So far ... (1) ...
19
by: Dales | last post by:
I have a custom control that builds what we refer to as "Formlets" around some content in a page. These are basically content "wrapper" sections that are tables that have a colored header and...
2
by: Brian | last post by:
NOTE ALSO POSTED IN microsoft.public.dotnet.framework.aspnet.buildingcontrols I have solved most of my Server Control Collection property issues. I wrote an HTML page that describes all of the...
0
by: Sergistm | last post by:
Hello World, :D I have a problem that it is making me crazy, I hope you can help me. I'm trying to execute a .exe file with the Procces.Start, and there is no problem when the file is on my...
0
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...
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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)...
1
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...
1
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
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.