try this (no guarentees, it's been a while from _vbscript_) and I'm guessing on some parts...
 
 
<cflocation url="" />
 
 
and... assuming CC is a 2D array...
 
<cfscript>
function hash_to_string(CC)

  var CC_string = "";

  for (i = 0;i LTE 5; i=i+1){

    if (CC[i][1] GT ""){

      CC_string = CC_string & CC(i,0) & "=" & URLEncodedFormat( CC(i,1) ) & "&"

    }

    return(CC_string);

   }

 
</cfscript>
 
hope this helps
 
cheers
barry.b
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Carl Vanderpal
Sent: Wednesday, 29 June 2005 3:42 PM
To: CFAussie Mailing List
Subject: [cfaussie] convert from asp

Hello CFAussie,


Just need to get the Cold Fusion equivalents for these ASP calls please:


Response.Redirect (example below): 


Response.Redirect( HTTP_PROTOCOL & "://" & AT_SERVER & "/" & WEBSITE_ID & "/track/visit/?CC_" & VERSION & "=" & Server.URLEncode(CC))


and 

hash_to_string (example below)


function hash_to_string(CC)

  dim CC_string


  for i = 0 to 5

    if (CC(i,1) > "") then

      CC_string = CC_string & CC(i,0) & "=" & Server.URLEncode( CC(i,1) ) & "&"

    end if

  next

  hash_to_string = CC_string

end function



Thanks



Best Regards,

Carl Vanderpal 


====================================

Postal: Po Box 3462 Dural, NSW 2158

Email: mailto:[EMAIL PROTECTED]

FireFly Internet Phone: 80011777

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to