English 中文(简体)
网络支持三星电视浏览器的当地储存
原标题:Webkit support for local storage on Samsung TV browser

I m 向三星智能电视传送基于超声波的信号。 这些仪器使用当地储存来保持偏好等。 当地储存似乎得到支持,数据在浏览器开放时具有持久性。 但是,一旦浏览器退出......poof! 数据已经输入。 其他数据,如会议和厨师,确实存在。

I use the Lawn Chairperson Library in the app and have also test using jStorage。 这两者都不在关闭浏览器之后继续。

电视上的浏览器(或浏览器部件)是534.7的网基。 从与浏览器玩 playing起,我怀疑实际上是在Adobe Air写的。

我还测试了我个人电脑上的空气浏览器部件,该部件是建立533.19.4的网基。 这似乎根本不支持当地储存。

我的PC, 建造535.19顶网基,在我的所有测试中都做精细。

因此,这里的责难点是什么:它是否建网、在Adobe Air或电视上安装网基? 任何人能否提出固定办法或建议,以围绕工作进行工作?

感谢。

最佳回答

不幸的是,我没有2012年模式,因此,如果“超5”当地施压者正在工作或不工作,我可以检查。

But I have workaround for you which will be backward compatible with previous TV sets models also, as 2010 and 2011 models use Maple browser: http://www.samsungdforum.com/Guide/View/Developer_Documentation/Samsung_SmartTV_Developer_Documentation_3.1/API_Reference/JavaScript_APIs/File_API

  1. Serialize your data object
  2. Save it using File API to application directory
  3. And every time you open the app open this file and unserialize data.

This will work for sure!

问题回答

1- you an use file api 2- you can set a cookie

I was once trying to save preferences of my app and using cookies seemed easier. I don t know much about html5 but in TV s you should check which features allowed. Most of the smart tv s are giving partial support to html5.





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签