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
HELP!  "The backup disk image “/Volumes/FreeAgent GoFlex Drive/MacBeth (2) 1.sparsebundle” could not be created (error 22)." TC estimates over 750GB for full backup. Late 2010 MBA is connected wirelessly to 802.11n (1st gen) TC that is connected [More]
Hi, My Mid 2010 Imac 3.06 GHz Intel Core i3 with 4GB 1333 MHz RAM is currently having problems displaying folder content. As I am a photographer I am often opening folders of images and needing to view them and recently when I click on a folder or su [More]
Hello. You know that when fn and f11 or fn and f12 together, my laptop lenovo g500 heading back light or less away. For the less it looks like there is with the fn and F11 or fn and F12 on the led comes and says the page has a high or low light . few [More]
*MY MAIN QUESTION: Will the new Macbook Pro Disks work to install OS X on an older Macbook.* HEllo all, I use a classic white macbook 1,1 & I just recently purchased a new hard drive and I want to install it soon, but I seem to have misplaced my inst [More]
Hi, I have te same post earlier; the website was down while posting; so, I reported. Please ignore this. Hello: I would like to know if time dimension works if there are 14 periods ( 12 months + two more values that refer something else)? Can we crea [More]
Hi, This is my first day using Oracle Reports and I had a couple of questions. Is there any kind of design view for creating web reports similar to the Paper Layout tab for designing paper reports or do we have to do most of the work using the Web So [More]
Hi There I am wondering if i can design a chart in Crystal report with the data I define, for example, I have a report for each OS type I use running total to get their data, the reason I am using running total is because their calculation are differ [More]
Hi, While using BEx Analyzer, i have 2 users. If i am logging into one user it is showing me the properties as Charts, Filter and Report name. But from other user i am not getting anything. Can anyone help me so that i will be able to see the propert [More]
Hi, I have done a small flex project. In that project I am loading a xml file. When I compile that project, itz compiled in the bin folder. After compilation, even if I delete the xml file from the bin folder and run the application, I can see the co [More]
Hi All, I 'm working on inventory cube 0IC_c03( Material Movements). I loaded the opening balance from 2lis_03_bx and compressd the request with no marker update.I got more added records than transfered records. later i loaded movements 2lis_03_bf (i [More]