I'm passing a 10 digit number to my cfc and within the cfc I want to
divide the 10 digit number into 3 parts using the ColdFusion mid()
function. I cannot seem to get it to work.

here's what I'm trying.. and failing at..

<cfargument name="damin" type="string" required="true" />       
<cfset var npa = ''>
<cfset var nxx = ''>
<cfset var data = ''>
<cfset var fooQ = '' />
                
<cfset npa = mid(damin, 1, 3)>
<cfset nxx = mid(damin, 4, 3)>
<cfset data = mid(damin, 7, 4)>
                
      <cfquery name="fooQ" datasource="npanxx_prod">


If I run this from a CFM page, no problem.. however, from Flex I'm getting..
faultCode:Server.Error.Request
faultString:'HTTP request error'
faultDetail:'Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false
eventPhase=2 text="Error #2032: Stream Error. URL:
http://localhost:8300/npanxx/npanxx.cfc";].
URL:http://localhost:8300/npanxx/npanxx.cfc'

There isn't anything wrong with my CFC, so why is Flex freaking out on
me? And is there some other way of accomplishing what I'm trying to
do, does Flex require that we sacrifice a goat or something before
it'll behave?


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to