Flash won't load xml generated from coldfusion
I have a swf file that used to load in xml files. It worked
perfectly fine. However, I then realized it would make more sense
to have the flash load a cfm file that creates xml on the fly.
My cfm page is creating perfectly fine xml but the flash
won't load it. WHY!?
Here is the path to my xml...
http://www.flyfishingcommunity.com/newsite/widgets/reports/pictures_widget_fly_fishing.cfm
In my flash file I load the cfm the way I used to load the
xml and its not working.
mikejjr wrote:
> Ever since I loaded the new Internet Explorer, 7.0, my
FLASH won't load. When
> I go to a site requiring FLASH, it tells me that the
site requires FLASH, and I
> need to downloaded it from Macromedia... I have download
it twice, and still
> NO luck.
>
> Any suggestions? Can anyone help?
adobe.com/support/flash
look for links for player installation troubleshooting.
Also make sure that anti spy ware / ad ware and other that
type
of tools are not set to block flash content.
Some of these tools do that by default
Best Regards
Urami
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>
Similar Messages
-
Getting xml generated from ColdFusion
I am trying out the the framework and I created a cfm page
that creates xml to send back to the page. If I goto the page that
generates the xml it loads fine and in IE displays the xml tree.
But when I call the same page using XMLDataSet, I get an
onLoadError... but, if I take the generated xml and save it as an
xml file, it loads just fine... I turned debugging off in CF so the
only thing being written to the page is the xml..
Question 1, why would I get this error? and 2, how do I see
what the error is?"grumpee" <[email protected]> wrote in
message
news:epb7pf$9ng$[email protected]..
>I am trying out the the framework and I created a cfm
page that creates xml
>to
> send back to the page. If I goto the page that generates
the xml it loads
> fine
> and in IE displays the xml tree. But when I call the
same page using
> XMLDataSet, I get an onLoadError... but, if I take the
generated xml and
> save
> it as an xml file, it loads just fine... I turned
debugging off in CF so
> the
> only thing being written to the page is the xml..
>
> Question 1, why would I get this error? and 2, how do I
see what the error
> is?
Most likely you aren't serving the data using the correct
mime-type. Try add
something like this to your CFML code:
<cfcontent type="application/xml; charset=iso-8859-1">
The code above use iso-8859-1 (Latin-1), change it to the one
that fits your
application (utf-8 or whatever).
This custom tag could also make your life easier:
http://www.olimpo.ch/tmt/tag/spryxml/
Massimo Foti, web-programmer for hire
Tools for ColdFusion and Dreamweaver developers:
http://www.massimocorner.com -
Flash won't load from creative suite..
I downloaded a trial of Flash from the Adobe site 5 months
ago. I recently purchased Creative Suite 3 w/ Flash included.
Every program from my newly purchased CS3 disks load up and
activate except for Flash. When I tried to reinstall from the
disk it tells me that Flash is already installed, but when I look
in the application folder it's no where to be found. I trashed the
old expired trial version and tried to reload - still no success??
Any suggestions...?mikejjr wrote:
> Ever since I loaded the new Internet Explorer, 7.0, my
FLASH won't load. When
> I go to a site requiring FLASH, it tells me that the
site requires FLASH, and I
> need to downloaded it from Macromedia... I have download
it twice, and still
> NO luck.
>
> Any suggestions? Can anyone help?
adobe.com/support/flash
look for links for player installation troubleshooting.
Also make sure that anti spy ware / ad ware and other that
type
of tools are not set to block flash content.
Some of these tools do that by default
Best Regards
Urami
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
Load XML file from addon domain without cross-domain Policy file
Hello.
Assuming that there are two addon domains on the same server: /public_html/domain1.com and /public_html/domain2.com
I try to load XML file from domain2.com into domain1.com without using cross-domain policy file (since it doesn’t work on xml files in my case).
So the idea is to use php file in order to load XML and read it back to flash.
I’ve found an interesting scripts that seems to do the job but unfortunately I can't get it to work. In my opinion there is somewhere problem with AS3 part. Please take a look.
Here are the AS3/PHP scripts:
AS3 (.swf in www.domain1.com):
// location of the xml that you would like to load, full http address
var xmlLoc:String = "http://www.domain2.com/MyFile.xml";
// location of the php xml grabber file, in relation to the .swf
var phpLoc:String = "loadXML.php";
var xml:XML;
var loader:URLLoader = new URLLoader();
var request:URLRequest = new URLRequest(phpLoc+"?location="+escape(xmlLoc) );
loader.addEventListener(Event.COMPLETE, onXMLLoaded);
loader.addEventListener(IOErrorEvent.IO_ERROR, onIOErrorHandler);
loader.load(request);
function onIOErrorHandler(e:IOErrorEvent):void {
trace("There was an error with the xml file "+e);
function onXMLLoaded(e:Event):void {
trace("the rss feed has been loaded");
xml = new XML(loader.data);
// set to string, since it is passed back from php as an object
xml = XML(xml.toString());
xml_txt.text = xml;
PHP (loadXML.php in www.domain1.com):
<?php
header("Content-type: text/xml");
$location = "";
if(isset($_GET["location"])) {
$location = $_GET["location"];
$location = urldecode($location);
$xml_string = getData($location);
// pass the url encoded vars back to Flash
echo $xml_string;
//cURLs a URL and returns it
function getData($query) {
// create curl resource
$ch = curl_init();
// cURL url
curl_setopt($ch, CURLOPT_URL, $query);
//Set some necessary params for using CURL
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
//Execute the curl function, and decode the returned JSON data
$result = curl_exec($ch);
return $result;
// close curl resource to free up system resources
curl_close($ch);
?>I think you might be right about permissions/settings on the server for php. Unfortunately I'm not allowed to adjust them.
So I wrote my own script - this time I used file path instead of http address of the XML file. It works fine in my case.
Here it is:
XML file on domain2.com:
<?xml version="1.0" encoding="UTF-8"?>
<gallery>
<image imagePath="galleries/gallery_1/images/1.jpg" thumbPath="galleries/gallery_1/thumbs/1.jpg" file_name= "1"> </image>
<image imagePath="galleries/gallery_1/images/2.jpg" thumbPath="galleries/gallery_1/thumbs/2.jpg" file_name= "2"> </image>
<image imagePath="galleries/gallery_1/images/3.jpg" thumbPath="galleries/gallery_1/thumbs/3.jpg" file_name= "3"> </image>
</gallery>
swf on domain1.com:
var imagesXML:XML;
var variables:URLVariables = new URLVariables();
var varURL:URLRequest = new URLRequest("MyPHPfile.php");
varURL.method = URLRequestMethod.POST;
varURL.data = variables;
var MyLoader:URLLoader = new URLLoader;
MyLoader.dataFormat =URLLoaderDataFormat.VARIABLES;
MyLoader.addEventListener(Event.COMPLETE, XMLDone);
MyLoader.load(varURL);
function XMLDone(event:Event):void {
var imported_XML:Object = event.target.data.imported_XML;
imagesXML = new XML(imported_XML);
MyTextfield_1.text = imagesXML;
MyTextfield_2.text = imagesXML.image[0].attribute("thumbPath"); // sample reference to attribute "thumbPath" of the first element
php file on domain1.com:
<?php
$xml_file = simplexml_load_file('../../domain2.com/galleries/gallery_1/MyXMLfile.xml'); // directory to XML file on the same server
$imported_XML = $xml_file->asXML();
print "imported_XML=" . $imported_XML;
?>
Regards
PS: for those who read the above discussion: the first and the second script work but you must test which one is better in your situation. The first script will also work between two domains on different servers. No cross domain policy file needed. -
Any way to insert the XML generated from dataTable into the oracle?
Hi guys,
I want to know if there is a way to insert the XML generated from dataTable(dataTable.GetXML()) into the oracle?
Thanks in advance,There is o extractor to load assessment cycles; instead you can load dtaa after the assesment cycle is complte in R/3. You can schdeule the job in BW accordingly.
May I know what exactly is the requirement.
Ravi Thothadri -
Can I load xml file from SWC without using @embed
I'm developing a mobile application in which I need to load xml files from File.applicationDirectory. This works great if the xml files are part of the main application swf. But I would like to move these xml files into a SWC so they could be shared across multiple applications.
Using FlashBuilder 4.5, when a SWC is built, I can specify files to embed in the library that are not assets (Assets Tab of Flex Library Build Path). For various design reasons, I do NOT want to embed the xml files via @embed.
When the swc is built and I open it up using a zip utility, I see the xml files in there just fine. So they are being bundled with the SWC. But how can I load these files in my main application that does not involve using @embed? When the main application is built, the swc setting for link type is "merged into code".
I wouldn't expect the application to automatically pull out the xml files from the swc and place them in the File.applicationDirectory on the mobile device. I've tried loading from there just in case but file.exists is false (as expected).
I've searched the web (and continue to do so) and all the answers seem to be to use @embed. Is there another way?
RandyIt's actually a lot easier than you think.
Just reference the file like any'ol URL using a path relative to the SWC's src directory.
So if you include the file "assets/xml/some.xml", just use that same string like you would any remote resource.
For example:
var loader:URLLoader = new URLLoader( new URLRequest("assets/xml/some.xml"));
I believe it would also work like this "/assets/xml/some.xml", but I prefer relative paths so the link doesnt break if moved out of the SWC... -
Creating new analysis gives "Error loading XML Document from ..."
Trying to create analysis and getting "Error loading XML Document from saw.dll/answers/answersproperties.xml?fmapId=S1clug.
The response given was:" after choosing subject area. Analysis editor is opened but Subject Areas is empty and can't do anything.
The problem is on Mozilla 12 (16.0.2, 17.0.1) and IE 8. Chrome works fine.
My system is Win 7, BI 11.1.1.6.0 is on Oracle Linux (and by the way Mozilla from Linux system works fine)
What could be the reason of this?
Edited by: 898973 on 4/12/2012 15:11Reinstalling Mozilla with "Remove personal data" option checked resolved the problem.
-
How to include CDATA in xml generated from XQuery
I need to include Cdata in the xml generated from my xquery which is given below:
I tried using XMLCDATA, but not getting the desired output. What am I doing wrong?
SELECT XMLQuery('<InsUpdDel>
for $crv in ora:view("RELATION")
return
<first>
<eff_date>{$crv/ROW/EFF_DATE/text()}</eff_date>
<source>{$crv/ROW/SOURCE/text()}</source>
<key>
<fld>
<id>from_type</id>
<val>XMLCDATA({$crv/ROW/FROM_ENT_TYPE/text()})</val>
</fld>
<fld>
<id>from_ent_id</id>
<val>{$crv/ROW/FROM_ENT_ID/text()}</val>
</fld>
</key>
</first>}</InsUpdDel>'
RETURNING CONTENT)
FROM dual;
The output I get is XMLCDATA(C), while the desired output is <![CDATA[C]]>Forgive me my vanity to think I can contribute by kicking doors open that are probably already wide open....I might create more confusion, but perhaps it helps some of the readers of this thread....
In general it is not such a good idea to use "string" functions to create (serialized) XML. XML tools (including Oracle XML DB) go through a lot of effort to make sure that when a "native" XML structure is serialized to a string, the XML rules are strictly obeyed (e.g. special character escaping).
Just assume e.g. that the $i/Reference from above contains something like ]]><
The resulting XML would not be valid.
More info on serializing XML in the context of XQuery is available from
- http://www.w3.org/TR/xquery/#id-serialization
- http://www.w3.org/TR/xslt-xquery-serialization/
- http://www.w3.org/TR/xslt-xquery-serialization/#XML_CDATA-SECTION-ELEMENTS
Unfortunately I do not think Oracle XML DB currently implements these parts of the spec (perhaps 11g will)...leaving the OP's question unanswered.
Anyway, if going the route of serializing the XML through string functions, it is always good to realize the dangers of such an approach.
Peter -
I tested my procedure for upgrading from OBI 11.1.1.5 to 11.1.1.6 which was successful. I had to rollback to OBI 11.1.1.5 using my database backup and VM snapshot due to project requirements.
The OBI application successfully comes up but users who login just get "Error loading XML Document from /analytics/saw.dll/common/privileges.xml?fmapID=KqIJCw. The response given was: ". They can't close this message box so are unable to do anything.
How can I fix this?Hi All,
You can face this issue with other versions of OBIEE 11.*
Problem cab be solved as follows:
Go to http://localhost:7001/em > coreapplication > Capacity Management > Scalibility >
1. Lock and edit
2 .increase number of presentation services to 2
3. restart opmn component.
Go to coreapplication > Availibility > processes
1 .please note that in deployment > catalog > change path of catalog field from $coreapplication to path where your catalog resides.
2. Take down your primary instance.
3. As your secondary is up, it will grant you to browse you through catalog and dashboards.
If you want to run primary instance of presentation services
Go to path \Middleware\instances\instance1\bifoundation\OracleBIPresentationServicesComponent\coreapplication_obips2
except catalog and catalog manager > Copy all other files to coreapplication_obips1
restart opmn component > problem solved.!!!
Regards,
Akshay S.
please like if you find it helpful -
Hi.
My PL/SQL procedure loading xml files from oracle logical directory ("c:\temp") and inserting values into columns of the table. I use XSU with procedure:
create or replace procedure insProc(xmlDoc IN CLOB, tableName IN VARCHAR2) is
insCtx DBMS_XMLSave.ctxType;
rows number;
begin
insCtx := DBMS_XMLSave.newContext(tableName); -- get the context handle
rows := DBMS_XMLSave.insertXML(insCtx,xmlDoc); -- this inserts the document
DBMS_XMLSave.closeContext(insCtx); -- this closes the handle
end;
For translate xml document to CLOB, I use :
CREATE OR REPLACE function getdocument(
p_directory in varchar2,
p_filename in varchar2)
return clob
is
l_bfile bfile;
l_clob clob;
begin
l_bfile := bfilename(p_directory, p_filename);
dbms_lob.open(l_bfile);
dbms_lob.createtemporary(l_clob, true, dbms_lob.session);
dbms_lob.loadfromfile(l_clob, l_bfile, dbms_lob.getlength(l_bfile));
dbms_lob.close(l_bfile);
return l_clob;
end getdocument;
I didn't have problem with this procedures. But now i want load my xml files from another computer (i want use URL, not oracle logical directory).
How can i do it, using standart PL/SQL methods?Since you are parsing the XML what prevents you from delaying your requests for the image URL's? You can just as well add the image URL's to some kind of collection and load them after you have processed all the text content.
-
I'm try to load xml document from CLOB in following way:
--- procedure loadXML.sql -----
CREATE OR REPLACE PROCEDURE loadXML
IS
CONTENT CLOB := ' ';
SOURCE bfile := BFILENAME('XMLFILES', 'N_95_A.xml');
begin
DBMS_LOB.OPEN(SOURCE, DBMS_LOB.LOB_READONLY);
DBMS_LOB.loadFromFile(CONTENT, SOURCE, DBMS_LOB.getLength(SOURCE));
DBMS_LOB.fileClose(SOURCE);
insert into OFERTY (OFDOCUMENT)
values (sys.XMLtype.createXML(CONTENT));
commit;
end;
and I get
SQL> @e:\myxml\loadXML
declare
ERROR at line 1:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00210: expected '<' instead of '<'
ORA-06512: at "SYS.XMLTYPE", line 0
ORA-06512: at line 1
ORA-06512: at line 8
What is wrong?Have you tried simply outputting iusing the htp.p function? for example:
/* ... inside a PL/SQL region */
declare
lclb_output clob;
begin
select doc_xml into lclb_output from mf_xml_docs where doc_id = :P1_DOC_ID;
htp.p(lclb_output); -- you may have to split this into chunks and loop through, depending on how big the clob is
end; -
My iphone 4S won't load email messages from my local carrier on a regular basis. It says cannot get mail in use on another device. I thought everything was to sync together? Local carrier tells me it is Apple not them. It's been happening since I got my Kindle Fire about a month ago. Any ideas how to make everything work together????? Does it when kindle is off to sometimes. Thanks.
Hi Maquillage,
Thanks for using Apple Support Communities. I would recommend troubleshooting the iPhone by following the instructions in this article:
iOS: Not responding or does not turn on
http://support.apple.com/kb/TS3281
Resolution
If a single application is not responding or stops responding when it opens, you can force it to close.
If the device is unresponsive or if certain controls aren't working as expected, restart your device.
If the device remains unresponsive or does not turn on (or power on), reset your device.
If there is no video or if the screen remains black, verify that the device has enough charge to turn on:
If you are using an iPad, ensure that it's connected to the USB Power Adapter supplied with the device.
Let charge for at least twenty minutes, then see if it starts normally.
If there is no image on the screen, press the Sleep/Wake button to attempt to wake the device.
If the screen displays a red battery icon, continue charging the device until the battery is fully charged.
If the above steps do not resolve the issue, or the if the screen remains black or shows a persistent Apple logo, try restoring with iTunes:
Connect the device to your computer and open iTunes.
If the device appears in iTunes, select and click Restore on the Summary pane. Learn more aboutrestoring iOS software.
If the device doesn't appear in iTunes, try to force the device into recovery mode, and then restore it.
If the above steps do not resolve the issue, contact Apple.
Cheers,
- Ari -
My MacBook Air won't load web pages from the internet. It will connect to phone hotspot and run fine. The apple store reset the library and network preferences and it ran fine for a little bit, now slow again. Any ideas?
My MacBook Air won't load web pages from the internet. It will connect to phone hotspot and run fine. The apple store reset the library and network preferences and it ran fine for a little bit, now slow again. Any ideas?
-
Firefox won't load check images from my online bank.
Firefox won't load check images from my online bank. It had been doing so with no problems, but stopped 2 days ago. I can get into my account and navigate with no problems. But when I click to see the image of a check, I get a blank page.
I am using Firefox 3.6, but I have the same problem on my laptop with Firefox 4
It works fine with Safari and Internet Explorer.If you can't open them in Firefox anymore (you seem to have a plugin: View PDF documents within your web browser) then download the documents to the desktop and open them with a program that can open PDF files.
See also to be sure that that plugin is still selected:
* https://support.mozilla.com/kb/Managing+file+types
Do you otherwise have problems with PDF files? -
Flash CS5.5: Loading XML-file causes a "Security Sandbox Violation"
Hi,
after upgrading from CS3 to CS5.5, i get a "Security Sandbox Violation" when loading a XML-file. With CS3 everything was fine, but now my file is not working any more. The XML-file and my SWF-file are stored in the same directory and it nether work local nor on the webserver.
I don't know the correct message in english, but flash tells me something like:
"Security Sandbox Violation"
access to file:[]data.xml disconnent - not allowed from file:[]myfile.swf
Why am I not allowed to load an XML-file from the same directory/domain any more? And how can I get my data into my flash-File now?
It doesn't seems to be a Flash-Player-Problem, because an older version with the same code still works. So the problem has to be located in Flash CS5.5
Can anybody help me? Thanks a lot!
SonjaPlease ask such questions on the product specific forums. It is highly doubtful that anyone wil lsee it here.
Mylenium
Maybe you are looking for
-
How do i add a gmail account to outlook for mac
how do i add a gmail account to outlook for mac
-
Error creating instances in Business Process Workspace
i have the following error: oracle.bpm.web.exception.WapiOperationException: Error creating instance for target process Serv_M/Proj_V!76.0*/EV. Caused by: BPM-70204 Exception exception.70204.type: error exception.70204.severity: 2 exception.70204.nam
-
Embed a web link into an image for email
Embed a web link into an image for email. Anyone knows how to do this?
-
Why is the timeline numbering scheme wrong
I have zoomed in on a particular video and noticed as I zoom in the timeline numbering is not correct. Here is a screen shot showing the issue: In case you cannot see the numers the read as follows: 00;00;26;00 00;00;26;15 00;00;27;00 00;00;27;15 0
-
What is with all the blank space on the sides of the browser?
Well, I was forced into Firefox 9, and 1/4 of the screen on the right, and 1/4 on the left, is blank white space. Why would that happen? Plus, I have to change the zoom everytime I load a new page. Can anyone help? Using Win7 on a laptop with a displ