yeah, that's it.  don't know why Contains didn't work though, as I realised
afterwards that you can of course use that in CFML, it's just one of those
things I don't use very often.


Duncan Cumming
IT Manager

http://www.alienationdesign.co.uk
mailto:[EMAIL PROTECTED]
Tel: 0141 575 9700
Fax: 0141 575 9600

Creative solutions in a technical world

----------------------------------------------------------------------
Get your domain names online from:
http://www.alienationdomains.co.uk
Reseller options available!
----------------------------------------------------------------------
----------------------------------------------------------------------


                                                                                       
                            
                    "Ian                                                               
                            
                    Westbrook"           To:     <[EMAIL PROTECTED]>                   
                  
                    <[EMAIL PROTECTED]        cc:                                      
                                 
                    eam.net>             Subject:     Re: [ cf-dev ] http_host 
contains                            
                                                                                       
                            
                    30/06/2003                                                         
                            
                    13:51                                                              
                            
                    Please                                                             
                            
                    respond to                                                         
                            
                    dev                                                                
                            
                                                                                       
                            
                                                                                       
                            



and the opposite would, presumably, be:

<cfif NOT FindNoCase(http_host, "langpair")>

?

I'll go and try.

ta

Ian W

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 30, 2003 1:15 PM
Subject: Re: [ cf-dev ] http_host contains


>
> don't know what this Contains function is, perhaps you're confusing it
with
> the ListContains function.  How about:
>
> <cfif FindNoCase(http_host, "langpair")>
>
> </cfif>
>
>
> Duncan Cumming
> IT Manager
>
> http://www.alienationdesign.co.uk
> mailto:[EMAIL PROTECTED]
> Tel: 0141 575 9700
> Fax: 0141 575 9600
>
> Creative solutions in a technical world
>
> ----------------------------------------------------------------------
> Get your domain names online from:
> http://www.alienationdomains.co.uk
> Reseller options available!
> ----------------------------------------------------------------------
> ----------------------------------------------------------------------
>
>
>
>                     "Ian
>                     Westbrook"           To:     "cfug dev list"
<[EMAIL PROTECTED]>
>                     <[EMAIL PROTECTED]        cc:
>                     eam.net>             Subject:     [ cf-dev ]
http_host
contains
>
>                     30/06/2003
>                     13:09
>                     Please
>                     respond to
>                     dev
>
>
>
>
>
> 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=h

ttp://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.
>
>
>
>
>
> --
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
>


--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]






-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to