Script works with IE6 but not with IE7

M

Manfred

Hi,

When I click any link on this page
http://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 at
http://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.getElementsByTagName('body')[0]:
(domDoc.body?domDoc.body:null))}
var dest=document.getElementById?document.getElementById(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
 
M

Manfred

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
 
R

RobG

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.
 
M

Manfred

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,981
Messages
2,570,188
Members
46,731
Latest member
MarcyGipso

Latest Threads

Top