dreamy1992 2012-03-09 16:36
浏览 67
已采纳

使用iPad作为界面来更改外部显示器的内容

I am not sure the scope of this project exactly, I'm hoping someone here might have prior experience with this.

I have a project which is to develop a mobile site which will serve as a framework to display content. the 'app' will be a simple list, and when an item is selected, the frame would disappear and pull up the selected content. The display would be extended across the iPad an another separate monitor.

I would have no issues creating something that functioned in this way, however..

I was wondering if there were any way to keep the iPad's interface static (the frame does not disappear and the list content does not display on the iPad), and changing the the current active site on the larger display?

I have intermediate experience with server side languages such as PHP and Ruby, and know my way around javascript (especially ajax calls). I do not however know how to approach this concept. Is this even possible? I would appreciate any feedback or discussion. I am sorry if this question seems more open ended than simple.

  • 写回答

1条回答 默认 最新

  • dongqin6926 2012-03-12 23:13
    关注

    Server-Sent Events were the key to success in this situation.

    http://www.html5rocks.com/en/tutorials/eventsource/basics/

    I have a script running on the external display (site.com/container), and an AJAX call running on the remote (site.com/remote).

    When the user selects an item on the iPad graphically, the Ajax call stores the value in a file. The contents of this file are then sent via the SSE data format (at a set retry interval) and interpreted back on the external display (site.com/container).

    this is not quite as perfect as the 'detect on event' that I would have hoped for, but as far as functionality goes, it certainly seems to work. Hopefully I can improve upon the steps I'm taking and make make the whole thing more concise.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看