[HTML_AJAX-devel] encodeUrl

Joshua Eichorn josh at bluga.net
Tue Jul 18 20:35:54 PDT 2006


Arpad Ray wrote:
> Why do we have encodeUrl and decodeUrl in util.js when they both wrap 
> single functions with the same parameter? Is there a plan to replace 
> en/decodeURIComponent?
>
> Aside from the apparently redundant dependency, the method names are 
> confusingly similar to en/decodeURI, which behave very differently.
>
> Arpad
>
>
>
> _______________________________________________
> Html_ajax-devel mailing list
> Html_ajax-devel at lists.bluga.net
> http://lists.bluga.net/mailman/listinfo/html_ajax-devel
Two reasons,
1 the names of the functions and what they do are confusing and without 
something in HTML_AJAX will get it wrong (we have so far)
2 I don't trust that en/decodeURIComponent do everything we need them 
too on every browser

Name wise if you have a better idea post here and will get it updated.  
Taking time to pick clear method names is always a good thing.

-josh


More information about the Html_ajax-devel mailing list