cgi.http_user_agent usually contains an OS identifier also.

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: 12 September 2003 10:02
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] soEditor
> 
> 
> 
> yeah, could do, but that's not enough.  e.g. IE on a Mac it 
> displays the
> textarea, but IE on the PC displays the soEditor.  So I could 
> test to see
> if it's IE, but I'd need to know the OS too.
> 
> this code is happening *before* the form gets submitted, as 
> it's working
> out what values to insert into the form.
> 
> it seems the client is mostly going to be using Macs anyway, 
> as far as i
> can tell (it's a bit of a confused situation), so I could 
> just remove the
> soEditor altogether.
> 
> 
> 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!
> ----------------------------------------------------------------------
> ----------------------------------------------------------------------
> 
> 
>                                                               
>                                                      
>                     "Alex                                     
>                                                      
>                     Skinner"             To:     
> <[EMAIL PROTECTED]>                                     
>                     <[EMAIL PROTECTED]        cc:                  
>                                                      
>                     o.uk>                Subject:     RE: [ 
> cf-dev ] soEditor                                      
>                                                               
>                                                      
>                     12/09/2003                                
>                                                      
>                     09:37                                     
>                                                      
>                     Please                                    
>                                                      
>                     respond to                                
>                                                      
>                     dev                                       
>                                                      
>                                                               
>                                                      
>                                                               
>                                                      
> 
> 
> 
> how about checking the cgi scope browser variable to see if 
> its netscape
> and
> if it is you know it has come from a textarea not soeditor.
> 
> or
> 
> If you can do it in javascript then set a hidden field value to either
> textarea or richeditor
> 
> depending on what is being shown ??
> 
> my 2p
> 
> Alex
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: 11 September 2003 11:50
> To: [EMAIL PROTECTED]
> Subject: [ cf-dev ] soEditor
> 
> 
> Got the SiteObjects soEditor (lite) on a form.  This only 
> works on IE on
> certain platforms.  On other browser/platform combinations, 
> it displays a
> textarea.
> Using Javascript to set the content of the form dynamically.  
> No problems
> there.
> 
> Got some coldfusion that is cleaning up the content that gets 
> placed into
> the soEditor object / textarea.  Basically I need to turn 
> CRLF combinations
> (#Chr(13)##Chr(10)#) into something that both soEditor and 
> the textarea
> will recognise as being line breaks.  If I don't clean up the 
> text at all,
> it displays nicely in the textarea, but loses the linebreaks on the
> soEditor.
> 
> So it's a two part question:
> I: Is there some way I can turn crlf into something that will display
> linebreaks / paragraph breaks correctly in both a textarea 
> and soEditor
> II: Is there any *server-side* way I can detect whether soEditor or a
> textarea will be displayed.  I've already got a good way of 
> working this
> out in Javascript, but not sure how it could be replicated in 
> coldfusion.
> I'm not about to pass a url parameter, as the form's way too 
> complicated to
> start doing that.
> 
> I suppose a third option would be to just clean up the text in the
> Javascript...
> 
> 
> 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!
> ----------------------------------------------------------------------
> ----------------------------------------------------------------------
> 
> 
> --
> ** 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]
> 


-- 
** 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