XML data via JS not showing in I.E.?

Hi there,
I'm using Javascript to get the xml data and display it on the XHTML page.
This works fine in all the latest versions of Firefox, Chrome, Safari and Opera....but as per usual not in Internet Explorer.
UPDATE: forgot to mention.....I'm testing this from my machine and not live.   Could this be a reason why it's not working on I.E. because the files are on my computer and not on a server???
Any advice greatly appreciated! HTML Code below...
<div id="testimonials">
                <h1>Testimonials</h1>
                <script type="text/javascript">
                                if (window.XMLHttpRequest)
                                  xhttp=new XMLHttpRequest();
                                else // Internet Explorer 5/6
                                  xhttp=new ActiveXObject("Microsoft.XMLHTTP");
                                xhttp.open("GET","resources/testimonials.xml",false);
                                xhttp.send("");
                                xmlDoc=xhttp.responseXML;
                                var x=xmlDoc.getElementsByTagName("testimonial");
                                for (i=0;i<x.length;i++)
                                  document.write("<p>");
                                  document.write(x[i].getElementsByTagName("text")[0].childNodes[0].nodeValue);
                                  document.write("</p>");
                                  document.write("<p>");
                                  document.write(x[i].getElementsByTagName("name")[0].childNodes[0].nodeValue);
                                  document.write("</p>");
                        </script>
      </div> <!-- END of DIV Testimonials -->
Cheers!

Thanks for the attachment, I'll try and make some sense of it- although I'm not very good with JS!
I think it's the XML HTTP Request part that isnt working.
It all works fine in all the major browsers except I.E.?
Not sure if you've seen my update but does it matter that I'm testing the site from my machine and not on a server?  Does I.E. expect all the files (or the XML file at least) to be sitting on a server to make the XMLHttpRequest() work?

Similar Messages

  • Xml data type is not supported in distributed queries. Remote object 'OPENROWSET' has xml column(s).

    Hi,
    Can anyone help me out please.
    I have written one stored Procedure to create a views using Openrowset(openquery) but for tables which contains xml data types throwing error while executing the SP. Error
    " Xml data type is not supported in distributed queries. Remote object 'OPENROWSET' has xml column(s)."
    Please refer the Stored Procedure & error message below.
    USE [Ice]
    GO
    /****** Object:  StoredProcedure [dbo].[Pr_DBAccess]    Script Date: 08/14/2014 16:08:20 ******/
    SET
    ANSI_NULLS ON
    GO
    SET
    QUOTED_IDENTIFIER ON
    GO
    ALTER
    PROCEDURE [dbo].[ Pr_DBAccess](@SERVERTYPE
    NVARCHAR(50),@SERVERNAME
    NVARCHAR(100),@DATABASENAME
    NVARCHAR(100),@SCHEMANAME
    NVARCHAR(100),@TABLENAME
    NVARCHAR(100),@USERNAME
    NVARCHAR(100),@PASSWORD
    NVARCHAR(100))
    AS
    BEGIN
    DECLARE @openquery
    NVARCHAR(4000),
    @ETL_CONFIG_IDN
    NVARCHAR(100);
     IF @SERVERTYPE='SQL'
     BEGIN
    SET @openquery= 
    'CREATE VIEW '+@TABLENAME+
    ' WITH ENCRYPTION AS SELECT * FROM OPENROWSET(''SQLNCLI'',''SERVER='+@SERVERNAME+';TRUSTED_CONNECTION=YES;'',''SELECT * FROM '+@DATABASENAME+'.'+@SCHEMANAME+'.'+@TABLENAME+''')'
    SELECT @openquery
    END
    EXECUTE
    sp_executesql @openquery
    END
    ----While running the SP manually below error occured

    HI ,
    1. You cannot use a table or view that contains xml or clr type as 4-part name in your query
    2. You need to cast the column to either nvarchar(max) or varbinary(max) or other appropriate type to use
    3. If you have a table that has xml type for example then you need to create a view that contains all columns other than xml and query it instead. Or you can issue a pass-through query using OPEN QUERY with the appropriate columns only.
    Here is a work around:
    SELECT
          Cast(a.XML_Data as XML) as XML_Data
    FROM
          OPENQUERY([LINKED SERVER NAME HERE],'
              SELECT
                Cast(XML_Data as Varchar) as XML_Data
             FROM
                [DATABASE NAME].[SCHEMA].[TABLE NAME]'
    ) a
    Basically, the data is queried on the remote server, converts the XML data to a varchar, sends the data to the requesting server and then reconverts it back to XML.
    You can take help from below link;
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/c6e0f4da-821f-4ba2-9b01-c141744076ef/xml-data-type-not-supported-in-distributed-queries?forum=transactsql
    Thanks

  • Cellular Data option is not showing in ipad

    Cellular Data option is not showing in ipad
    when sim was inserted.network name was not showing
    solution please.

    Your iPad is probably Wi-Fi only.

  • Data mart symbol not showing

    Hi all,
    I am facing problem. when we load the data from ODS to CUBE .Data loaded succesfully.In ods manage screen DATA MART symbol not showing.
    pls help me.
    Thanks
    kamal

    Hi Kamal,
    Try running delta update from ODS to Cube manually by right click ods -> Update data into data target -> Delta update.
    And hopefully datamart status should get checked.
    Also see the request status of datamart from ODS to Cube it may be in red / yellow status.
    Hope that helps.
    Regards
    Mr Kapadia
    <removed>

  • How to generate XML data from Lotus Notes to migrate to SharePoint by passing XML to SharePoint.?

    How to generate XML data from Lotus Notes to migrate to SharePoint by passing XML to SharePoint.?
    Ramesh S

    You could use XMLQuery to return the data from your tables as XML, that would give you a CLOB.
    An example using the SCOTT schema might be like this:
    SELECT XMLQuery(
             'for $i in ora:view("DEPT")/ROW
              return <Department dname="{$i/DNAME}">
                     <Employee>
                       {for $j in ora:view("EMP")/ROW
                        where $j/DEPTNO eq $i/DEPTNO
                        return ($j/ENAME, $j/JOB, $j/SAL)}
                     </Employee>
                     </Department>'
             RETURNING CONTENT) FROM DUAL;In the docs you can find more information about its use:
    http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10492/xdb_xquery.htm

  • HT1386 MUSIC PURCHASED VIA IPHONE NOT SHOWING UP IN ITUNES

    MUSIC PURCHASED VIA IPHONE NOT SHOWING UP IN ITUNES
    why is 4.0.1 not in the list - I have 4.0.1 installed on this iPhone

    after i entered this post a similar post or a couple clicks ("inward") came up on the sidebar that answered it - no rply needed.

  • Data Source Type not showing in drop down

    I am trying to utilize an XML data source that I defined in the physical layer for init block for repository variable. Anyways when I go to select the data source, XML does not show up as an available data source within the drop down, thus I can not select the xml data sources connection pool. Can anyone let me know what I am missing here. I searched config files and other things within the rpd to no avail. I know I am missing something simple, and if anyone knows please let me know.
    Thanks
    Frank

    Initialization blocks can only connect to database data sources as there must be written in SQL. The only exception for this are the Session Init Blocks which can also connect to an LDAP server or a Customer Authenticator. You will need to load your XML file in a database to be able to read it.

  • XML child 'Title' does not show on web page

    I have imported an XML file and when I launch the page the
    title does not show.
    The following is on my page but does not display "
    <td><?xml version="1.0" encoding="UTF-8"?>
    <Title>Miss Congeniality 2: Armed and
    Fabulous</Title>xx </td>
    The rest of the field do display and I can not understand why
    'Title' Does not display.
    Thanks for any help
    David Merchant
    The following is the code to display the data:
    <cfloop index="MyCounter" from="1" to="#Counter#">
    <tr>
    <td>#mydoc.Collection.DVD[MyCounter].ID#</td>
    <td>#mydoc.Collection.DVD[MyCounter].UPC#</td>
    <td>#mydoc.Collection.DVD[MyCounter].ProfileTimestamp#</td>
    <td>#toString(mydoc.Collection.DVD[MyCounter]["Title"])#xx </td>
    <td>#mydoc.Collection.DVD[MyCounter]["SortTitle"]#</td>
    <td>#mydoc.Collection.DVD[MyCounter]["Rating"]#</td>
    <td>#mydoc.Collection.DVD[MyCounter]["ProductionYear"]#</td>
    <td>#mydoc.Collection.DVD[MyCounter]["RunningTime"]#</td>
    <td>#mydoc.Collection.DVD[MyCounter]["Audio"]#</td>
    </cfloop>
    This is the XML file I am reading
    <?xml version="1.0" encoding="us-ascii"?>
    <!-- DVD Profiler Version 2.4.0 Collection Export -->
    <!-- Exported: 9/3/2006 12:39:08 PM -->
    <Collection>
    <DVD>
    <ID>012569557123.21</ID>
    <UPC>012569-557123</UPC>
    <ProfileTimestamp>2004-03-17
    23:58:12</ProfileTimestamp>
    <Title>Doctor Zhivago</Title>
    <SortTitle>Doctor Zhivago</SortTitle>
    <Regions>
    <Region>3</Region>
    </Regions>
    <Discs>
    </Discs>
    </DVD>
    </Collection>

    I believe you want to print the XML node's text to a HTML
    table cell. To do so you would change:
    <td>#mydoc.Collection.DVD[MyCounter].ID#</td>
    to
    <td>#mydoc.Collection.DVD[MyCounter].ID.XMLText#</td>
    Try appending ".XMLText" to your variables.
    I would also consider droping the ToString method with:
    <td>#toString(mydoc.Collection.DVD[MyCounter]["Title"])#xx </td>
    to
    <td>#mydoc.Collection.DVD[MyCounter]["Title"].XMLText#</td>
    I don't know why you are invoking the toString() function
    here and not on the other nodes. It only confuses me, and likely
    you when you have to return to this code later, unless you are
    trying to do something special with this node, like set your HTML
    <title> tag.
    If you are trying to set your document's <title> tag
    then it should belong between the <head> tag of your document
    and not inside your table, as a matter of semantics.

  • BI Publisher Using Answers As Data Source Does Not Show Anything in Catalog

    Created A New Report. Used BI Answers as Data Source. Tried To Use Drop Down
    and BI Catalog Does Not Show Any Data.
    Any Suggestions?
    Thanks
    Raghu

    Hi Raghu,
    I had the same problem here. I was working with OBIEE 10.1.3.2, after a lot of searching an reading decided to upgrade to 10.1.3.3 and the problem was solved.
    Hope this helps. Regards,
    Jeroen

  • Data Control does not show POJO returned from method

    Hi,
    I am running JDev 11.1.1.7. In my AppModule.impl I created a method that returns a simple POJO (which implements serializable) that has two String fields. I have exposed the method in the appmodule client interface. In the data control the method shows up with a return element instead of an object or any way to access the two String fields. I want to display the two String fields in separate output text components on my jspx page. I'm not finding documentation on how to do this. Can somebody point me to documentation or tell me how to make this change to the data control method return?
    Thanks in advance,
    Steve

    AM method can return custom type, but AFAIK there is no support for object introspection in design time.
    (so you can invoke this programmatically and cast to appropriate type, but you can't do DnD from Data Control pane).
    So, option 1 is to bind value property of your outputText fields to managed bean, programmatically call AM method, fill these properties manually and refresh your UI components(note that managed bean must be registered in viewScope or higher to preserve values)
    Option 2 is to create Bean DataControl (with this you will have DnD support)
    Dario

  • Data in database not showing up in BI

    Hi,
    In a table there is a 'COMPANY' column. Every record in the table has COMPANY = 'ABC'. However, any BI reports that use the COMPANY field always show COMPANY as an empty field.
    - The 'Update Row Count' option in BI Administration tool reports there is 1 unique record
    - The 'View Data' option in BI Administration tool shows "ABC'
    - Creating a report in Answers show an empty value
    - This only seems to happen with the COMPANY field
    How can BI see 'ABC' in the Physical Pane but not show the 'ABC' value in an Answers report?
    We have tried:
    - Purging all caches
    - Rebooting the server and deleting files from Cache and Tmp help
    - Clearing Web Browser Cache
    - Using Web Browsers on different computers
    - Using IE and Firefox
    Thanks
    - B.

    SELECT Contacts.Company saw_0 FROM "Test - BI" ORDER BY saw_0
    is not a physical sql, its a logical sql. Go to admin - issue sql - paste above - set loglevel > 3 and execute. Once the results come back, check view log - find sql sent to database and post here.

  • XML Data Source: does not seem to validate against XSD

    I setup XML data source using the example "b-c.xml" and "b-c.xsd"; I changed the
    root element of "b-c.xml" from "<db>" to "<Customers>"; but Liquid Data does not
    seem to care or validate the instance document against the XSD.
    Is this a known bug? It's something very basic and obvious!

    LD does indeed catch and report the mis-match at run-time as shown in the exception
    below.
    It does not valid the XML file against the schema at configuration time, only
    at run-time. Hence Step 8 here - http://edocs/liquiddata/docs81/admin/xml.html#1035818
    But beware - in some (most) cases LD does not do validation against the schema
    for performance reasons. If the schema does not match you will simply get empty
    results.
    - Mike
         java.rmi.RemoteException: Query Execution Error (Run Time) 1-2-3-24: Cannot process
    XML file source XM-BB-C. (com.enosysmarkets.xqdm.translators.XqdmTranslatorException:
    Invalid root element name: 'CUSTOMERS'. Expected: 'db')
    "David Song" <[email protected]> wrote:
    >
    I setup XML data source using the example "b-c.xml" and "b-c.xsd"; I
    changed the
    root element of "b-c.xml" from "<db>" to "<Customers>"; but Liquid Data
    does not
    seem to care or validate the instance document against the XSD.
    Is this a known bug? It's something very basic and obvious!

  • Date difference is not showing the correct result for date interval

    Hi Expert,
                    I've created two formula variable one for PO date and another for GR date
    while i am taking the date difference of GR and PO date for single PO date selection
    it showing me correct result , but while i am taking the date interval for PO date it not
    showing the correct result.
    eg: PO date: 01.01.2010   for a particular PO and Gr date is suppose 03.01.2010, 06.01.2010
          it showing the result 2 and 5.
    But if i am taking date interval for PO date:
    eg: 01.01.2010 - 31.01.2010
    PO date: 10.01.2010 and GR date are suppose 15.01.2010, 22.01.2010 and 30.01.2010
    it showing me 14, 21 and 29
    Thanks and Regards
    Lalit Kumar

    Hi Expert,
                    Through replacement path.
    Thanks and Regards
    Lalit Kumar

  • Why MSAccess database shows data but does not show columns and DDL in edit mode in jdeveloper?

    Sir,
    My developer ver is 12.1.3.0.0.
    I create a connection to MS Access database, this database shows data as bellow in jdeveloper databases window
    But when I open any table in Edit mode like bellow it does not show any columns and DDL and give an error like bellow
    Similarly when I try to create view objects on these tables then on data controls the view object also doesn't show any columns like bellow
    What could be the reason any help on this issue
    Should I use MS Access or not but I want to use ms access for very small databases.
    Regards

    If you look into the certification matrix at Oracle JDeveloper and ADF 12c (12.1.3) Supported Systems
    You'll see that ms access is not supported.
    You can use oracle xe which is free for your project.
    Timo

  • ADF Data Visualizations group not showing up in Component Palette

    I apologize for my ignorance, but I cannot find how to solve this problem. I am trying to use the data visualization components such as graphs but my component palette does not show this. It does show ADF Faces, JSF, and some others, but not this. I tried adding more libraries to my project's properties, but it does not show up. I am using:
    JDeveloper
    Studio Edition Version 11.1.1.2.0
    Build JDEVADF_11.1.1.2.0_GENERIC_091029.2229.5536
    Any ideas?
    thanks,
    Kerry

    Go into project properties -> JSP libraries and make sure you add the data visualization tag library.

Maybe you are looking for

  • WEB.SHOW_DOCUMENT don´t start Firefox 3.5

    Hi @all, I want to call a report through Forms per web.show_document but Firefox don´t start. The URL is correct (I´ve tested it). I tried also to disable the Popup-Blocker but this didn´t solve the problem, too. I call the fmx with a JNLP File. Ther

  • Error while updating graph

    Hi all, I get the error message below halfway through the process when I am trying to run an add/update graph for my data store. The error log doesn't specify which record causes the error to arise. Anyone have any idea on how to solve the issue? ERR

  • Using Wildcards in HOST Class-Map

    I want to use a wild card to match a HOST in a class-map. I want to match multiple hosts for the same site: ? Support.Cisco.com ? Employee.Cisco.com ? Helpdesk.Cisco.com I want to match this with *.Cisco. Will this work?

  • Uploading two internal tables

    how to upload two internal tables at a time using standard class methods in to   internal tables. help required

  • IPod Classic 160 as backup drive?

    Does anyone use an iPod as a backup drive for your MacBook? I don't own an iPod yet, but I am considering the Classic 160gb. Someone said it wouldn't be a good idea because you lose all data everytime you reset the iPod. I realize there are cheaper b