SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist barbara1712's Avatar
    Join Date
    Apr 2007
    Location
    India
    Posts
    509
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Xml - not running in Mozilla

    Hello All,

    I am having xml file .It is working properly in IE but not in Mozilla
    I have used coding for both.But still not working in Mozilla.
    The code is

    if (window.ActiveXObject)
    {
    xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
    xmlDoc.async=false;
    xmlDoc.load("book_detail.xml");
    }

    //code for Mozilla
    else if (document.implementation && document.implementation.createDocument)
    {
    xmlDoc= document.implementation.createDocument("","",null);
    xmlDoc.load("book_detail.xml");
    }
    Please help me.
    Barbara

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I don't see any PHP here, just JavaScript. Why is this in the PHP forum?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •