如果我想在网页上嵌入一个简单的应用程序,我应该使用哪种语言?
我正在考虑建立一个网站(基于 WordPress)来托管有关解释 CT 扫描的视频教程。
除了简单地让访问者观看 PowerPoint 演示视频之外,我还热衷于编写某种简单的应用程序,可以将其嵌入博客中,以允许访问者滚动浏览一系列图像(即扫描)。
我通常使用 REALbasic 或 Objective-C 进行编码。我有一些 PHP 经验。在博客中制作交互式嵌入式图像查看器有哪些语言选项?该网站需要能够在 iPad 和普通桌面浏览器上查看。
I'm thinking about setting up a website (based on WordPress) to host video tutorials on interpreting CT scans.
In addition to simply letting the visitor view PowerPoint presentation videos, I'm keen on writing some sort of simple app that I can embed in the blog to allow the visitor to scroll through a series of images (i.e. a scan).
I usually code in REALbasic or Objective-C. I have some experience with PHP. What are my language options for making an interactive embeddable image viewer in a blog? The website needs to be able to be viewed on an iPad as well as normal desktop browsers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
JavaScript。
选择 jQuery 或类似的 Javascript 框架。它将帮助您更快地开始工作。
您所问的与服务器端编码无关。这都是客户端的。因此,您的选择与插件(例如 Flash)或 Javascript 有关。如果你想让它在 iPad 上运行,Flash 和其他插件就不再适用了。
Javascript.
Pick up jQuery, or a similar Javascript framework. It will help you get down to business faster.
What you are asking has nothing to do with server-side coding. It is all client-side. Because of that, your choices are something to do with a plugin (such as Flash), or Javascript. If you want it to work on an iPad, Flash and other plugins are out.
由于您需要图像查看器在 iPad、ActionScript3 上运行,因此 Flash 不适用。我将按照 Apple HTML5 倡导网站上的示例使用 JavaScript,使用 canvas 元素来呈现查看器。
Since you need your image viewer to work on the iPad, ActionScript3, hence, Flash is out of the picture. I would use JavaScript as per the examples on the Apple HTML5 advocacy site, using the canvas element to render the viewer.
我倾向于使用 javascript 解决方案。有大量的库可以为您提供帮助。如果您知道您正在考虑做什么的一些示例,我们可以为您提供服务器端语言与客户端语言的优缺点。此外,您可以大量使用 html5,但这又取决于您到底想做什么。
I would lean towards a javascript solution. There are loads of libraries out there that will give you a kickstart. If you know some example works of what you are thinking about doing, we can give you pros and cons for serverside vs. client side languages. Additionally, you can use html5 for a lot, but then again it depends on what exactly you are wanting to do.