style513 / reallysimplehistory

Automatically exported from code.google.com/p/reallysimplehistory
Other
0 stars 0 forks source link

new encoded location hash not pretty #53

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
is it necessary to encode the location hash? i'm sure many ppl would like
to show "pretty" restful urls (ex. http://mysite.com/#/items/show/1). 

Original issue reported on code.google.com by bch...@gmail.com on 3 Mar 2008 at 12:16

GoogleCodeExporter commented 8 years ago
I encountered the same escaped URLs when using the SVN trunk (0.8) code, as the 
trunk
now uses encodeURIComponent() before setting the hash property.

It's worth noting that we went with RSH, instead of our standard YUI core which 
also
has a browser history module, for no other reason than RSH wasn't escaped and 
the
URLs made sense to users.  

I can't imagine what the cnn.com video paths would like like encoded.  It's
unintuitive, especially when sending the URL to somebody.

Since you're adding a URL location, it makes sense that the application has 
already
handled escaping it.

At the very least, please add an option.

Thanks.

Original comment by adrian.t...@gmail.com on 21 Jul 2009 at 7:46

GoogleCodeExporter commented 8 years ago
RSH is not working for my Ajax enabled ASP.NET application. In my application i 
have 
used more update panels for asynchronous post back. If the control does not 
trigger 
any asynchronous post back, that time RSH doesn't get the history storage..
For example my page having 5 dropdownlist with out asynchronous post back. And 
also 
having Datagrid control to show search result. This Grid is inside the update 
panel 
with search button has asynchronous post back to this update panel. 

When I used RSH framework in this page all 5 dropdownlist has filled with 
previous 
data during the back button operation. But Datagrid not getting loaded at this 
time. 
Please any one help me on this issue. refer my code as follows

 <script type="text/javascript" src="Scripts/json2007.js"></script>
    <script type="text/javascript" src="Scripts/rsh.js"></script>

    <script type="text/javascript" language="javascript">
    delete Object.prototype.toJSONString;
    //alert(Object.prototype.toJSONString);
    //debugger;
    window.dhtmlHistory.create();

    var yourListener = function(newLocation, historyData) 
    {
        alert('inside listener');
    }

    window.onload = function() {
        dhtmlHistory.initialize();
        dhtmlHistory.addListener(yourListener);
    };

    </script>

<body>
<form id="frmLeadDesignate" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
            <Scripts>
                <asp:ScriptReference Path="Scripts/json2007.js" />
            </Scripts>
        </asp:ScriptManager>
</form>
</body>

Original comment by ponkumar...@gmail.com on 23 Jul 2009 at 2:59