我们有一天能够拥有一个这样的网站吗? [英] Would we one day be able to have a website like that ?

查看:138
本文介绍了我们有一天能够拥有一个这样的网站吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个问题,我在google上找不到任何答案.我知道这不是编程问题,但我真的很想知道它的答案.我的问题是,可以完全使用ajax来完成网站吗?不再重新加载网络上的页面了吗?

预先感谢您的帮助.

Hi guys ,

I have a question that i did not find any answer about it on google.I know that this is not a programming question but i really want to know its answer.My question is that could a website be done completely using ajax,which means that no reloading for pages on the web anymore ?

Thanks in advance for any help .

推荐答案

OP写道:

我的问题是可以完全使用ajax完成网站吗?这意味着不再需要重新加载网络上的页面了吗?

My question is that could a website be done completely using ajax,which means that no reloading for pages on the web anymore ?


可以的.棘手的事情.....

Ajaxed WordPress [ Ajax(编程) [使用AJAX的十大优点 [ Ajax编程缺点 [ AJAX的优点和缺点 [ ASP.NET AJAX控制工具包 [ Ajax教程:Ajax帮助和教程 [ ^ ]

Ajax博客 [ ^ ]


Yes possible. Tricky things.....

Ajaxed WordPress[^] - Check this page which has similar feature

BTW Check this bunch.

Ajax (programming)[^]

Ten Advantages of Using AJAX[^]

Ajax Programming Drawbacks[^]

Advantages and Disadvantages of AJAX[^]

ASP.NET AJAX Control Toolkit[^]

Ajax Tutorial : Ajax Help and Tutorials[^]

Ajax Blog[^]


在所有情况下,不再"都是夸大其词,使整个主题变得毫无意义.
首先加载页面的内容是什么?要应用Ajax,您需要加载一些包含Ajax调用的页面.

不要高估Ajax的价值.这只是围绕HTTP非常局限性的一种解决方法.

—SA
In all cases, "no longer" is exaggeration which render the whole topic meaningless.
What would load the page in first place? To apply Ajax, you need some loaded page which contains an Ajax call.

Don''t overestimate the value of Ajax. This is just a work around very limiting nature of HTTP.

—SA


由于其动态特性,与静态页面相比,Ajax接口通常更难开发.使用AJAX接口可以增加对Web服务器和数据库的请求量.这最终将导致响应时间和超时变慢.要解决此问题,我们可以将对Web服务器的请求数量减至最少,而您无法做到这一点,那么唯一的选择就是升级硬件以支持不断增长的请求数量. >
-如果您使用连续的Ajax请求创建了页面,则您会发现,当用户尝试使用后退"按钮时,它不会重定向到上一页.发生这种情况的原因是,AJAX请求不会自动将自身注册到浏览器的历史记录中.因此,您可以使用iframe更改浏览器的历史记录,以更改URL的锚点部分.

-如果您希望搜寻器搜寻您的网站,那么您将需要一种替代方法来访问您的网站,因为许多网络搜寻器无法执行JavaScript.

-用户发现的另一个问题是,每当他们尝试为页面的一部分添加书签时;当您将其添加为书签后,如果您尝试返回至该页面,则该页面将不会转到该确切页面,而是会将您带到首页.在这里,您可以使用URL片段标识符来跟踪用户尝试查看的页面.

-智能手机通常没有启用Javascript的浏览器;因此这些用户将无法浏览您的网站.解决此问题的唯一方法是使用非JavaScript方法访问您的网站.

-由于发送到Web服务器的请求数量很大,因此它可能会为您的网站造成安全问题.尽管这是最容易解决的问题之一,但是在网站的开发阶段需要花费大量时间.确保没有人试图使用SQL注入或duffer溢出攻击.
Due to its dynamic nature, Ajax interfaces are often harder to develop when compared to static pages. The use of AJAX interfaces can increase the amount of requests to web servers and the database. This will ultimately lead to slow response times and timeouts. To get rid of this problem we can possibly reduce the amount of requests to the web server to the minimum, and you are not able to do that then the only option is to upgrade your hardware to support the increasing amount of requests.

- If you have pages created with successive Ajax requests you will find that when the user tries to use the back button it does not redirect to the previous page. The reason why this happens is because AJAX requests do not automatically register themselves with the browser’s history. So you can use iframes to make changes in the browser’s history to change anchor portions of the URL.

- If you want the crawlers to crawl your website then you will need an alternative way to access your site because many web crawlers cannot execute JavaScript.

- Another problem that users find is that whenever they try to bookmark a part of a page; and when you have bookmarked it and if you try to go back to it, it will not take to that exact page rather will take you to the homepage. Here you can use a URL fragment identifier to keep a track of the pages the user tries to view.

- Smartphones generally do not have Javascript enabled browsers; so these users will not be able to surf your website. The only solution for this problem is to use non-JavaScript ways to access your site.

- Due to the high number of requests sent to the web server, it can create security problems for your website. Though this is one of the easiest problems to solve but it takes a lot of time in the development stage of the website. Make sure that someone is not trying to use SQL injection or a duffer overrun attack.


这篇关于我们有一天能够拥有一个这样的网站吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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