drugis / mcda-elicitation-web

HTML/JavaScript GUI for MCDA preference elicitation
GNU General Public License v3.0
2 stars 13 forks source link

Represent within-task state in URL #27

Closed gertvv closed 9 years ago

gertvv commented 11 years ago

Within-task state should be serialized to the URL so that the back-button doesn't break and users can link to specific steps.

joelkuiper commented 11 years ago

The common way of doing seems to be serializing to json, compressing (and then possibly encoding in base64). See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Base64_encoding_and_decoding and https://github.com/pieroxy/lz-string/

joelkuiper commented 11 years ago

better than reinventing the wheel http://api.jquery.com/jQuery.param/

gertvv commented 9 years ago

Why did you close this?

joelkuiper commented 9 years ago

It was a bit of an effort/worth trade-off. If we truly want this we need to pass the entire state as a query param (and somehow merge this with remote and local storage and the hidden state in the wizard steps). This would mean major rewrites of the application for a rather obscure feature.

On Thu, Jan 22, 2015 at 1:58 PM, Gert van Valkenhoef < notifications@github.com> wrote:

Why did you close this?

— Reply to this email directly or view it on GitHub https://github.com/drugis/mcda-elicitation-web/issues/27#issuecomment-71016477 .

www.joelkuiper.eu