Sitemap

Amicuk Programming Answers

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

2015-10-11   Views:0

Advertisement

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 testi

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!

The replay answer
Advertisement
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?

Go to See the other 4 answers

Using a SQL data source and XML data source in the same template

Category:DefaultRelease time:2015-10-11Views:130

I am trying to develop a template for the Request for Quote report generated in Apps 11.5.10. I have loaded the data from the XML output into the template, but I am missing one field - I need the org_id from the po_headers table. Is it possible to us[More]

XML data 32K into CLOB

Category:DefaultRelease time:2015-10-11Views:130

Hi all, I am trying to use UTL_FILE.PUT_LINE to output an XML file. This xml file is the result of a select query. Hence converting the result of the select query into xml format using dbms_xmlgen.getxml and storing it in a variable. But the resultan[More]

How i can transfer XML data from internet to SAP R/3?

Category:DefaultRelease time:2015-10-11Views:130

Hi all, I have an issue to catch data from internet (perticular website) in xml format and i want to update that xml data format into SAP R/3 database. so how i can do that? Can I do directly or i should use any third party tools?Hi Deepak,     Refer[More]

DataGrid does not display XML data

Category:DefaultRelease time:2015-10-11Views:130

Hello, and thanks for reading this... I am having a problem displaying XMLList data in a DataGrid. The data is coming from a Tree control, which is receiving it from a database using HTTPService. The data is a list of "Job Orders" from a MySQL d[More]

Edit/add XML data in BI Publisher

Category:DefaultRelease time:2015-10-11Views:130

Hi I have a java program that is generating an XML file that I am using as input for my BI publisher for PO report. However, I want to add some extra information(location addresses corresponding to location id) that is not there in the XML and I cann[More]

Regrouping the XML data source in BI Publisher

Category:DefaultRelease time:2015-10-11Views:130

Hello, We have a requirement in BI Publisher to develop a template accessing the data from different sources (data sets) and need to regroup the whole data by a field which exists in all the data sets. Below is the sample example of the source file <[More]

Tranferring XML data to the B1 System

Category:DefaultRelease time:2015-10-11Views:130

Hi, Iam very new to the B1 system.. Iam looking to transfer the data from the XML file to the B1 system. to make it clear, the requirement is i have a purchase order coming from one system and it is saved in the server..the data in the XML file will[More]

Convert XML data to byte array...

Category:DefaultRelease time:2015-10-11Views:130

Hello All, In my application, i have an XML file and the corresponding XSD file. This XML file is having some date, which i want to convert into an byte[] and then save it in a file.  How i can convert the XML data in the byte[]? Here as an example o[More]

How do I use the Session State to manage bind variables & download xml data

Category:DefaultRelease time:2015-10-11Views:130

I have a Report Query with more than 30 queries; many have bind variables in them. I'd like to create sample xml so that I can develop my word templates. When I try to download the XML data Source for Layout, it doesn't ask for the bind variable valu[More]

XML Data ( View Total exist in a different query)

Category:DefaultRelease time:2015-10-11Views:130

Hi, This is a sample of my xml data : <TEST_COMP> - <LIST_G_Q1> - <G_Q1>   <Q1_ITEM_ID>61</Q1_ITEM_ID>   <TOT>13754492</TOT>    </G_Q1> - <G_Q1>   <Q1_ITEM_ID>62</Q1_ITEM_ID>   <TOT>1[More]

How to create a report using XML data source from Crystal Report Designer

Category:DefaultRelease time:2015-10-11Views:130

Hi, Iu2019m having Crystal Report Designer XI R2 SP4. Iu2019m trying to create a report using XML data source stored on disk. This is a customer order report and the xml is structured in such a way that it has an order details header part (master) an[More]

Hot
?Hello josh3983 Check out the link below to add music to playlists on your iPhone. Create a new playlist http://support.apple.com/kb/index?page=tidetail&product=iphone&locale=en_US&tag= Music Regards, -Norm G.Read other 2 answers [More]
How do I create a user, with subschema, in my context in OID using the JAVA API I need to be able to create new users in my OID, I was doing it in our old iPlant Directory, but I don't seem to see the same methods in the Oracle LDAP API. I figured ou [More]
A few capture questions: 1. Is there a way to capture HD material in final cut express? 2. If I'm sending HD material through a digital converter, and then to the computer, will that digital computer all the file to be transfered in HD? thank you.Fro [More]
I keep on trying it with apps but I can't do it!!you can not change the color of the bubbles, they are set by the iOSRead other 3 answers [More]
I recently got a new iPhone 5S today and I am having some issues setting it up. I got all my contacts and apps and everything back, which is great. However though, whenever I plug it in to my MacBook to put additional music onto it, no matter what I [More]
We recently converted all Crystal Reports from Visual Studio 2003 to Visual Studio 2005 sp1, .NET 2.0, Crystal Reports for .NET.  I have the latest merge modules from business objects.  All reports & footers worked fine in VS2003 ... but now when I e [More]
I am about to buy an iPad 3 in Australia but to use it mainly in Chile. I need to know if the 4g works there or not. Or if it works as 3g? Also what do I have to know about AT&T and Verizone? I have to choose one of those??? thanks, íThe iPads Apple [More]
Hi, i am new to this forum I did some searching, but could not find the answer. I only make stacks of exactly the same photos, but with different formats, mostly 2 jpg versions and a raw. If i change photos further, i unstack that photo, to see the d [More]
Dear Xperts, 1. If I keep 0 Tolerance on the GRN Quantity, how to handle the discripancy in SAP:       a. If I receive more quantity in invoice than the GRN quantity?       b. If I receive less quantity in invoice than the GRN quantity? 2. Can I pass [More]
So have you ever double clicked your home key to turn off apps or switch to another one running in the background?  The small screengrab shows the app, and most of the time its the last thing on your screen. Sometimes, for example, in my email app, t [More]