Well, that's because { and } should be encoded when in an URL and that's 
what build URL does for you.  However, I see you're using the { and } as 
placeholders -- you could just do away with them (I assume you're 
replacing the {product_id} using JS replace / regex / etc.) or use a 
different character like _-_product_id_-_ which wouldn't cause the "_" 
to be URL encoded.

 Best,
.Peter

Jorge Loyo said the following on 10/08/2009 12:57 PM:
> As a temp solution this is what I am doing to create my URLs.
>
> <cfinput name="editUrl" type="hidden" bind="#URLDecode(BuildUrl
> (event.getArg('xe.edit'),'id={product_id}'))#" />
>
> I was reading this from the docs under "WhatsNewInMachII1.8":
>
> "Added buildUnescapedUrl() and buildUnescapedUrlToModule() to
> ViewContext to be used with javascript"
>
> I don't know how these methods should work, but I keep having to use
> URLDecode() around my BuildUrl() to achieve what I need...
>
> Otherwise my urls look like: "/index.cfm/i/editProduct/id/%7Bproduct
> %5Fid%7D/"
>
> Instead of: "/index.cfm/i/editProduct/id/{product_id}/"
>
> Any ideas?
> >
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to Mach-II for CFML list.
To post to this group, send email to mach-ii-for-coldfusion@googlegroups.com
To unsubscribe from this group, send email to 
mach-ii-for-coldfusion-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/
Wiki / Documentation / Tickets: 
http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/
-~----------~----~----~----~------~----~------~--~---

Reply via email to