|
|
|
Как автоматизировать LOGIN на странице?
|
|||
|---|---|---|---|
|
#18+
есть поля с именем, паролем и кнопкой ..надо автоматически через некоторое время логинится на странице.. -------------------вот код формы--------------- <form name="loginForm" action="/index.php" method="post"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td align="left" align="left" valign="top"> <h2>Логин</h2> </td> <td align="left" valign="top"><input name="url" type=hidden value="http://www.quantum.ru/"><input name="username" type="text" class="Autorize-Link" value=""></td> </tr> <tr> <td align="left" width="10%" align="left" valign="top"> <h2>Пароль</h2> </td> <td align="left" valign="top"><input name="password" type="password" class="Pass" value=""></td> </tr> <tr> <td align="left" width="10%" align="left" valign="top"><input type="submit" value="Войти" STYLE="font-size: 9pt" onMouseOver="style.color='rgb(0,90,150)'" onMouseOut="style.color='black'"></td> <td><img src="/img/1x1.png" width="1" height="4" alt="" border="0"></td> </tr> <tr> <td colspan="2"> </td> </tr> </table> </form> -------------------------------------------------------------------------------------- Как это лучше реализовать? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.08.2007, 10:11 |
|
||
|
Как автоматизировать LOGIN на странице?
|
|||
|---|---|---|---|
|
#18+
Господа, это что, не реально чтоли? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.08.2007, 11:04 |
|
||
|
Как автоматизировать LOGIN на странице?
|
|||
|---|---|---|---|
|
#18+
Т.е. ты сидиш... Смотриш на страницу... А она клац! Через некоторое время тебя спрашивает: - Укажи логин и пароль! Или как? Как это должно выглядеть-то? ---------- Cache for Windows NT (Intel) 5.0.20 (Build 6305) Fri Sep 16 2005 11:54:10 EDT ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.08.2007, 11:27 |
|
||
|
Как автоматизировать LOGIN на странице?
|
|||
|---|---|---|---|
|
#18+
Есть страница, с прописанными паролем и логином. Надо, шоб через определенное время (часов 12) срабатывал нужный скрипт, который имитирует нажаите кнопки "Войти" ЗЫ Будет ли скрипт работать, если окно свернуто и не активно? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.08.2007, 11:31 |
|
||
|
Как автоматизировать LOGIN на странице?
|
|||
|---|---|---|---|
|
#18+
workaholikНадо, шоб через определенное время (часов 12) срабатывал нужный скрипт, который имитирует нажаите кнопки "Войти" Т.е. с теми значениями что есть в полях "логин" и "пароль"? workaholikБудет ли скрипт работать, если окно свернуто и не активно? Скрипту это без разницы :) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.08.2007, 11:59 |
|
||
|
Как автоматизировать LOGIN на странице?
|
|||
|---|---|---|---|
|
#18+
krvsaТ.е. с теми значениями что есть в полях "логин" и "пароль"? Точно! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.08.2007, 12:25 |
|
||
|
Как автоматизировать LOGIN на странице?
|
|||
|---|---|---|---|
|
#18+
В JS есть вариант с выполнением функции по истечении таймаута... Но сам я никогда такое не использовал... :( Использование там такое: - Устанавливается таймаут в милисекундах - Указывается функция которую нужно выполнить ---------- Cache for Windows NT (Intel) 5.0.20 (Build 6305) Fri Sep 16 2005 11:54:10 EDT ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.08.2007, 12:34 |
|
||
|
Как автоматизировать LOGIN на странице?
|
|||
|---|---|---|---|
|
#18+
Это все гуд! ..а листинга приверного нема? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.08.2007, 12:47 |
|
||
|
Как автоматизировать LOGIN на странице?
|
|||
|---|---|---|---|
|
#18+
Тебе сегодня везет! Я нашел где это видел!!! Код: plaintext 100 - количество милисекунд ---------- Cache for Windows NT (Intel) 5.0.20 (Build 6305) Fri Sep 16 2005 11:54:10 EDT ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.08.2007, 12:52 |
|
||
|
Как автоматизировать LOGIN на странице?
|
|||
|---|---|---|---|
|
#18+
Щаз попробуем ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.08.2007, 13:05 |
|
||
|
Как автоматизировать LOGIN на странице?
|
|||
|---|---|---|---|
|
#18+
Дык как все таки програмно наживать кнопку "ВОЙТИ"? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.08.2007, 13:14 |
|
||
|
Как автоматизировать LOGIN на странице?
|
|||
|---|---|---|---|
|
#18+
Вот в документации чего нашел еще documentationsetInterval Method -------------------------------------------------------------------------------- Evaluates an expression each time a specified number of milliseconds has elapsed. Syntax iTimerID = window.setInterval(vCode, iMilliSeconds [, sLanguage]) Parameters vCode Required. Variant that specifies a function pointer or string that indicates the code to be executed when the specified interval has elapsed. iMilliSeconds Required. Integer that specifies the number of milliseconds. sLanguage Optional. String that specifies any one of the possible values for the LANGUAGE attribute. Return Value Integer. Returns an identifier that cancels the timer with the clearInterval method. Remarks The setInterval method continuously evaluates the specified expression until the timer is removed with the clearInterval method. In versions earlier than Microsoft® Internet Explorer 5, the first argument of setInterval must be a string. Evaluation of the string is deferred until the specified interval elapses. As of Internet Explorer 5, the first argument of setInterval can be passed as a string or as a function pointer. To pass a function as a string, be sure to suffix the function name with parentheses. window.setInterval("someFunction()", 5000); When passing a function pointer, do not to include the parentheses. window.setInterval(someFunction, 5000); Include the parentheses to have the function evaluated immediately before setInterval is called. The result of the function is passed to setInterval rather than to the function. To retrieve a function pointer, use the code shown in the following example: function callback() { alert("callback"); } function callback2() { alert("callback2"); } function chooseCallback(iChoice) { switch (iChoice) { case 0: return callback; case 1: return callback2; default: return ""; } } // if i is 0, callback is invoked after 5 seconds // if i is 1, callback2 is invoked // otherwise, the timer is not set window.setInterval(chooseCallback(i), 5000); Example This example uses the setInterval method to create a DHTML clock. A variable is assigned to the interval, and can be used as a reference to stop the interval using the clearInterval method. var oInterval = ""; function fnStartInterval(){ oInterval = window.setInterval("fnRecycle()",1000); } function fnRecycle(){ // Code to display hours, minutes, and seconds. } ---------- Cache for Windows NT (Intel) 5.0.20 (Build 6305) Fri Sep 16 2005 11:54:10 EDT ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.08.2007, 13:16 |
|
||
|
Как автоматизировать LOGIN на странице?
|
|||
|---|---|---|---|
|
#18+
workaholikДык как все таки програмно наживать кнопку "ВОЙТИ"? Она же у тебя "субмитная", значит хватит и такого кода Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.08.2007, 13:25 |
|
||
|
Как автоматизировать LOGIN на странице?
|
|||
|---|---|---|---|
|
#18+
Во-как! ...так так так ...Щаз попробуем. Спасибо ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.08.2007, 14:10 |
|
||
|
Как автоматизировать LOGIN на странице?
|
|||
|---|---|---|---|
|
#18+
Да, работает! ..отлично! ... А скрипт надо вставлять именно в форму, или можно в любом месте тела? ... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.08.2007, 14:17 |
|
||
|
Как автоматизировать LOGIN на странице?
|
|||
|---|---|---|---|
|
#18+
А шоб сабмит открывался в новом окне, а потом через некоторое время закрывался, ...Чего надо дописать?? ..Если не трудно ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.08.2007, 14:46 |
|
||
|
Как автоматизировать LOGIN на странице?
|
|||
|---|---|---|---|
|
#18+
workaholikА скрипт надо вставлять именно в форму, или можно в любом месте тела? ... Я теги <script></script> (с JS) вставляю между тегами <head></head> Если я правильно понял вопрос... :) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.08.2007, 14:55 |
|
||
|
Как автоматизировать LOGIN на странице?
|
|||
|---|---|---|---|
|
#18+
workaholikА шоб сабмит открывался в новом окне Вот тут уже я не понял... submit это метод объекта form, он не может открываться да еще и в другом окне :) Давай так... Опиши что ты хочеш увидеть... Вот ты сидиш... Смотриш на страницу... Проходит некий таймаут... И что дальше? :) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.08.2007, 15:05 |
|
||
|
Как автоматизировать LOGIN на странице?
|
|||
|---|---|---|---|
|
#18+
krvsaВот ты сидиш... Смотриш на страницу... Проходит некий таймаут... И что дальше? :) ..сижу я ..работаю в инете.. И оба-на! Время текущей сессии истекает, инет пропадает. Для активации нужно логиниться на страницу провайдера. ...но попадая на страницу провайдера, твоя страница уже закрыта ...и в следующий раз сессию активировать будет уже некому.. А так, страница активации открывалась бы в новом окне ...потом бы я его скриптом закрывал ...и отсчет времени продолжался бы до нового сеанса.. Вот такая канитель ... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.08.2007, 15:17 |
|
||
|
Как автоматизировать LOGIN на странице?
|
|||
|---|---|---|---|
|
#18+
Дюже много абстракции для меня... :( Т.к. сам-то я таких действий не проделывал, то так ничего и не понял. ---------- Cache for Windows NT (Intel) 5.0.20 (Build 6305) Fri Sep 16 2005 11:54:10 EDT ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.08.2007, 15:40 |
|
||
|
Как автоматизировать LOGIN на странице?
|
|||
|---|---|---|---|
|
#18+
А вот такой вариант: -по таймеру на первой странице грузится вторая страница с логином и автоматически сабмитися при загрузке на сайт провайдера. Потом с ней можно делать чето угодна, она уже не нужна. -первая страница в это время так и висит, ожидая своего часа. Так понятней? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.08.2007, 16:06 |
|
||
|
Как автоматизировать LOGIN на странице?
|
|||
|---|---|---|---|
|
#18+
workaholikТак понятней? Так да! А вторая страница самопальная? Или чья-то готовая? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.08.2007, 16:29 |
|
||
|
Как автоматизировать LOGIN на странице?
|
|||
|---|---|---|---|
|
#18+
Вот что написано в документации на открытие окна авторopen Method -------------------------------------------------------------------------------- Opens a new window and loads the document specified by a given URL, or opens a blank document if a URL is not provided. Syntax oNewWindow = window.open( [sURL] [, sName] [, sFeatures] [, bReplace]) Parameters sURL Optional. String that specifies the URL of the document to display. If no URL is specified, a new window with about:blank is displayed. sName Optional. String that specifies the name of the window. This name is used as the value for the TARGET attribute on a FORM or an A element. In Microsoft® Internet Explorer 5 and later, specifying the value _search opens sURL in the browser's search pane. sFeatures Optional. String that specifies the window ornaments to display. The following features are supported: channelmode = { yes | no | 1 | 0 } Specifies whether to display the window in theater mode and show the channel band. The default is no. directories = { yes | no | 1 | 0 } Specifies whether to add directory buttons. The default is yes. fullscreen = { yes | no | 1 | 0 } Specifies whether to display the browser in a full-screen or normal window. The default is no, which displays the browser in a normal window. Use full-screen mode carefully. Because this mode hides the browser's title bar and menus, you should always provide a button or other visual clue to help the user close the window. ALT+F4 also closes the new window. height = number Specifies the height of the window, in pixels. The minimum value is 100. left = number Specifies the left position, in pixels. This value is relative to the upper-left corner of the screen. location = { yes | no | 1 | 0 } Specifies whether to display the input field for entering URLs directly into the browser. The default is yes. menubar = { yes | no | 1 | 0 } Specifies whether to display the menu bar. The default is yes. resizable = { yes | no | 1 | 0 } Specifies whether to display resize handles at the corners of the window. The default is yes. scrollbars = { yes | no | 1 | 0 } Specifies whether to display horizontal and vertical scroll bars. The default is yes. status = { yes | no | 1 | 0 } Specifies whether to add a status bar at the bottom of the window. The default is yes. titlebar = { yes | no | 1 | 0 } Specifies whether to display a title bar for the window. This parameter is ignored unless the caller is an HTML Application or a trusted dialog box. The default is yes. toolbar = { yes | no | 1 | 0 } Specifies whether to display the browser toolbar, making buttons such as Back, Forward, and Stop available. The default is yes. top = number Specifies the top position, in pixels. This value is relative to the upper-left corner of the screen. width = number Sets the width of the window, in pixels. The minimum value is 100. bReplace Optional. Boolean that specifies whether the URL that is loaded into the new page should create a new entry in the window's browsing history or replace the current entry in the browsing history. If set to true, no new history entry is created. Return Value Returns a reference to the new window object. Use this reference to script properties and methods on the new window. Remarks By default, the open method creates a window that has a default width and height and the standard menu, toolbar, and other features of Microsoft® Internet Explorer. You can alter this set of features by using the sFeatures parameter. This parameter is a string consisting of one or more feature settings. When one feature is specified, any additional features that are not specified are disabled. If no features are specified, the window features maintain their default values. In addition to enabling a feature with the specified possible value, simply listing the feature name also enables that feature for the new window. Internet Explorer 5 allows further control over windows through the implementation of title in the sFeatures parameter of the open method. Turn off the title bar by opening the window from a trusted application, such as Microsoft® Visual Basic® or an HTML Application (HTA). These applications are considered trusted, because each uses Internet Explorer interfaces instead of the browser. Windows CE In Microsoft® Windows CE, the document object is not available through scripting for a window opened using the open method. Example This example uses the open method to create a new window that contains Sample.htm. The new window is 200 pixels by 400 pixels and has a status bar, but it does not have a toolbar, menu bar, or address field. window.open("Sample.htm",null, "height=200,width=400,status=yes,toolbar=no,menubar=no,location=no"); ---------- Cache for Windows NT (Intel) 5.0.20 (Build 6305) Fri Sep 16 2005 11:54:10 EDT ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.08.2007, 16:32 |
|
||
|
Как автоматизировать LOGIN на странице?
|
|||
|---|---|---|---|
|
#18+
krvsa А вторая страница самопальная? Или чья-то готовая? .. ПЕРВАЯ страница самопальная... с функцией таймера. .. ВТОРАЯ страница - страница с сабмитом. И сабмит должен срабатывать при загрузке этой страницы. ..ЗЫ Кстати. На ПЕРВОЙ странице таймер сработает, и откроет ВТОРУЮ страницу... ..а что потом? Как поведет себя таймер дальше? Остановиться, либо пойдет на следующий круг? ..он не должен останавливаться! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.08.2007, 16:36 |
|
||
|
Как автоматизировать LOGIN на странице?
|
|||
|---|---|---|---|
|
#18+
workaholik.. ПЕРВАЯ страница самопальная... с функцией таймера. Это-то понятно... workaholik.. ВТОРАЯ страница - страница с сабмитом. И сабмит должен срабатывать при загрузке этой страницы. Это самопальная страница? Или ее сделал провайдет и менять ее нельзя... workaholikКак поведет себя таймер дальше? Остановиться, либо пойдет на следующий круг? ..он не должен останавливаться! Не остановится... Не боись ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 01.08.2007, 16:41 |
|
||
|
|

start [/forum/topic.php?fid=22&msg=34698787&tid=1457874]: |
0ms |
get settings: |
10ms |
get forum list: |
11ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
42ms |
get topic data: |
10ms |
get forum data: |
3ms |
get page messages: |
49ms |
get tp. blocked users: |
1ms |
| others: | 235ms |
| total: | 369ms |

| 0 / 0 |

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