Changes between Initial Version and Version 1 of Ticket #10319


Ignore:
Timestamp:
Nov 12, 2009, 6:19:28 PM (12 years ago)
Author:
James Burke
Comment:

The above example decodes the same across browsers, to a string (the string looks like it has an encodeURIComponent done on the whole thing).

The problem is probably how you get the value you are sending to dojo.formToObject. As the dojo.back code shows, where you read the value from can mean that you need to decodeURIComponent before sending to dojo.objectToQuery. But dojo.objectToQuery by itself does no browser-dependent work. It uses decodeURIComponent under the hood for each piece in the chain, but that performs the same across browsers.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10319

    • Property Status changed from new to closed
    • Property Resolution changed from to invalid
  • Ticket #10319 – Description

    initial v1  
    11The following call returns an object with two entries under FF and Chrome, not in IE 8.
    22
    3 dojo.queryToObject(search%3D%252Fcarta%252Fsearch.json%253Ffulltext%253Da%2526owner%253D%2526lastModificationAuthor%253D%2526tags%253D%2526createdSince%253D2009-11-01%2526updatedSince%253D%2526typeOfFile%253D%26ui%3DheaderType%253Dsearch%2526headerTitle%253DSearch%252520Results)
     3{{{
     4dojo.queryToObject("search%3D%252Fcarta%252Fsearch.json%253Ffulltext%253Da%2526owner%253D%2526lastModificationAuthor%253D%2526tags%253D%2526createdSince%253D2009-11-01%2526updatedSince%253D%2526typeOfFile%253D%26ui%3DheaderType%253Dsearch%2526headerTitle%253DSearch%252520Results");
     5}}}
    46
    57I discovered this issue while using dojo.back() to handle bookmarks and back/forward buttons. So I am serializing plenty of things inside location.hash, ending up with a "querystring containing querystrings"