Tech Off Thread

7 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

I need help to be compat with other browser...

Back to Forum: Tech Off
  • User profile image
    cro

    I have create a small web page to display a slideshow. I'm using an xml file to store the image list and javascript to display the slideshow on an html page.

    Everything work great on IE6 but not on Firefox and other OS (Linux, OSX, etc.).

    The idea was to create one page that can display lot's of slideshow. So, what can I use insted of ActiveXObject to read the xml file that would be compatible with other browser ? Or any simpler way for doing that ?

    The slideshow:
    http://www.postmanexcavating.com/slideshow.htm

    The javascript:
    http://www.postmanexcavating.com/slideshow.js

    The xml file:
    http://www.postmanexcavating.com/data/slideshow1.xml

    Thanks.

  • User profile image
    joem83

    I notice it works in IE7+ in Vista.

    cro wrote:
    I have create a small web page to display a slideshow. I'm using an xml file to store the image list and javascript to display the slideshow on an html page.

    Everything work great on IE6 but not on Firefox and other OS (Linux, OSX, etc.).

    The idea was to create one page that can display lot's of slideshow. So, what can I use insted of ActiveXObject to read the xml file that would be compatible with other browser ? Or any simpler way for doing that ?

    The slideshow:
    http://www.postmanexcavating.com/slideshow.htm

    The javascript:
    http://www.postmanexcavating.com/slideshow.js

    The xml file:
    http://www.postmanexcavating.com/data/slideshow1.xml

    Thanks.

  • User profile image
    jmbledsoe

    From your javascript, I can see that you're creating an ActiveXObject called "Microsoft.XMLDOM".

    I have only just started doing cross-browser script programming  Embarassed, but I don't know that Firefox will create ActiveXObjects for you, and I don't think it has access to Microsoft.XMLDOM.

    I'm also much more certain that you're not going to be able to use that line on Unix or OSX.Smiley

  • User profile image
    Angus

    Firefox has troubles with this sort of XML manipulation/use. As you can see from this example of something similar to what you are using:

    [Link]

    The examples are only useable in Internet Explorer 5.x or more.

    It worked in Internet Explorer 6.x on Windows XP Home Edition, but not Mozilla Firefox on the same system.

    Angus Higgins

  • User profile image
    phreaks

    jmbledsoe wrote:
    From your javascript, I can see that you're creating an ActiveXObject called "Microsoft.XMLDOM".

    I have only just started doing cross-browser script programming  , but I don't know that Firefox will create ActiveXObjects for you, and I don't think it has access to Microsoft.XMLDOM.

    I'm also much more certain that you're not going to be able to use that line on Unix or OSX.


    JSXML should help ease your compatability woes.
    http://xmljs.sourceforge.net/index.html

    ~ Phreaks

  • User profile image
    JeremyJ

    You could also look here for a cross-browser implementation:

    http://www.javascriptkit.com/dhtmltutors/getxml.shtml

  • User profile image
    Human​Compiler

    Can you write server code?  If so, I would process the xml (cache it, whatever) on the server and then generate a Javascript Array.  Then you can simply just loop through that array and display what you need.  That will work in any browser with Javascript turned on and the client code will be super simple.  If you don't have access to writing some server code, then yah, defer to what everyone else said.  Tongue Out

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.