Q
Q
q0p2010-11-02 17:15:43
Design
q0p, 2010-11-02 17:15:43

Does ajax support the ability to load elements in order to display them later?

Does ajax support the ability to load elements in order to display them later?
Can you download what you don't need?
I ask all this taking into account the fact that the page itself should not be updated in the browser, but that the content changes.
Is there a problem of indexing such pages by search engines? Otherwise, I don’t understand why news sites still keep news on different pages, if you can set up a transition to the list of news and switching to other news using ajax. Or is it just because it will show fewer banners and the site's view statistics will look more meager?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
ertaquo, 2010-11-02
@ertaquo

Ajax is just a technology for asynchronous requests. They can load elements at any time, displaying them or saving data to some variables for further display or processing. You can unload the unnecessary by simply removing this unnecessary from the DOM tree. For both loading and unloading, I advise you to use the jQuery library , as the simplest.
When using background loading of page elements through Ajax, search engines index only the code of the main page, so you cannot rely on Ajax alone. Usually they do it like this: <a href="/page_1" onclick="load('ajax_page_1'); return false"> In this way, with a simple click on the link, load('ajax_page_1') will be called, but if javascript is turned off or they want to open the link in new tab, it will navigate to /page_1. And of course, this method eliminates problems with search engines.

S
shsmad, 2010-11-02
@shsmad

ability to load items
Yes
Can you download what you don't need?
ajax? if you remove elements from the dom - jquery yes.
Is there a problem of indexing such pages by search engines?
Yes
why news sites still keep news on different pages
and you can also keep them on different ones for search engines, and on the pages themselves, intercept clicks and load them with Ajax
banners will be shown less
you can also upload new banners with new content ...

A
Alexey Ashurok, 2010-11-02
@AotD

ajax is the same javascript that search engines don't like.
Therefore, if you make the site pro-Ajax, you need to take care that those who have javascript disabled have the same functionality (those individual pages, links to which, if the user has javascript enabled, are replaced with a call to the same ajaxin).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question