Hi
I'm trying to automatically run pages through Google's translation service, but I only 
want the translation box to appear if the page hasn't already been translated: I'm 
trying to use http_host to do a conditional output for a table row.

this is the url of the translated page:

http://216.239.37.104/translate_c?hl=en&ie=UTF8&oe=UTF8&langpair=en%7Cfr&u=http://test.artsoutheast.co.uk/index.cfm&prev=/language_tools

and this is what I'm trying (without success):

 <cfif http_host contains 'langpair'> // couldn't seem to get any 'NOT contains' 
working, so am just outputting a blank table row...
  <tr bgcolor="#E3E4D1">
   <td colspan="2">&nbsp;</td>
  </tr>

 <cfelse>

  <tr bgcolor="#E3E4D1">
   <td colspan="2">
   
<!-- nested table for Google stuff -->

// table here   
  </tr>
 </cfif>

I've tried "cfif http_host contains '216.239.37.104'" and various other things, but 
nothing seems to work. anyone any ideas? (I'm using CF4.5 and Access db, not that that 
matters for this problem)

TIA

Ian W



Ian Westbrook,
FutureDream Media Limited,
(W): www.futuredream.net
(E): [EMAIL PROTECTED]
(T): +44 (0) 1303 258 985
(M): 07939 510 812

This message may contain information which is legally privileged and/or confidential. 
If you are not the intended recipient, you are hereby notified that any unauthorised 
disclosure, copying, distribution or use of this information is strictly prohibited. 
Such notification notwithstanding any comments, opinions, information or conclusions 
expressed in this message are those of the originator, not of FutureDream Media Ltd, 
unless otherwise explicitly and independently indicated by an authorised 
representative of FutureDream Media Ltd.

Reply via email to