DHTML库,用于使用AJAX处理图片和视频 [英] DHTML library for handling pictures and videos using AJAX

查看:123
本文介绍了DHTML库,用于使用AJAX处理图片和视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是基于我的完整问题。我决定分一部分进行研究,看看是否仍然无法获得任何帮助。

This is based on my full question. I decided to take it in parts and see if I still can't get any help.

我们为客户提供的所有选择有哪些?边框架?

What are all the options we've got for client-side frameworks?

我主要听说过 prototype jquery ,但是我知道太多除了这两个选项,我不知道它们是否可以处理异步下载。

I've heard mostly about prototype and jquery, but I know there are way too many options out there beyond those two, and I don't know if they handle async download.

在所有这两个选项中,最快的都是DHTML(界面) )和AJAX(下载)?与其他相比,它有什么优势?

From all of them which one is the fastest, both on the DHTML (interface) and the AJAX (download)? What are the advantages it has over the others?

推荐答案

您想做什么?

DHTML 是动态HTML-它使您能够在运行时在浏览器中显示页面时动态设置HTML元素的属性。 。脚本可以更改 div 的内容,< img> 标记的src,

DHTML is Dynamic HTML - which gives you the ability to set properties of HTML elements dynamically, at runtime while the page is displayed in a browser. A script can change the content of a div, the src of an <img> tag, the style of a paragraph.

AJAX 是异步Javascript和XML,最初是用一个术语来描述使用浏览器中运行的Javascript来实现的。异步下载XML格式的数据,然后在浏览器网页的执行上下文中处理该数据。例如,更新表。术语 Ajax现在已经扩展了其含义,以涵盖将任何形式的数据(不仅仅是XML)异步下载到浏览器中。通常,网络应用程序会以json格式,csv,html或...的格式下载数据。 AJAX与图形框架几乎没有关系。它可以作为一项补充技术。例如,您可以通过AJAX下载一组URL或一组图像属性。

AJAX is Asynchronous Javascript and XML, and as a term was initially coined to describe the practice of using Javascript running in the browser to asynchronously download data formatted in XML, and then do stuff with that data in the execution context of the browser's web page. For example, update a table. The term "Ajax" has now expanded its meaning to encompass the async download of data of any form, not just XML, into the browser. Very often web apps will download data in json format, or csv, or html, or... ? AJAX has very little to do with "graphical frameworks". It can act as a complementary technology. For example, you could download a set of URLs, or a set of image properties, via AJAX.

jQuery 是一个JavaScript函数库,它使跨浏览器环境中执行 DHTML类型的操作变得更加容易。

jQuery is a library of javascript functions that makes it easier to do "DHTML" -type things in a cross-browser environment.

您问,处理图像最快的是什么?,但是您还没有描述您真正追求的是什么,处理图像的确切含义。无论如何,我认为答案是mu ,因为#1,这些东西是独立的图形框架和#2,它们不容易比较。您要比较苹果,锤子和音乐。

You asked, which is fastest for dealing with images?, but you haven't described what you're really after, what exactly "dealing with images" means. Regardless, I think the answer is mu, because #1, these things are independent of graphical frameworks, and #2, they are not easily comparable. You are asking for a comparison between apples, hammers, and music.

但是,也许您并不是真正在问图形框架。您的问题的标题似乎与您发布的文字完全无关-它表明您要下载并缓存一些图片。如果您要这样做,则可以通过DHTML或jQuery完成。任何现代浏览器都会自动为您缓存这些图像;您不需要做任何特别的事情。但是在所有情况下,您都将依靠浏览器的通信基础结构进行下载,因此不会有速度差异。它们将以浏览器和网络允许的速度下载。

But, maybe you're not really asking about graphical frameworks. The title of your question seems to be completely unrelated to the text you've posted - it suggests you want to download and cache a few images. If that's what you're after, you can do that via DHTML or jQuery. Any modern browser will automatically cache these images for you; you don't need to do anything special. But in all cases you'll be relying on the browser's communication infrastructure to do the download, and so there will be no speed differential. They will download as fast as the browser and the network allows.

附录

我认为您对速度的关注可能放错了位置。你到底想干什么现在现在是速度问题吗?似乎您才刚刚开始。似乎您真正想要的是更好地了解环境,找出可能的方法,而不是快速的方法。

Addendum
I think maybe your focus on speed is misplaced. What do you really want to do? Is speed a problem now? Seems like you are just getting started. Seems like what you really want is to learn the landscape a little better, figure out what is possible, rather than what is fast.

要在浏览器中播放视频,请查看 flowplayer -可以使用javascript / jQuery编写脚本的Flash视频播放器。

For playing videos in a browser, check out flowplayer - a flash video player that can be scripted with javascript/jQuery.

这篇关于DHTML库,用于使用AJAX处理图片和视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆