Claude Schneegans wrote:
>  >>Turns out the problem is that I have to URLEncoded *AFTER* doing the
> JSStringFormat.  And both are required.
> 
> Depends what you mean by before and after ;-)
> 
> In the sample you gave:
> 
> #JSStringFormat(URLEncodedFormat(encrypt("UDVBIE","(my key)")))#
> 
> URLEncodedFormat is called *BEFORE* and JSStringFormat *AFTER*
> This is the way it should be, so that javascript:didetail() will receive
> a correct JS string first, then transmit a correct URL string after.
> 
> If you do the contrary, I doubt it will always work.

You are suggesting that it will always work if I call URLEncodedFormat 
*FIRST* and then JSStringFormat SECOND - as in the sample above?

that's simply not correct, because I tested that.  Whenever possible, I 
always test my code before posting solution to mailing lists, lest I 
post incorrect solutions =)

See here:

http://www.it.dev.duke.edu/test_cftalk.cfm

In fact, it NEVER works with URLEncodedFormat being process BEFORE the 
JSStringFormat.  I tried 10 different strings, and they all failed to 
work that way...

Rick

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:229925
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to