Sitemap

Amicuk Programming Answers

XML file not loading in FF from server

2015-10-11   Views:0

Advertisement

I've created a web page that loads an external XML file and then uses javascript code to parse the file for requested information. I know it's not the best way to do this, but I'm trying to get this working before I move on to "better" methods.

I've created a web page that loads an external XML file and
then uses javascript code to parse the file for requested
information. I know it's not the best way to do this, but I'm
trying to get this working before I move on to "better" methods.
When I run the page using the "Preview/Debug in browser"
funtionality of DW everything works great both in IE and FF. But
when I load the page to the server and then load the page in a
browser, it works in IE but not in FF. It looks as though FF is
just not loading the XML file. I can't figure out why the page
would work if launched from DW, but not work if the page is loaded
on the server and then run from there, and only in FF.
The code I'm using to load the XML file is supposed to be
cross-browser compatible. I've seen many versions like from various
sources, so it should be OK. I'm pretty new to all of this so I'm
hoping that I'm just missing something simple. Does anyone have any
idea why this is behaving this way?
Thanks for any help.

The replay answer
Advertisement
so, in frame 1 of your fla before you execute that cross-domain load method, use:
System.security.loadPolicyFile("http:www.yourcrossdomain.com/subdirectoriesIfNeeded/crossd omain2.xml");
where the following (crossdomain.xml) is in www.yourcrossdomain.com's root (IF you want to allow allow subdirectory policy files):
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all"/>
</cross-domain-policy>
and in the subdirectory (and its descendents) that you want to allow access put crossdomain2.xml:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
  <allow-access-from domain="www.thedomainthatstryingtoloadcrossdomaindata.com" />
</cross-domain-policy>

Go to See the other 6 answers

XML file not loading in FF from server

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

I've created a web page that loads an external XML file and then uses javascript code to parse the file for requested information. I know it's not the best way to do this, but I'm trying to get this working before I move on to "better" methods.[More]

Xml file not loading from different server

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

Hi, I have a simple flash banner that is pulling a number from an xml file on a different server. When it gets to the frame where the number should be it just says "transferring data from eckul.com" and will not actually pull in the number. Unfo[More]

Xml file not loading

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

i am trying to create an e-learning course that will have glossaries according to the various lessons that are within the overall course. i have attached the code that i am using to quickly switch out the glossary xml file (that contains the definiti[More]

XML file not properly read from Appc Server. Partial records filled into IT

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

Hi, I am reading an XML file from the application Server. only 2 records are comming to the Internal table. Other records are not coming to the Internal Table. It's giving Sy-Subrc 4 after 2 iterations. Below is my code. Kindly suggest. open dataset[More]

XML file not loading...HELP!

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

Hello, I'm working on a Magento template that includes a flashfile that loads a XML file. I'm getting the following error: XML FAILED TO LOAD! (undefinedtfile_main.xml) Fout bij openen van URL 'file:////Volumes/Macintosh%20HD/Users/ralreclame/Desktop[More]

.xml file not loading when piece runs through an LMS

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

Dear all We created a fully interactive training program on MS Excel where we also simulated Excel using the OWC10.DLL control.  This works pretty well for both .exe and web packaged pieces. In certain cases this control is pre-populated using a .xml[More]

Help: question on send XML file from java client to java server

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

Hi, I am now to Java, and now I am going to set up a simple network in the lab. I have created a random array of data and transferred to XML file on my client. Now, I would like to send it to the server. I am wondering how I can put the XML file into[More]

Generating a XML file and Storing on the Presentation Server

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

Hi Experts, I am facing a problem in generating and storing a XML file on Presentation Server. I am using Call Transformation as follows: CALL TRANSFORMATION id SOURCE para = t_xml[] RESULT XML xml_string. APPEND xml_string TO xml_tab. and then using[More]

XML file for loading different classes in application ?

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

Hi, I want to configure a small application ( a simulator ) using a XML file. The XML file determines the classes, whih should be loaded, and initialize the variables (values set in the XML files). I want to have different modules (same functionality[More]

Looking for a way to move a rejected xml file after loading it

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

Hi all, I'm currently looking for a solution to do the following: I've loaded multiple xml files into an external table and after firing a few queries on that external table, I've moved the xml data into a normal oracle table depending on a few value[More]

Use XML files stored in directory of Application server as a input for XI ?

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

I have a scenario that there is a xml file stored in sap application server for example /inf/ERQ/XML/XXX.xml which i want to use it as an input for XI. I know that there is an adapter in XI for getting xml file stored in normal path but in my situati[More]

Hot
i have a field in a internal table in which i have to put "X" if the user checks on a check box, for a particular row. please provideme with the required code . Thankyou. UpendraHi upendra There are slight changes in the sivas code.Where is the [More]
HI i am trying to open a PDF file from facebook in adobe  reader. I had done this many times on my old iPhone 5 (I'm now using iOS 8 on a iphone 6plus) it does not give me the option to do this jiwrver . There no box with the arrow to select open in. [More]
Hi, We are encountering an issue when uploading the template in Linux OS. The same template works in Solaris instance. Can you please help. The error on the excel template is "ORA-00976: Specified pseudocolumn or operator not allowed here." 9/22 [More]
In adobe reader XI i don't see menu toolbar with, in italian, file, modifica, esc. I must click f9 to see. I have windows xp. Help me?When you use Kaspersky software install the updates from Kaspersky.Read other 2 answers [More]
I am using the "ListDemo" from the java swing tutorial. If I compile it on the command line javac ListDemo.java It compiles fine. Then when I run it, it says: C:\Development\Java\Projects\Projects>java ListDemo Exception occurred during event [More]
Hi All, I have installed the Oracle AS Infra on Linux box. I am able to start all the component using opmnctl startall and its showing alive also. I am able to login to OID. But not able to login to Oracle Enterprise Manager. After starting the Oracl [More]
I currently have this Bluetooth adapter that you can plug a pair of headphones into. It is from Sony. The reason I use it is because its nice to be able to have my iPhone free of wires when I am taking it out of my pocket, putting it in my bag, etc. [More]
Hey Guys, I need some help wrting a customer query. I'd like the query to return the customer name, the item that he orders and the total amount he owes. I've already got the joins between the customer name (hz_parties) and the amount owed (ra_custom [More]
Hi, After enter the process order information the COR1 transaction shows a settlement page, where you enter and distribute the cost of the materials and operations of the order. The question is: Is possible to predefine this settlement ?? I need to s [More]
I have a list of id's and corresponding names associated with them,i want to map the id's to the names during the first time program runs and to use the names after that instead of id's during run time(but not mapping the id to the name again and aga [More]