why is only 0 and -1 document

455919946

Client
Регистрация
31.12.2013
Сообщения
104
Благодарностей
4
Баллы
18
i open some websie such as http://www.baidu.com/s?wd=document or http://www.sharonbridals.es/,why is only 0 and -1 document ,now I understand -1 means through all documents,why i can set 0 not 1,I do not understand concept of documents,I think there is only 1 documents[ in one page,why you say You set 1) number of document on the page. some pages have several of them,give me a example (there are several document on one page)

uu.jpg
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
You need to learn about DOM. Consider a webpage as a document. There may be more than one address(area or section) on a webpage which are tagged by an opening arrow(tag) and dashes, the document address and then a closing tag. Your search above doesn't show the webpage, just a search of a website and the documents on it. Open up the page text button in the recorder and look and you will see the document address of the DOM on the page. I have gone to a drupal site, which are notorious for having multiple document addresses on the same webpage so you can see what we are talking about.

Quit worrying about these specifics. Set the doc address to -1 and the form to -1 and it will search the whole page. The screenshots below are of the same webpage. Notice the two document addresses of 0 and 0;0.

This is the webpage:
Код:
http://www.acquia.com/
0-0 DocAddy.png

0-DocAddy.png

There is NO -1 document address. -1 tells zenno to look at ALL documents on the page.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)