Friday, June 6, 2014

Re: In order to make the url bookmarkable, sometimes we need long parameters but IE max url length is only about 2000, How to deal with it?

On Friday, June 6, 2014 5:19:26 AM UTC-5, stuckagain wrote:
It looks to me that you need to store this as a preference in the database for that particular screen instead of jamming it in the URL.
You could put it in a cookie if you don't want to put it in the database.

I'm assuming that you've got a ton of checkboxes since you're hitting a URL size limit trying to track what's selected or not - cookies may not work for this either due to their size restrictions. 

However, you should be able to implement this pretty simply using a click or change handler and just logging the selections to a localStorage key.  We do something similar by just logging the form control's name and it's state to a simple javascript object and then serializing that object via json into localStorage.  Pull the object back out, deserialize it, and reset your form state on page load.

Should work in all browsers too.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment