|
|
Home /
Groups /
Ajax
CFAJAX and Safari
I blogged this just now:Rick Root 02/18/06 07:56 P Can you post this on the CFAJAX list too?James Holmes 02/18/06 08:00 P I thought this *WAS* the cfajax list! Is there a list somewhere devotedRick Root 02/18/06 08:17 P Hehe, yes there is a CFAJAX-specific yahoo group mailing list:James Holmes 02/18/06 08:24 P Sigh. I *hate* yahoo groups.Rick Root 02/18/06 08:40 P I'm not terribly fond of yahoo either. There is a google group forJames Holmes 02/18/06 08:57 P
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
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/
Author: Rick Root
I thought this *WAS* the cfajax list! Is there a list somewhere devoted specifically to cfajax? Rick James Holmes wrote:
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/
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:
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/
|
Mailing Lists
|
Latest Fusion Authority Articles
|
||||||