I've been using Prototype's String.toQueryParams (http://www.prototypejs.org/api/string/toQueryParams) for quite some time. You pass a query string and it returns an object.
Now I know we all have Ext.urlEncode, which effectively does the opposite, pass and object, returns a string. Is there anything in Ext which currently does the reverse of this, like Prototype's func?
Now I know we all have Ext.urlEncode, which effectively does the opposite, pass and object, returns a string. Is there anything in Ext which currently does the reverse of this, like Prototype's func?

|
#2
|
|
There isn't a function for it in Ext. Personally, I have never needed it. What are you using it for?
![]() |
|
#3
|
|
I'm storing some values in querystring format in the hash string of the url, this allows for some quick and easy browser history abstraction for ajax applications that don't change the url. Simply monitor changes in the url's hashstring and parse it accordingly, this also makes handling bookmarking/favorites easily.
![]() |
|
#4
|
|
Have you ever checked out the YUI History stuff? It uses the same type of history abstraction I'm currently in the process of implementing using Ext.
http://developer.yahoo.com/yui/examp...bar/index.html ![]() |
本文探讨了使用URL哈希字符串存储查询参数的方法,这种方法能够帮助实现AJAX应用中的浏览器历史记录管理,使得应用程序能够在不刷新页面的情况下更新浏览器地址栏,并支持书签和收藏夹功能。

被折叠的 条评论
为什么被折叠?



