简体   繁体   English

如果我想在 web 页面上嵌入一个简单的应用程序,我应该使用哪种语言?

[英]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.

相关问题 我应该使用哪种语言进行Web项目的人工智能 - Which language should I use for Artificial intelligence on web projects 作为初学者,我应该使用哪种语言进行后端Web开发? Python或PHP [保留中] - Which language should I use for backend web development as a beginner ? Python or PHP [on hold] 我应该为JavaScript客户端的TCP服务器使用哪种编程语言? - Which programming language should I use for TCP server for JavaScript clients? 我应该使用Javascript还是PHP设置全局变量来唯一标识Web应用程序中的每个页面 - Should I use Javascript or PHP to set a global variable to uniquely identify each page in a web app 如果在网页中使用PHP,是否应该修改DTD? - Should I modify my DTD if I use PHP in a web page? 在哪种情况下应该使用!=或!==? - In which case should I use != or !==? 我应该使用哪一个? - Which one should I use? 如果要使用本机代码在Web应用程序中进行分析,该怎么办? - If I want to use native code to analysis in a web application, what should I do? 如何在我的Web应用程序中跨PHP,JS和模板文件添加多语言支持? - How should I add multi language support to my web app across PHP, JS and Template Files? 我想在 php 登陆页面中嵌入 url 的视频 - I want to embed video by url in php landing page
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM