>- see footer for list info -<
I downloaded a udf from cflib GetHostAddress

http://www.cflib.org/udf.cfm?ID=446

When you try to get the host of a url that doesn't exists it throws an error.

I have tried cftry around the UDF but to no avail
http://www.arcweb.es/test.cfm

The UDF is shown below, can i not put cftry inside the cfscript or call it 
another way?

<cfscript>
function GetHostAddress(host) {
   // Variables
   var iaclass="";
   var addr="";
   
   // Init class
   iaclass=CreateObject("java", "java.net.InetAddress");

   // Get address
   addr=iaclass.getByName(host);

   // Return the address 
   return addr.getHostAddress();
}
</cfscript>

Thanks
Allan
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to