Loading XML generated by PHP doesn´t work
I know what will you say: Search for a tutorial.
Yes, i´ve searched here. Through internet. But i get no answer.
I checked format. This is the xml output:
<?xml version="1.0" ?>
<root>
<nivel nombre='A1'>
<item>
<nombre>audio1</nombre>
<tipo>audio</tipo>
<descargable>si</descargable>
<url>../multimedia/Audios/A1_audio1.MP3</url>
</item>
</nivel>
<nivel nombre='A2'>
<item>
<nombre>leccion1</nombre>
<tipo>texto</tipo>
<descargable>si</descargable><nivel nombre='B1'><item>
<nombre>audio1</nombre>
<tipo>audio</tipo>
<descargable>si</descargable>
<url>../multimedia/Audios/B1_audio1.MP3</url>
</item>
</nivel>
</root>
I think the format is perfect. I can read it on my Firefox as a perfect xml.
Now. This is action script code:
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, cargaXML);
loader.load(new URLRequest("reproductor_generador_datos.php"));
When loaded i do
trace(e.target.data);
To see the xml, but it´s php. It hasn´t generated it.
I follow every tutorial. This is the way. Is there any other way to make it "EXECUTE" the php code?? it donesn´t seem to work.
The same happens when i assign it to an XML in AS3. It doesn´t work.
Please help me. It´s taking so many time.
Thanks!!
Thanks a lot for the help, guys.
Well. I think i had problems trying to copy the xml here. That´s why it´s broken.... but i don´t find the problem, though, there...
Let me post here another example on how is it now. It´s got the header, and the <?xml tag.
<root>
<item>
<nivel>A1</nivel>
<id>0</id>
<nombre>audio1</nombre>
<tipo>audio</tipo>
<descargable>si</descargable>
<url>../multimedia/Audios/A1_audio1.MP3</url>
</item>
<item>
<nivel>A2</nivel>
<id>1</id>
<nombre>leccion1</nombre>
<tipo>texto</tipo>
<descargable>si</descargable>
<url>../multimedia/Textos/A2_leccion1.pdf</url>
</item>
<item>
<nivel>A2</nivel>
<id>2</id>
<nombre>leccion1</nombre>
<tipo>texto</tipo>
<descargable>no</descargable>
<url>
../multimedia/Textos/no_descargable/A2_leccion1.pdf
</url>
</item>
<item>
<nivel>A2</nivel>
<id>3</id>
<nombre>audio1</nombre>
<tipo>audio</tipo>
<descargable>si</descargable>
<url>../multimedia/Audios/A2_audio1.MP3</url>
</item>
<item>
<nivel>A2</nivel>
<id>4</id>
<nombre>audio1</nombre>
<tipo>audio</tipo>
<descargable>no</descargable>
<url>../multimedia/Audios/no_descargable/A2_audio1.MP3</url>
</item>
<item>
<nivel>A3</nivel>
<id>5</id>
<nombre>esFolleto2009</nombre>
<tipo>texto</tipo>
<descargable>si</descargable>
<url>../multimedia/Textos/A3_esFolleto2009-2010.pdf</url>
</item>
<item>
<nivel>A3</nivel>
<id>6</id>
<nombre>leccion1</nombre>
<tipo>texto</tipo>
<descargable>no</descargable>
<url>
../multimedia/Textos/no_descargable/A3_leccion1.pdf
</url>
</item>
<item>
<nivel>A3</nivel>
<id>7</id>
<nombre>Avicena</nombre>
<tipo>video</tipo>
<descargable>si</descargable>
<url>../multimedia/Videos/A3_Avicena.flv</url>
</item>
<item>
<nivel>B1</nivel>
<id>8</id>
<nombre>audio1</nombre>
<tipo>audio</tipo>
<descargable>si</descargable>
<url>../multimedia/Audios/B1_audio1.MP3</url>
</item>
<item>
<nivel>B1</nivel>
<id>9</id>
<nombre>audio1</nombre>
<tipo>audio</tipo>
<descargable>no</descargable>
<url>../multimedia/Audios/no_descargable/B1_audio1.MP3</url>
</item>
</root>
well. maybe i fixed it ... lol... but i think it won´t work.
Similar Messages
-
Finding XML file from EJB doesn t work.
Hi all:
I have an EJB accesing a XML file to parse a XML document. The file is in the classpath, and sometimes the EJB finds it and sometimes not.
What happens?
When the EJB finds it, DOMParser method, parse(InputStream), doesn t work.
I use this file to config DB connection externally for my BC4J (I don t use JTS).
Thanks in advance.
Joaqumn.Well, it won't work as iWeb has no import facility so cannot open html files.
What you could do is upload the html file to wherever you are hosting your site and create a link to it from iWeb, or find another package similar to the one you are using at present that is for Mac rather then PC. -
Xml export imovie 11 doesn't work
Can someone confirm that the export function to Final Cut XML doesn't work.
I simply doesn't make a file.
Example: Execute the export function and try to save it to the desktop. Result: No file on the desktop.
I wonder if someone else has the same experience.
Thank you.
MichielSorry worked perfectly for me. just changed all my fancy transitions to a standard cross dissolve.
-- Dan
Keeper of the TheUnofficialiMovieFAQ.com -
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> -
Data generator for NVARCHAR2 doesn't work
HI,
I try to use data generator to populate the table Employees, it gives good values in the test run, but when I press "Create data as SQL" and run the query it gives an error:
SQL> insert into SYSTEM.EMPLOYEES (EMPLOYEE_ID, FIRST_NAME, LAST_NAME, EMAIL, PHONE_NUMBER, HIRE_DATE, SALARY, JOB_ID, MANAGER_ID)
2 values (232, Robbie, Reilly, '[email protected]', 0586862301, to_date('09-08-2009', 'dd-mm-yyyy'), 4262, 421, 135);
ORA-00984: column not allowed here
The error is because I have to put quotes round the nvarchar2 values, and the data generator doesn't do it.
Does anyone knows how to make the data generator put quotes around my nvarchar2 columns?
BTW, I thought ther would be much information about this error in the net, because everybody who uses data generator for nvarchar values should get it, but I didn't find anything..
glad if someone can help me,
thanks!
Edited by: 998093 on 08:39 04/04/2013Strings must be enclosed in single quotes:
insert into SYSTEM.EMPLOYEES (EMPLOYEE_ID, FIRST_NAME, LAST_NAME, EMAIL, PHONE_NUMBER, HIRE_DATE, SALARY, JOB_ID, MANAGER_ID)
values (232, <font color=red size=2>'</font>Robbie<font color=red size=2>'</font>, <font color=red size=2>'</font>Reilly<font color=red size=2>'</font>, '[email protected]', 0586862301, to_date('09-08-2009', 'dd-mm-yyyy'), 4262, 421, 135);
And we have no idea what generator you use. I suggest contacting vendor.
SY.
Edited by: Solomon Yakobson on Apr 4, 2013 11:48 AM -
Generate SDO classes doesn't work in JDeveloper
Hi,
What I would like to do: I would like to call a Java service from a BPEL process.
The way I do it is by encapsulating my java service in a stateless session EJB which I try to expose through an SDO interface. Like that, I expect to be able to use this service with the EJB adapter in BPEL.
I have an issue with JDeveloper to generate my SDO interfaces.
If I have 2 simple classes :
<pre>public class User {
private String name;
public void setName(String name) {
this.name = name;
public String getName() {
return name;
}</pre>
and
<pre>public class UserAccess {
public User getUserById(int id) {
return new User();
}</pre>
I use the Create Service Interface... feature on UserAccess, and I doesn't generate the class UserSDO... Why is that ? Can you help please ?
LaurentHi,
As a general rule, whenever using an operator where the query window comes from a table rather than a constructor, try using the ordered hint and put the table that contains the query window (the second geometry in the operator) first in the from clause. You are right in that the table associated with the first geometry must be indexed. This query might be changed to:
SELECT /*+ ordered */
v.nom ENS_NOM, v.adresse_numero, v.adresse_rue,
c.code_insee , c.nom COM_NOM , b.code_centre,
MDSYS.SDO_NN_DISTANCE(1) DIST
FROM TEMPGEOMDATA v, limadm_commune c, batsp_cis b
WHERE v.code_insee = c.code_insee
AND SDO_NN(b.geometrie, v.geometrie, 'sdo_num_res=1', 1) = 'TRUE' ;
Hope this helps,
Dan -
I just loaded tiger now final cut doesn't work
It says that the system memory must be low when I launch the program. There are no other programs open and it does this off a fresh restart.
Another thing to note is that I also just installed a second hard drive, the drive that I transfered my aplications and os(tiger).
Are there compatability issues I'm dealing with? What's going on? I'm stumped.Are you saying you transferred your apps rather than doing a fresh install of each one? That's a no-no. Delete them and install instead. The apps need to live in the Applications folder on the boot volume, without any renaming whatsoever. Any other arrangement is asking for problems.
-
Copy XML data out of event.result to a XML var doesn't work
So I'm pretty new to Flex, but learning with the help of a few books. I'm totally stumped here though, as I"m copying an example right out of The Flex 3 Bible and its not working the way I thin it should. My code is below. Here is my problem. I'm reading in an XML from a php script. Works fine. In Debug I can tell the event.result is getting the XML as it should. In the resultHandler I'm trying to copy it to a variable I assigned called myCollection. This is just not occuring for some reason. If I look at the variable in debug, its null. following that i"m trying to take innertags and get them out (myCollection.trumpet.settings). Of course this doesn't work because myCollection is populated with nothing. This came right out of an example on page 654... I've been bangging my head against the wall for hours. any help on how to copy this data out of event.result would be great.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
import mx.rpc.events.ResultEvent;
import mx.collections.ArrayCollection;
[Bindable]
private var myCollection:XML;
private var xReturn:Object;
private function resultHandler(event:ResultEvent):void
myCollection = event.result as XML;
xReturn = myCollection.trumpet.setting;
// textbox.text = myCollection;
]]>
</mx:Script>
<mx:HTTPService id="myService" url="http://10.101.50.60/get_config.php"
method="POST" showBusyCursor="true" result="resultHandler(event)"/>
<mx:VBox left="25" top="25">
<mx:Button label="Get Data" click="myService.send()"/>
<mx:Label id="textbox">
</mx:Label>
<!-- <mx:DataGrid id="myGrid" dataProvider="{myCollection}"/>-->
</mx:VBox>
</mx:Application>Try setting resultFormat="e4x" in the HTTPService.
-
Generated javascript by JSF doesn't works with IE
Hi Everyone!!!
I Have a big problem, the jaavascript code generated by JSF doesn't
works using IE, I used a h:commanLink with actionListener to a funciton
in the backing bean, and I use two f:params to send the parameter of an
specific element to show its details, the problem is taht the
javascript code generated shows an error: "
'documents.forms.form.form:_idcl' is null or is not an object " or "
'elements.idVar' is null or is not an object ". I'm not using MyFaces,
or something similar because the application has a part built in
ArcgisServer, and it 's not compatible with Myfaces, so I needed to use
JSf only...
Please I hope an answer, it has a big problem!!!
it is the code of the jsp
<code><h:commandLink actionListener="#{consultaEstadisticasMB.detalleEstadistica}">
<f:param name="idVar" value="#{consultaEstadisticasMB.idColumna3}"/>
<f:param name="idMun" value="#{registro[0]}" />
<h:outputText title="#{consultaEstadisticasMB.columna3}" id="itColumna3" value="#{registro[2]}" />
</h:commandLink>
</code>Minor nit: MyFaces is JSF, an implementation at least, as is Mojarra, which I assume is what you mean. :)ye, MyFaces is an implementation... but at this time, we�re using "JSF 1.1.02 - Reference Implementation"...
Now, I have noticed that is a problem of jsf implementation so i have tried to do the work in another way, usign outputLink, nad creating a new backing bean for the details page.. altough I'm having problems, this is what i'm trying to do:
<h:outputLink value="/ConsultaEstadisticasGeo/detalleEstadisticas.jsf?idVar=#{consultaEstadisticasMB.idColumna3}">
<h:outputText title="#{consultaEstadisticasMB.columna3}"id="itColumna3" value="#{registro[2]}" />
</h:outputLink>but it shows me an error...
GRAVE: Servlet.service() para servlet Faces Servlet lanz� excepci�n
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
And I don't kwon why. If you could help me, I would been so grateful -
I just loaded inlay 3d bowling and it doesn't work.
I just loaded 3d bowling and it doesn't work..
Probably better to tell the developers, rather than us.
To be able to assist, they might need a bit more information than "it doesn't work" though... -
Hello,
I'm trying to create iphone app.
When I try to load xml url from desktop emulator it works like a charm.
But when I debug on the iphone device it throws error.
Error #2032
I have setup a crossdomain.xml file but that doesn't fix the issue.
I have no idea what to do from now?
I'm using the latest flash builder 4.5.1 and air 2.7 sdk i think.
Hope someone knows what to do
Thanks.Sorry everyone.
I pointed to the wrong url.
I was pointing to my local ip and not external url
Thanks again for trying to help me. -
OnPress doesn't work on image...
Hi there,
I am having a problem when trying to add an onPress handler
to a JPG which is loaded into a movieclip.
onPress doesn't work.
ActionScript Code:
for (i=0; i<ecards.length; i++) {
var mc:MovieClip = attachMovie("recipient", "recipient"+i,
i);
mc.loadMovie("images/button.jpg");
mc.onPress = function(){
trace(this._name);
"recipient" is a 100x75 rectangle (same size as JPG).
if I comment the line "mc.loadMovie("images/button.jpg");" it
displays only the original mc and traces the name property, but
when I load the image into it, it doesn't trace it anymore.
Any help would be appreciated.
Thanks in advance!I got a solution from Ali Inhan at Actionscript.org:
for (i = 0; i < ecards.length; i++) {
var mcl:MovieClipLoader = new MovieClipLoader();
var listener:Object = new Object();
mcl.addListener(listener);
listener.onLoadInit = function(m:MovieClip) {
m.onPress = function() {
trace(this._name);
var mc:MovieClip = attachMovie("recipient", "recipient" + i,
i); mcl.loadClip("images/button.jpg", mc);
} -
Why this example doesn't work ?
for example below:
html code:
<applet code=LunarPhasesRB.class width="200" height="200">
</applet>when i run it on IE , i get below result:
failed to loading java program.
why it doesn't work on IE ?
who can help me ?
thanks !thanks a lot!
left of web browser appear below info:
small application program LunarPhasesRB notinited
what does it mean ?
if i click "Click to activate and use this control".
another err:
failed to loading java program.
who can help me ? -
Booting problem, mouse and keyboard doesn't work for 2 minutes
I got a brand new mac mini 2.4Ghz just 3 weeks ago, got a few problems over the last week that I've been able to fix, but now I'm stuck with a problem when booting. The booting process seems a bit slow, and once the desktop has been fully loaded, the keyboard and mouse doesn't work, and the computer is using the non-calibrated Display Profile. After about 2 minutes, the display profile change to calibrated, and the mouse and keyboard work again. I have no clue about how to fix that problem, and I'm thinking about bringing the computer to an Apple Store by tomorrow if I can't fix it.
Welcome to Discussions!
Check your login items to see what's there. You may have too much going on at login which is causing the serious delay in loading time.
To check the login items, open System Preferences, under the System section click Accounts, click your account name, then click the tab at top labeled Login Items. If you want to remove an item in the list, click the item then click the - button below the list. -
[SOLVED][Apache]IfModule doesn't work
Hello
I have in httpd.conf:
Listen 80
<IfModule mod_ssl.c>
Listen 443
</IfModule>
<IfModule ssl_module>
Listen 442
</IfModule>
but:
netstat -lpntu | grep http
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 2047/httpd
Log startup:
[Fri Mar 16 13:30:23 2012] [debug] mod_so.c(246): loaded module ssl_module
Why IfModule doesn't work as expected? In accordance with: http://httpd.apache.org/docs/2.2/mod/core.html#ifmodule I can use module-file: mod_ssl.c or module-identifier: ssl_module.
What is wrong?
# apachectl -v
Server version: Apache/2.2.22 (Unix)
Server built: Feb 8 2012 10:29:48
On Debian it works:
$ netstat -lpntu | grep apache
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 25706/apache2
tcp 0 0 0.0.0.0:442 0.0.0.0:* LISTEN 25706/apache2
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 25706/apache2
$ apache2ctl -v
Server version: Apache/2.2.16 (Debian)
Server built: Feb 5 2012 21:01:59
Edit:
My stupid mistake. I used <IfModule mod_ssl.c> before I loaded module.
Last edited by dracorp (2012-03-17 18:09:47)zezke wrote:
Hi, i've just installed Arch with LXDE on my netbook, but despite all my efforts, automount still doesn't work. What i've done so far:
-installed pmount (didn't configure anything, because this isn't mentioned anywhere)
-added myself to the hal group
-put hal in the daemons (it boots in the background, but this shouldn't affect automounting).
Anything i forgot?
There were some reports to fix automounting you needed to change the PolicyKit file. Have you done that yet?
Here's the link
Last edited by Inxsible (2009-03-06 16:44:44)
Maybe you are looking for
-
Field names Missing in the (Excel) Mail attachment
Hi , I am trying to send my ALV Grid Output as Excel Email attachment using the below code The problem is that the field names are missing in the receivers Mail. i.e *Name* *Emp Code* * Branch* "this is missing abc 123
-
Configuration enabling goods receipt of purchasing pricing condition
Hi Gurus, a) If I check the "Accruals" flag for a pricing condition, then only, that pricing condition will create a delivery costs goods receipt, while we receive the purchase order having that condition type......is it correct? b) Is any other con
-
Posting an Excel file to a FTP Server
Hi, I have a requirement, where I have to convert the contents of an internal table to an excel file, along with header details and put that file to a FTP Server. I am able to create an excel file in FTP server, using function module FTP_R3_TO_SERVER
-
Invalid state in SQL query for a function that was created with no errors.
SQL> CREATE OR REPLACE FUNCTION overlap(in_start1 IN TIMESTAMP, in_end1 IN TIMESTAMP, in_start2 IN TIMESTAMP, in_end2 IN TIMESTAMP) RETURN NUMBER 2 IS 3 4 BEGIN 5 IF (in_start1 BETWEEN in_start2 AND in_end2 OR in_end1 BETWEEN in_start2 AND in_end2 OR
-
How to add one infocube into multiple Multiproviders
Dear Experts, I got a task to add one infocube into many(10) multiproviders. As per my knowledge,I have to add it manually by going through each and every multiprovider. Like this i have to do it for around 15 Infocubes and it's really time k