Hi,
When I click any link on this page
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('copyCont ent'+'\nsrc '+src+'\ndestId '+destId);
if(src==null){s rc=domDoc.getEl ementsByTagName NS?
domDoc.getEleme ntsByTagNameNS( nsXhtml,'body')[0]:
(domDoc.getElem entsByTagName?d omDoc.getElemen tsByTagName('bo dy')[0]:
(domDoc.body?do mDoc.body:null) )}
var dest=document.g etElementById?d ocument.getElem entById(destId) :
(document.all?d ocument.all[destId]:null);
if(!src||!dest) return;
alert('copyCont ent'+'\nsrc '+src+'\ndest '+dest);
if(document.imp lementation.has Feature("Range" ,"2.0")){
// code for fx, opera, safari
}
else{
alert('copyCont ent'+'\ninnerHT ML ');
if(src.innerHTM L){
dest.innerHTML= src.innerHTML;
alert('copyCont ent'+'\ndest.in nerHTML '+dest.innerHTM L);
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="Eingangs protokoll des Reichshofrates"
hreg="http://free.pages.at/staudinger/Regest/Regesten/_A1601-02
-08-01657.xml">1601-02-08</A><SPAN class=Z01657>16 01-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
When I click any link on this page
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('copyCont ent'+'\nsrc '+src+'\ndestId '+destId);
if(src==null){s rc=domDoc.getEl ementsByTagName NS?
domDoc.getEleme ntsByTagNameNS( nsXhtml,'body')[0]:
(domDoc.getElem entsByTagName?d omDoc.getElemen tsByTagName('bo dy')[0]:
(domDoc.body?do mDoc.body:null) )}
var dest=document.g etElementById?d ocument.getElem entById(destId) :
(document.all?d ocument.all[destId]:null);
if(!src||!dest) return;
alert('copyCont ent'+'\nsrc '+src+'\ndest '+dest);
if(document.imp lementation.has Feature("Range" ,"2.0")){
// code for fx, opera, safari
}
else{
alert('copyCont ent'+'\ninnerHT ML ');
if(src.innerHTM L){
dest.innerHTML= src.innerHTML;
alert('copyCont ent'+'\ndest.in nerHTML '+dest.innerHTM L);
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="Eingangs protokoll des Reichshofrates"
hreg="http://free.pages.at/staudinger/Regest/Regesten/_A1601-02
-08-01657.xml">1601-02-08</A><SPAN class=Z01657>16 01-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
Comment