Re: Solved(detect browser with cfif)

2007-01-24 Thread Scott Krebs
Also remember first things first, don't forget to make sure that variable 
exists before attempting to code against it. More and more it's not getting 
reported, especially by bots or over-protective security software.

cfif StructKeyExists(CGI, HTTP_USER_AGENT) AND FindNoCase...

I also see this problem a lot with code that assumes CGI.HTTP_REFERER will 
exist and contain meaningful data. If your user is running Norton full-bore, 
instant CF error.

HTH,
Scott

Thanks, that actually looks alot cleaner!!

Doug B.






- Original Message - 
From: Adrian [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Wednesday, January 24, 2007 7:46 AM
Subject: Re: Solved(detect browser with cfif)


without


~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267534
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Firefox Compatibility

2006-11-30 Thread Scott Krebs
I have noticed a similar problem with Firefox and a certain WYSIWYG text 
editor. Try turning your cftextarea tag into an HTML form textarea and see what 
happens. Might not be it but worth a try...

The web application I created will not insert the data into my Db.
The app works fine with IE.

The error says that a certain field is missing in the results table of my 
DB... :

The given fieldname  could not be found in the table Results


Do I need to download something on my CF server to make my application work in 
firefox?

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:262330
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Web service error, pls help

2006-11-24 Thread Scott Krebs
Hi Michael,
I recently ran into what I believe is the same problem that you are. The 
problem is that CF is weakly-typed, and the WSDL is describing complex data 
types that CF cannot figure out what to do with. The bottom line is that CF 
*can't* consume that web service using CFML, you must do it using Java (or .NET 
if on BD.NET).

Rob Munn (giving credit where it's very much due) answered the same question 
for me as so (check out the CFDJ link, the article shows how to get around the 
problem):

CF isn't good at invoking complex web services. The best way to deal with
this problem is to use WSDL2Java to create the Java libraries to invoke the
web service, then write a wrapper class in Java to use them. You can then
call the Java wrapper class from CF. There is a learning curve the first
time you tackle it, but after that it gets easier. I wrote an article on it
that you can find here:

http://cfdj.sys-con.com/read/86131.htm


The key is making sure you build the libraries and your wrapper class with
the same versions of the Java Axis classes that CFMX uses.
Rob

So there you go, probably not the news you were looking for though. Hope that 
helps!
-Scott

 I've got the following error:
 
 Attempt to instantiate an abstract class AutoTelephoneNumber. .
 
 It means to me that CF tried to create an object from this class, 
 however there is a C# utility demonstrates how to consume the ws works 
 fine.
 I have also downloaded WTP (Web tool platform for eclipse) and it 
 works well enough.
 
 Can oneone give me an advice what the problem would be and how to get 
 arround of it?
 
 My codes:
 
 cfscript
  
 ws = CreateObject(webservice, http://www.tracking.edi.com.
 au/webservice/shipmentservice.asmx?wsdl);
 addSOAPRequestHeader(ws, http://www.edi.com.au/EnterpriseService/;, 
 CompanyCode, CARCASMEL); addSOAPRequestHeader(ws, http://www.edi.
 com.au/EnterpriseService/, UserName, [EMAIL PROTECTED]
 au); addSOAPRequestHeader(ws, http://www.edi.com.
 au/EnterpriseService/, Password, mike); 
 /cfscript

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261619
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4