I think url is a reserved word. Try changing the variable name.

Ahmed El-Rasheedy, MBA
Unitrin Specialty - Insurance for U



From: Ryan Everhart [mailto:[EMAIL PROTECTED]
Sent: Friday, January 27, 2006 12:41 PM
To: Dallas/Fort Worth ColdFusion User Group Mailing List
Subject: Re: [DFW CFUG] Another CF AJAX Package

Hey everyone,
I am having a bit an issue testing out this JSMX....I am getting the following error:
 
Error
------------------------------------------------------------
Complex object types cannot be converted to simple values. The _expression_ has requested a variable or an intermediate _expression_ result as a simple value, however, the result cannot be converted to a simple value. Simple values are strings, numbers, boolean values, and date/time values. Queries, arrays, and COM objects are examples of complex values.
 
The most likely cause of the error is that you are trying to use a complex value as a simple one. For example, you might be trying to use a query variable in a <CFIF> tag. This was possible in ColdFusion 2.0 but creates an error in later versions.
The error occurred on line 18.
 
 
here is my code: (line 18 is the cfset URL line)
---------------------------------------
<cfset result = structNew() />
 <cfset result.city = "N/A" />
 <cfset result.state = "N/A" />
 
 <cfset url = ""http://www.webservicex.net/uszip.asmx/GetInfoByZIP"> http://www.webservicex.net/uszip.asmx/GetInfoByZIP" />
 
 <cfhttp method="GET" url=""/>
 
 <cftry>
  <cfset addyObj = xmlParse(cfhttp.filecontent ) />
  <cfset result.city = trim(addyObj.newDataset.table.city.xmlText) />
  <cfset result.state = trim(addyObj.newDataset.table.state.xmlText) />

  <cfcatch><!--- do nothing ---></cfcatch>   
 </cftry>

Any idears?
 
Ryan
 
 
 
 


 
On 1/27/06, Ryan Everhart <[EMAIL PROTECTED]> wrote:
I'm testing him, I just wrote him an email with an issue I am having :)
 
Ryan


 
On 1/27/06, Jake McKee <[EMAIL PROTECTED] > wrote:
Just a heads up - I've been trying to find an easy (and understandable)
way to get into AJAX for a while. I emailed this guy to ask some
licensing questions and he replied quickly. He asked what I was wanting
to do, I told him and he helped me out.
So far, I've been very impressed with the code, although the
documentation is pretty lacking. I get the feeling, however, that this
is much more of the engine alone - the rest of the work is standard,
non-CF specific AJAX. Still looking into that.

Anyway, good code, good guy - check it out.

Jake

Matt Woodward wrote:

>>From the CFAjax mailing list:
>
>http://www.jsmx.org/
>
>--
>Matt Woodward
>[EMAIL PROTECTED]
> http://www.mattwoodward.com
>
>_______________________________________________
>Reply to DFWCFUG:
>   [email protected]
>Subscribe/Unsubscribe:
>  http://lists1.safesecureweb.com/mailman/listinfo/list
>List Archives:
>     http://www.mail-archive.com/list%40list.dfwcfug.org/
>  http://www.mail-archive.com/list%40dfwcfug.org/
>DFWCFUG Sponsors:
>   www.HostMySite.com
>   www.teksystems.com/
>
>
>
>
>
>


_______________________________________________
Reply to DFWCFUG:
[email protected]
Subscribe/Unsubscribe:
http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives:
   http://www.mail-archive.com/list%40list.dfwcfug.org/
http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors:
www.HostMySite.com
www.teksystems.com/



--
Ryan Everhart
[EMAIL PROTECTED]



--
Ryan Everhart
[EMAIL PROTECTED]
CONFIDENTIALITY NOTICE: The information contained in this e-mail and attached document(s) may contain confidential information that is intended only for the addressee(s). If you are not the intended recipient, you are hereby advised that any disclosure, copying, distribution or the taking of any action in reliance upon the information is prohibited. If you have received this e-mail in error, please immediately notify the sender and delete it from your system.
_______________________________________________
Reply to DFWCFUG: 
  [email protected]
Subscribe/Unsubscribe: 
  http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives: 
    http://www.mail-archive.com/list%40list.dfwcfug.org/             
  http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors: 
  www.HostMySite.com 
  www.teksystems.com/

Reply via email to