locked
Open button and Preview button do not work. RRS feed

  • Question

  • Firstly, the LCDS application looks good.
     
    However, I have the following problems/errors:

    My system is windowsXP.

    Having created a course and saved it I cannot open it again as the app tells me there are no courses to open. Despite the course being in the correct sub directory with the LCDS app folder. In an attempt to sort out the problem I added some error tracking code to the filessystem.js file:

      if (imsmanifest.parseError.errorCode != 0) {
          alert("errorCode: " + imsmanifest.parseError.errorCode + "\n" +
                "filepos: " + imsmanifest.parseError.filepos + "\n" +
                "line: " + imsmanifest.parseError.line + "\n" +
                "linepos: " + imsmanifest.parseError.linepos + "\n" +
                "reason: " + imsmanifest.parseError.reason + "\n" +
                "srcText: " + imsmanifest.parseError.srcText + "\n" +
                "url: " + imsmanifest.parseError.url);
    }

    This tells me that the imsmanifest file is not being loaded because:

    'The namespace prefix is not allowed to start with the reserved string 'xml'

    i.e. like  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    Even though LCDS generated the imsmanifest for some reason it cannot read it back in..... I realise this is something to do with my xmldom activeX control in internet explorer but I am not sure how to fix it - any ideas?

    Secondly, the preview button does not work on my system, I just get the js error 'object required' - I cannot track this down either.

    Any suggestions would be greatly appreciated.







    Sunday, September 28, 2008 10:54 AM

Answers

  • OK - I have resolved my problems with MSXML.

    This is for anybody else who has the same puzzle:

    1. LCDS does not work with any other MSXML parser other than MSXML6.

    2. So, first search your system drive to check it is there, which it most probably is - (search for msxml6.dll). If not you will have to install it by downloading from here - http://www.microsoft.com/downloads/details.aspx?FamilyId=993c0bcf-3bcf-4009-be21-27e85e1857b1&displaylang=en

    3. This is the interesting part, just because it is installed on your machine does not mean internet explorer is using it. So, to check open up internet explorer go to TOOLS(menu) -> INTERNET OPTIONS(menu) -> PROGRAMS(tab) -> MANAGE ADD-ONS(button). This will list all the activeX controls(add-ons) that internet explorer uses. Near the bottom you will see 'XML DOM DOCUMENT 3.0' and 'XML DOM DOCUMENT 4.0' and hopefully 'XML DOM DOCUMENT 6.0'.

    4. If you cannot see 'XML DOM DOCUMENT 6.0' but you know it is installed then save yourself hours of head scratching (like me) and simply go to CONTROL PANEL(start menu) -> ADD/REMOVE PROGRAMS(icon) -> MSXML PARSER 6.0(list item) -> CHANGE(button) -> REPAIR (button).

    Once repaired, if like my system it will miracously appear in the internet explorer add-ons list and your LCDS application should work with no problems.

    Andy
    • Marked as answer by boxtheatre Monday, September 29, 2008 4:06 PM
    Monday, September 29, 2008 4:06 PM

All replies

  • Looking the file topic.js I just realised that these two problems are related i.e. the preview mechanism cannot load in the imsmanifest either to create the preview.

    So both problems point at so configuration of my Microsoft.XmlDom/MSXML2.DOMDocument activeX controls which unfortunately I do not know how to correct. The only thing I know is that some versions of these controls do have a problem the namespaces using the string 'xml' - If anyone has got some experience/ideas for working around this problem with internet explorer then that would be great.
    Sunday, September 28, 2008 11:27 AM
  • I have managed to determine that my internet explorer is using MSXML2.DOMDocument.4.0 as version 6.0 fails to initialise if I force the LCDS app to use it by modifying the xmldom.js file.

    Using MSXML2.DOMDocument.4.0 maybe the problem as it is supposedly a bit dodgy (http://blogs.msdn.com/xmlteam/archive/2006/10/23/using-the-right-version-of-msxml-in-internet-explorer.aspx). Despite having MSXML version 6 installed on my system its seems that internet explorer does not use it... is there any way to configure internet explorer to use version 6?

    Any help would be appreciated.
    Sunday, September 28, 2008 12:57 PM
  • To summarise the following is a list of error messages (because I inserted the error code above) returned when forcing the app to use specific versions of msxml.  These errors ultimatly prevent the open button and preview button from functioning correctly.


    MSXML2.DOMDocument.7.0, MSXML2.DOMDocument.6.0 & MSXML2.DOMDocument.5.0 :

    ----> Automation server can't create object


    MSXML2.DOMDocument.4.0 :

    ----> The namespace prefix is not allowed to start with the reserved string "xml"


    MSXML2.DOMDocument.3.0, MSXML2.DOMDocument & Microsoft.XmlDom:

    ----> unknown method - //*[@identifier='ORG_1']/*[-->NAME()<--='title']


    I do have MSXML6 (which I guess would work) installed on my machine (since last year) but for some reason internet explorer does not know it is there.....

    Monday, September 29, 2008 5:51 AM
  • OK - I have resolved my problems with MSXML.

    This is for anybody else who has the same puzzle:

    1. LCDS does not work with any other MSXML parser other than MSXML6.

    2. So, first search your system drive to check it is there, which it most probably is - (search for msxml6.dll). If not you will have to install it by downloading from here - http://www.microsoft.com/downloads/details.aspx?FamilyId=993c0bcf-3bcf-4009-be21-27e85e1857b1&displaylang=en

    3. This is the interesting part, just because it is installed on your machine does not mean internet explorer is using it. So, to check open up internet explorer go to TOOLS(menu) -> INTERNET OPTIONS(menu) -> PROGRAMS(tab) -> MANAGE ADD-ONS(button). This will list all the activeX controls(add-ons) that internet explorer uses. Near the bottom you will see 'XML DOM DOCUMENT 3.0' and 'XML DOM DOCUMENT 4.0' and hopefully 'XML DOM DOCUMENT 6.0'.

    4. If you cannot see 'XML DOM DOCUMENT 6.0' but you know it is installed then save yourself hours of head scratching (like me) and simply go to CONTROL PANEL(start menu) -> ADD/REMOVE PROGRAMS(icon) -> MSXML PARSER 6.0(list item) -> CHANGE(button) -> REPAIR (button).

    Once repaired, if like my system it will miracously appear in the internet explorer add-ons list and your LCDS application should work with no problems.

    Andy
    • Marked as answer by boxtheatre Monday, September 29, 2008 4:06 PM
    Monday, September 29, 2008 4:06 PM