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

Script works with IE6 but not with IE7

Hi,

When I click any link on this page
http://free.pages.at/staudinger/Rege...2-08-01657.xml
it only works with IE 6 (and Firefox) but not in IE 7.
I've difficulties to pinpoint the problem (I'm still on win2000) but
I suspect it is in the very last part (copyContent, shown below)
of the script (full version at
http://free.pages.at/staudinger/Rege...equest_test.js)

I've prepared one page to show four alerts (in case of IE) in order
to pinpoint the problem:
alert('copyContent'+'\nsrc '+src+'\ndestId '+destId);
if(src==null){src=domDoc.getElementsByTagNameNS?
domDoc.getElementsByTagNameNS(nsXhtml,'body')[0]:
(domDoc.getElementsByTagName?domDoc.getElementsByT agName('body')[0]:
(domDoc.body?domDoc.body:null))}
var dest=document.getElementById?document.getElementBy Id(destId):
(document.all?document.all[destId]:null);
if(!src||!dest)return;
alert('copyContent'+'\nsrc '+src+'\ndest '+dest);
if(document.implementation.hasFeature("Range","2.0 ")){
// code for fx, opera, safari
}
else{
alert('copyContent'+'\ninnerHTML ');
if(src.innerHTML){
dest.innerHTML=src.innerHTML;
alert('copyContent'+'\ndest.innerHTML '+dest.innerHTML);

If you click on the second link ("Johann Hieronymus Mundtpradt")
you should see these alerts (copied from a run with IE6):

copyContent
src[object]
destId N-01657-2

copyContent
src[object]
dest[object]

copyContent
innerHTML

copyContent
dest.innerHTML <H3>Johann Hieronymus Mundtpradt</H3>
<DIV class=docindex><B>Quellen:</B><A class=Z01657
title="Eingangsprotokoll des Reichshofrates"
hreg="http://free.pages.at/staudinger/Regest/Regesten/_A1601-02
-08-01657.xml">1601-02-08</A><SPAN class=Z01657>1601-02-08</SPAN>

Now for my questions:
1. Does IE7 show an error message ?
2. Can you see those 4 alerts in IE7 ?

I would appreciate any help very much,

Manfred

Feb 5 '07 #1
3 4637
Hi,

I did not receive any answer for my two questions about
my problem with IE 7. These questions are
1. Does IE7 show an error message ?
2. Can you see those 4 alerts in IE7 ?
The problems description is to be find below.

I would appreciate any help very much,

Manfred

On Feb 5, 7:53 pm, "Manfred" <manfred.staudin...@gmail.comwrote:
Hi,

When I click any link on this pagehttp://free.pages.at/staudinger/Regest/Regesten/_A1601-02-08-01657.xml
it only works with IE 6 (and Firefox) but not in IE 7.
I've difficulties to pinpoint the problem (I'm still on win2000) but
I suspect it is in the very last part (copyContent, shown below)
of the script (full version athttp://free.pages.at/staudinger/Regest/htmlhttprequest_test.js)

I've prepared one page to show four alerts (in case of IE) in order
to pinpoint the problem:
alert('copyContent'+'\nsrc '+src+'\ndestId '+destId);
if(src==null){src=domDoc.getElementsByTagNameNS?
domDoc.getElementsByTagNameNS(nsXhtml,'body')[0]:
(domDoc.getElementsByTagName?domDoc.getElementsByT agName('body')[0]:
(domDoc.body?domDoc.body:null))}
var dest=document.getElementById?document.getElementBy Id(destId):
(document.all?document.all[destId]:null);
if(!src||!dest)return;
alert('copyContent'+'\nsrc '+src+'\ndest '+dest);
if(document.implementation.hasFeature("Range","2.0 ")){
// code for fx, opera, safari
}
else{
alert('copyContent'+'\ninnerHTML ');
if(src.innerHTML){
dest.innerHTML=src.innerHTML;
alert('copyContent'+'\ndest.innerHTML '+dest.innerHTML);

If you click on the second link ("Johann Hieronymus Mundtpradt")
you should see these alerts (copied from a run with IE6):

copyContent
src[object]
destId N-01657-2

copyContent
src[object]
dest[object]

copyContent
innerHTML

copyContent
dest.innerHTML <H3>Johann Hieronymus Mundtpradt</H3>
<DIV class=docindex><B>Quellen:</B><A class=Z01657
title="Eingangsprotokoll des Reichshofrates"
hreg="http://free.pages.at/staudinger/Regest/Regesten/_A1601-02
-08-01657.xml">1601-02-08</A><SPAN class=Z01657>1601-02-08</SPAN>

Now for my questions:
1. Does IE7 show an error message ?
2. Can you see those 4 alerts in IE7 ?

I would appreciate any help very much,

Manfred
Feb 7 '07 #2
On Feb 6, 4:53 am, "Manfred" <manfred.staudin...@gmail.comwrote:
Hi,

When I click any link on this pagehttp://free.pages.at/staudinger/Regest/Regesten/_A1601-02-08-01657.xml
it only works with IE 6 (and Firefox) but not in IE 7.
It gives me "Done, but with errors on page" in IE 6 (XP sp2):

Line: 8
Char: 32
Error: Object expected
Code: 0
URL: ...
Hope that helps.

--
Rob

Feb 7 '07 #3
On Feb 7, 1:27 am, "RobG" <r...@iinet.net.auwrote:
It gives me "Done, but with errors on page" in IE 6 (XP sp2):

Line: 8
Char: 32
Error: Object expected
Code: 0
URL: ...

Hope that helps.
Sorry Rob, no, I was asking about IE7 !

Manfred

Feb 7 '07 #4

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

Similar topics

8
by: Sticks | last post by:
ok... im not quite sure how to describe my problem. i have a php script that runs through my entire php site and writes the resulting output to html files. this is necessary as the nature of the...
12
by: bhennon | last post by:
Hey all, I have a small php script that calls a random image at the following page. http://www.2006ymcanationals.com/random.php IT WORKS IF I go directly to the above link. I am trying to...
5
by: Tim Morrison | last post by:
Is there any easy way to create a change script as illustrated below for all tables within a database? Right now I would have to create a seperate script for each table. I would like to be able...
5
by: Yves-Alain NICOLLET | last post by:
How is it that when I include a script within a document it works and when I try to get it from my webserver it does not seem to work at all? I have documents on my webserver that contain a...
5
by: zaw | last post by:
Hi I am working on implementing this script to shopping cart. Basically, it copies fill the shipping address from billing automatically. I believe one or more syntax is not netscape compatible....
23
by: Loony | last post by:
I have got a code like this in HTML section in ASP file which includes javascript file! The script works under MS IE but doesn't with Firefox! Can anybody tell me what is wrong? <HTML>...
9
by: Jerim79 | last post by:
I am no PHP programmer. At my current job I made it known that I was no PHP programmer during the interview. Still they have given me a script to write with the understanding that it will take me a...
8
by: Milsnips | last post by:
hi there, i'm currently using the following line: <script language="javascript" type="text/javascript" src="../scripts/timer.js"></script> but i want to do the following, as the script...
9
by: 8anos | last post by:
Hello, I am new at the community and newbie at programming :) As you may know rapidshare provides a perl script for linux, to upload files at their servers. You can find the original scripts at...
1
by: rfr | last post by:
Apparently the Transitional Doctype kills this script because the script does not make proper use of units like "px". It works well without a doctype statement. But once someone adds a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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:
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
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
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...
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,...

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.