开发者

Will jQuery work on a CD distribuited "website"?

Sadly I have to make a website (so to speak website) that can be placed on a CD. My question is, can I use JavaScript and jQuery?

Some of the 开发者_开发知识库people who get the CD might have IE6 on Win XP installed.

Thank you.


Yes. jQuery explicitly supports IE6, and IE6 supports JavaScript (it would have to, otherwise jQuery couldn't support it) although it has some bugs.


You can put a website on to CD, and javascript/jquery should work fine. But beware that you'll only be able to have static resources: that is every request must be for a physical asset that exists on the CD. I.e you wont be able to have pages rendered dynamically in response to a request, and I'm pretty sure that you won't be able to make ajax requests too.


I had experience of making such a thing. It was a catalog of goods. So I grab all data and converted it to JSON. The catalog itself was only one page which show the goods using JS and client-side templating, doing some sorting and search. The biggest problem with using this catalog was that fact that reading much of small files from CD is really slow. So it was necessary to use as much CSS-sprites as possible instead of regular set of good's photos.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜