gardr/host — pull request #3 by gregersrygg (2014-04-14 08:57:11+00:00)
Title: Send params as URL-encoded JSON in the URL fragment by default. Use ifra...

...me.name as fallback when URL is too long.

Using iframe.name to pass data works well on the web, but not from apps. They use WebViews instead of iframes, and it's hard or not possible to define the name variable synchronously from the app-code. URLs are easier to debug both for apps and web, but using query-parameters are limiting if we want a “scope” for each plugin to pass parameters to the ext frame. So using a JSON in the URL is the best of both, but IE has a max URL-length of 2083 characters, so on the web we should fallback to using iframe.name if the URL-length is too long.