Ask a Question related to Macromedia ColdFusion, Design and Development.
-
iychen #1
a simple xml question
I am new to cfc/xml. When I tried to test a simple cfc function that returns an
xml object and tried to output it in a cfm page, the page returned an error
saying the value returned from function is not of type xml. what might be the
reason? The code is below. Thanks a lot
cfc:
<cfcomponent>
<cffunction name="simpleXml" access="public" returntype="xml">
<cfxml variable="xmlobject">
<test>this is a test</test>
</cfxml>
<cfreturn xmlobject>
</cffunction>
</cfcomponent>
cfm:
<cfobject name="myCFC" component="testcfc">
<cfset testxml= myCFC.simpleXml()>
<cfoutput>#toString(testxml)#</cfoutput>
iychen Guest
-
Need Simple Answer to Simple Contribute/Firefox question
Hello all; I've tried the Adobe help in CS3, tech support, phone support, this forum, other forums, Mozilla, and nowhere can I get a straight... -
simple question
Hi there, As an absolute beginner I have a simple question. I have a scene with two layers. Layer 1 should start again at frame 1 while Layer 2... -
SImple question?
Can anyone please tell me how to keep 2 windows open so that as soon as I click on one of them, the other one does not minimise and have to be... -
another simple question.
select from db where id = 3... if it doesn't exist, how can i display a message saying so. for example: "3" is not a valid selection. ... -
A simple question but ..
Hi Can someone give me a link where i can see (and do it my self) how to create a shape tweening? (Flash MX) Yes i am a newbie but want to learn... -
Laksma #2
Re: a simple xml question
There is no returntype "xml". In your case, you should use "string".
Laksma
Laksma Guest
-
iychen #3
Re: a simple xml question
MX7 add the xml returntype. Check macromedia livedocs.
iychen Guest
-
Adam Cameron #4
Re: a simple xml question
I only get that error if I run your code on CFMX6.1. On CFMX7.0, it works
fine.
You sure you're not trying to run it on a 6.1 server by accident?
--
Adam
Adam Cameron Guest



Reply With Quote

