|
|
|
проверка фокуса ввода
|
|||
|---|---|---|---|
|
#18+
Добрый день! Мне нужно узнать, имеет ли фокус ввода элемент Код: plaintext Код: plaintext Код: plaintext Код: plaintext Не подскажете, какие существуют функции/свойства для объектов, которые осуществляют эти проверки? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.08.2007, 12:23 |
|
||
|
проверка фокуса ввода
|
|||
|---|---|---|---|
|
#18+
324f4Добрый день! Мне нужно узнать, имеет ли фокус ввода элемент Код: plaintext Ответ тут http://www.sql.ru/forum/actualthread.aspx?tid=459157 324f4Не подскажете, какие существуют функции/свойства для объектов, которые осуществляют эти проверки? Про какие имено объекты идет речь? Про INPUT и SELECT? Или про метод getElementById объекта document? У Методов нет ни свойств, ни методов (темболее функций)... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.08.2007, 13:04 |
|
||
|
проверка фокуса ввода
|
|||
|---|---|---|---|
|
#18+
krvsa 324f4Добрый день! Мне нужно узнать, имеет ли фокус ввода элемент Код: plaintext Ответ тут http://www.sql.ru/forum/actualthread.aspx?tid=459157 324f4Не подскажете, какие существуют функции/свойства для объектов, которые осуществляют эти проверки? Про какие имено объекты идет речь? Про INPUT и SELECT? Или про метод getElementById объекта document? У Методов нет ни свойств, ни методов (темболее функций)... Спасибо, сейчас посмотрим ссылку) Речь идет про объекты TEXTS и SELECTION ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.08.2007, 13:12 |
|
||
|
проверка фокуса ввода
|
|||
|---|---|---|---|
|
#18+
А какие проверки ты хочеш выполнить? ---------- Cache for Windows NT (Intel) 5.0.20 (Build 6305) Fri Sep 16 2005 11:54:10 EDT ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.08.2007, 13:15 |
|
||
|
проверка фокуса ввода
|
|||
|---|---|---|---|
|
#18+
Вот например методы для <input type='text'> документацияAllAttributesPropertiesMethodsEventsCollectionsBehaviors Description addBehavior Attaches a behavior to an <INPUT>. appendChild Appends an element as a child to the <INPUT>. applyElement Makes the <INPUT> either a child or parent of the <INPUT>. attachEvent Binds the specified function to an event that fires on the <INPUT> when the function is called. blur Causes an object to lose focus, and fires the onblur event. clearAttributes Removes all attributes and values from the <INPUT>. click Simulates a click by causing the onclick event to fire. cloneNode Copies a reference to the <INPUT> from the document hierarchy. componentFromPoint Returns the component located at the specified coordinates. contains Checks whether the given element is contained within the <INPUT>. createTextRange Creates a TextRange object for the given object. detachEvent Unbinds the specified function from the event, so that the function stops receiving notifications when the event fires on the <INPUT>. dragDrop Initiates a drag event. fireEvent Fires a specified event on the <INPUT>. focus Causes a control to receive the focus, and executes the code specified by the onfocus event. getAdjacentText Returns the adjacent text character. getAttribute Retrieves the value of the specified attribute. getBoundingClientRect Retrieves an object specifying the bounds of a collection of TextRectangle objects. getClientRects Retrieves a collection of rectangles that describes the layout of the contents of an object or range within the client. Each rectangle describes a single line. getExpression Retrieves the expression for the given property. hasChildNodes Returns whether the <INPUT> has children. insertAdjacentElement Inserts an element at the specified location. insertAdjacentHTML Inserts the given HTML text into the element at the location. insertAdjacentText Inserts the given text into the element at the specified location. insertBefore Inserts an element into the document hierarchy. mergeAttributes Copies all read/write attributes to the specified element. releaseCapture Removes mouse capture from the <INPUT> in the current document. removeAttribute Removes the given attribute from the <INPUT>. removeBehavior Detaches a behavior from the <INPUT>. removeChild Removes a child node from an element. removeExpression Removes the expression from the specified property. removeNode Removes the <INPUT> from the document hierarchy. replaceAdjacentText Replaces the adjacent text character. replaceChild Replaces an existing child element with a new child element. replaceNode Replaces the <INPUT> with another element. scrollIntoView Causes the <INPUT> to scroll into view, aligning it either at the top or bottom of the window. select Highlights the input area of a form element. setActive Sets the <INPUT> as the current object without setting focus to the object. setAttribute Sets the value of the specified attribute. setCapture Sets the mouse capture to the <INPUT> belonging to the current document. setExpression Sets an expression for the specified object. swapNode Exchanges the location of two objects in the document hierarchy. ---------- Cache for Windows NT (Intel) 5.0.20 (Build 6305) Fri Sep 16 2005 11:54:10 EDT ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.08.2007, 13:18 |
|
||
|
проверка фокуса ввода
|
|||
|---|---|---|---|
|
#18+
Вот методы <select> документацияAllAttributesPropertiesMethodsEventsCollectionsBehaviors Description addBehavior Attaches a behavior to an <SELECT>. appendChild Appends an element as a child to the <SELECT>. applyElement Makes the <SELECT> either a child or parent of the <SELECT>. attachEvent Binds the specified function to an event that fires on the <SELECT> when the function is called. blur Causes an object to lose focus, and fires the onblur event. clearAttributes Removes all attributes and values from the <SELECT>. click Simulates a click by causing the onclick event to fire. cloneNode Copies a reference to the <SELECT> from the document hierarchy. componentFromPoint Returns the component located at the specified coordinates. contains Checks whether the given element is contained within the <SELECT>. detachEvent Unbinds the specified function from the event, so that the function stops receiving notifications when the event fires on the <SELECT>. dragDrop Initiates a drag event. fireEvent Fires a specified event on the <SELECT>. focus Causes a control to receive the focus, and executes the code specified by the onfocus event. getAdjacentText Returns the adjacent text character. getAttribute Retrieves the value of the specified attribute. getBoundingClientRect Retrieves an object specifying the bounds of a collection of TextRectangle objects. getClientRects Retrieves a collection of rectangles that describes the layout of the contents of an object or range within the client. Each rectangle describes a single line. getElementsByTagName Retrieves a collection of objects based on the specified element name. getExpression Retrieves the expression for the given property. hasChildNodes Returns whether the <SELECT> has children. insertAdjacentElement Inserts an element at the specified location. insertAdjacentHTML Inserts the given HTML text into the element at the location. insertAdjacentText Inserts the given text into the element at the specified location. insertBefore Inserts an element into the document hierarchy. mergeAttributes Copies all read/write attributes to the specified element. releaseCapture Removes mouse capture from the <SELECT> in the current document. removeAttribute Removes the given attribute from the <SELECT>. removeBehavior Detaches a behavior from the <SELECT>. removeChild Removes a child node from an element. removeExpression Removes the expression from the specified property. removeNode Removes the <SELECT> from the document hierarchy. replaceAdjacentText Replaces the adjacent text character. replaceChild Replaces an existing child element with a new child element. replaceNode Replaces the <SELECT> with another element. scrollIntoView Causes the <SELECT> to scroll into view, aligning it either at the top or bottom of the window. setActive Sets the <SELECT> as the current object without setting focus to the object. setAttribute Sets the value of the specified attribute. setCapture Sets the mouse capture to the <SELECT> belonging to the current document. setExpression Sets an expression for the specified object. swapNode Exchanges the location of two objects in the document hierarchy. urns Retrieves a collection of all objects to which a specified behavior is attached. ---------- Cache for Windows NT (Intel) 5.0.20 (Build 6305) Fri Sep 16 2005 11:54:10 EDT ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.08.2007, 13:20 |
|
||
|
проверка фокуса ввода
|
|||
|---|---|---|---|
|
#18+
Что за бестолковые копипасты? Для проверки фокуса - TEXTS==document.activeElement Для проверки курсора мыши - в какой момент? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.08.2007, 14:57 |
|
||
|
проверка фокуса ввода
|
|||
|---|---|---|---|
|
#18+
AntonariyЧто за бестолковые копипасты? Редактировать не хотелось... :) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.08.2007, 15:11 |
|
||
|
проверка фокуса ввода
|
|||
|---|---|---|---|
|
#18+
А подумать хотелось? В этих текстах нет ни капли плезной информации. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.08.2007, 17:20 |
|
||
|
проверка фокуса ввода
|
|||
|---|---|---|---|
|
#18+
324f4 Не подскажете, какие существуют функции/свойства для объектов, которые осуществляют эти проверки? нету таких напишите свои, обрабатывая события onfocus - onblur; onmouseover - onmouseout ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.08.2007, 05:51 |
|
||
|
проверка фокуса ввода
|
|||
|---|---|---|---|
|
#18+
Еще есть такое document.activeElement ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.08.2007, 08:21 |
|
||
|
проверка фокуса ввода
|
|||
|---|---|---|---|
|
#18+
AntonariyА подумать хотелось? В этих текстах нет ни капли плезной информации. Это не так... Там перечислены все методы объектов. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.08.2007, 10:12 |
|
||
|
проверка фокуса ввода
|
|||
|---|---|---|---|
|
#18+
Блок А.Н.Еще есть такое document.activeElement да для ИЕ это ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.08.2007, 12:07 |
|
||
|
|

start [/forum/topic.php?fid=22&msg=34707629&tid=1457841]: |
0ms |
get settings: |
10ms |
get forum list: |
14ms |
check forum access: |
2ms |
check topic access: |
3ms |
track hit: |
71ms |
get topic data: |
11ms |
get forum data: |
3ms |
get page messages: |
54ms |
get tp. blocked users: |
1ms |
| others: | 16ms |
| total: | 185ms |

| 0 / 0 |

Извините, этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
... ля, ля, ля ...