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 am not able to navigate to start screen with regular windows key press. I need to press hard to navigate to the start screen. But other functions with windows key is working properly. For Eg: Windows Key + R is working properly with regular press. [More]
We have a report that shows many rows of data together with a link to drill down on a particular row by branching to another page, passing the row PK as a parameter - standard stuff. However, some of our users like to use the browser facility to open [More]
The dvd is 4.7 GB and the movie is 4.1 the dvd wont burn the whole movie it stops a little before the movie is over. HOw do we burn a long movie onto dvd?What is the total playing time of your movie? iDVD 5 has a 120 minute limit, including menus, in [More]
I would like to d/l the owner's manual (and a service manual, if there is one) for my laptop (L755D-S5218). I didn't find it at the Toshiba site, and even their own "auto-detect utility" was run, but then the website said there isn't any product [More]
hi all, can anybody tell how to pass parameter to javascript function from java for example OAMessageTextInputBean txtbean = (OAMessageTextInputBean)webBean.findChildRecursive("BuyerPrice"); String row = "rowid"; txtbean.setOnKeyUp(&qu [More]
Hi all, I would like to add fields in item line specific to customer such as Asset, Purch. Doc., Sales Doc. in transaction F-28. And of course in the transaction FB03 for displaying the document. I thaught that there was a screen layout associated to [More]
Hi I am using JNDI to connect to JDBC resources defined in Sun's App Server from a standalone application. The application is not part of the J2EE container. I was able to sucessfully connect and execute SQL against the db passing VM params... my pro [More]
I am very new to Flex, with a very small amount of experience in ActionScript so forgive me if the answer to this is obvious. I've tried searching and haven't found a conclusive solution to my problem. I have a Flex project that I am building in Flex [More]
I keep getting a download error in the apps section.  Can someone help me resolve this?  I would like to update Lightroom.  ThanksHi, Please refer to the help document below: https://helpx.adobe.com/creative-cloud/kb/Download-error-apps-tab.html You [More]
Hello ! I want to know If we can modify a color ramp, because mine is a square and I want to have a heart. If no, maybe can I load an image (of a heart) and make it change of color in function of input datas ? Thanks ! Solved! Go to Solution.veux tu [More]