Script works with IE6 but not with IE7

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Manfred

    Script works with IE6 but not with IE7

    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

  • Manfred

    #2
    Not a single clue for prob with IE7 ?

    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.staudi n...@gmail.comw rote:
    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('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

    • RobG

      #3
      Re: Script works with IE6 but not with IE7

      On Feb 6, 4:53 am, "Manfred" <manfred.staudi n...@gmail.comw rote:
      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

      Comment

      • Manfred

        #4
        Not a single clue for prob with IE7 ?

        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

        Comment

        Working...