[英]Which language should I use if I want to embed a simple app on a web page?
I'm thinking about setting up a website (based on WordPress) to host video tutorials on interpreting CT scans.我正在考虑建立一个网站(基于 WordPress)来托管有关解释 CT 扫描的视频教程。
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 (ie a scan).除了简单地让访问者查看 PowerPoint 演示视频之外,我还热衷于编写一些可以嵌入博客的简单应用程序,以允许访问者滚动浏览一系列图像(即扫描)。
I usually code in REALbasic or Objective-C.我通常使用 REALbasic 或 Objective-C 进行编码。 I have some experience with PHP.
我对 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.
该网站需要能够在 iPad 以及普通桌面浏览器上查看。
Javascript. Javascript。
Pick up jQuery , or a similar Javascript framework.选择jQuery或类似的 Javascript 框架。 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.
因此,您的选择与插件(例如 Flash)或 Javascript 有关。 If you want it to work on an iPad, Flash and other plugins are out.
如果你想让它在 iPad、Flash 和其他插件上工作。
Since you need your image viewer to work on the iPad, ActionScript3, hence, Flash is out of the picture.由于您需要图像查看器来处理 iPad、ActionScript3,因此 Flash 不适用。 I would use JavaScript as per the examples on the Apple HTML5 advocacy site, using the canvas element to render the viewer.
根据 Apple HTML5 宣传网站上的示例,我将使用 JavaScript,使用 canvas 元素呈现查看器。
I would lean towards a javascript solution.我倾向于 javascript 解决方案。 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.
此外,您可以多次使用 html5,但这又取决于您到底想要做什么。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.