By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,361 Members | 1,352 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,361 IT Pros & Developers. It's quick & easy.

Script works with IE6 but not with IE7

P: n/a
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
Share this Question
Share on Google+
3 Replies

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.