House of Fusion
Home of the ColdFusion Community

Search ajax

November 21, 2008

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
             1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30             

Search over 2,500 ColdFusion resources here  >>>      
Home /  Groups /  Ajax

CFAJAX and Safari

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 

02/18/2006 07:56 PM
Author:
Rick Root

I blogged this just now: http://www.opensourcecf.com/1/2006/02/Getting-CFAJAX-to-handle-Safari-properly.cfm I've noticed that CFAJAX seems to have with Safari.  I've also noticed that other people have noticed as well. Although my chat room worked for Safari users, Safari seemed to urlencode the parameters, and cf did not decode them. so a safari user would type "hey just checking this out", and it would get passed to my functions as "hey%20just%20checking%20this%20out". Here's my solution to this problem: In the "convertDataPassedToCFFunctionParam" function, around line 90ish,   just after the <cfelse> tag, I replaced the single line that was there (that starts with <cfset variable.param = listAppend ... >) with the following: <cfif lcase(cgi.HTTP_USER_AGENT) contains "safari">   <cfset variables.param = ListAppend(variables.param,"""" & URLDecode(Replace(Replace(mid(variables.var, variables.firstPos+1 , len(variables.var)-variables.firstPos),Chr(34),"#Chr(34)##Chr(34)#","ALL"),Chr(35), "#Chr(35)##Chr(35)#","ALL")) & """")> <cfelse>   <cfset variables.param = ListAppend(variables.param,"""" & Replace(Replace(mid(variables.var, variables.firstPos+1 , len(variables.var)-variables.firstPos),Chr(34),"#Chr(34)##Chr(34)#","ALL"),Chr(35), "#Chr(35)##Chr(35)#","ALL") & """")> </cfif> Basically, if the browser is safari, URLDecode the parameter value before placing it into the list.  Otherwise, don't. Seems to work. Rick

02/18/2006 08:00 PM
Author:
James Holmes

Can you post this on the CFAJAX list too? On 2/19/06, Rick Root <rick.root@webworksllc.com> wrote: > I blogged this just now: > http://www.opensourcecf.com/1/2006/02/Getting-CFAJAX-to-handle-Safari-properly. cfm -- CFAJAX docs and other useful articles: http://jr-holmes.coldfusionjournal.com/

02/18/2006 08:17 PM
Author:
Rick Root

I thought this *WAS* the cfajax list!  Is there a list somewhere devoted specifically to cfajax? Rick James Holmes wrote:

02/18/2006 08:24 PM
Author:
James Holmes

Hehe, yes there is a CFAJAX-specific yahoo group mailing list: http://groups.yahoo.com/group/cfajax/ This HOF list is for all ajax discussion. On 2/19/06, Rick Root <rick.root@webworksllc.com> wrote: > I thought this *WAS* the cfajax list!  Is there a list somewhere devoted > specifically to cfajax? > > Rick -- CFAJAX docs and other useful articles: http://jr-holmes.coldfusionjournal.com/

02/18/2006 08:40 PM
Author:
Rick Root

Sigh.  I *hate* yahoo groups. I wonder why he stopped using cfopen.... cfopen has mailing lists I think (and bug tracking and all that other good stuff!) I'll join the list and post it. Rick James Holmes wrote:

02/18/2006 08:57 PM
Author:
James Holmes

I'm not terribly fond of yahoo either. There is a google group for CFAJAX too, but it isn't official and the yahoo group is the one that gets all the traffic (which isn't high volume in any case). On 2/19/06, Rick Root <rick.root@webworksllc.com> wrote: > Sigh.  I *hate* yahoo groups. > > I wonder why he stopped using cfopen.... cfopen has mailing lists I > think (and bug tracking and all that other good stuff!) > > I'll join the list and post it. -- CFAJAX docs and other useful articles: http://jr-holmes.coldfusionjournal.com/


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists