<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; JavaScript: заполнение web форм]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5193&amp;type=atom" />
	<updated>2010-11-20T17:46:24Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5193</id>
		<entry>
			<title type="html"><![CDATA[Re: JavaScript: заполнение web форм]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=42010#p42010" />
			<content type="html"><![CDATA[<p>Умельцы точно есть, и не один.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2010-11-20T17:46:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=42010#p42010</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: JavaScript: заполнение web форм]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=42009#p42009" />
			<content type="html"><![CDATA[<p>Спасибо <strong>alexii</strong>, ключевое слово было &quot;коллекция&quot;<br /><strong>jite</strong>, умельцы думаю и у нас есть, в любом случае за ссылку спасибо</p><p>Вот так работает<br /></p><div class="codebox"><pre><code>javascript:elem = document.getElementsByName(&quot;username&quot;);elem[0].value=&quot;Мой_ник&quot;;void(0)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[InFlames]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24849</uri>
			</author>
			<updated>2010-11-20T17:40:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=42009#p42009</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: JavaScript: заполнение web форм]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=42008#p42008" />
			<content type="html"><![CDATA[<p>Насколько понимаю, специфика данного форума не совсем javascript (<a href="http://forum.script-coding.com/index.php">список местных языков</a>). <br />Вероятно логичней задавать вопрос на <a href="http://javascript.ru/forum/">javascript.ru</a>.</p>]]></content>
			<author>
				<name><![CDATA[jite]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25851</uri>
			</author>
			<updated>2010-11-20T17:02:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=42008#p42008</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: JavaScript: заполнение web форм]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=42006#p42006" />
			<content type="html"><![CDATA[<p>Не группу, а коллекцию (даже если в коллекции — один элемент). Как работать с коллекциями в JScript — вопрос уже не ко мне.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2010-11-20T16:41:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=42006#p42006</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: JavaScript: заполнение web форм]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=42005#p42005" />
			<content type="html"><![CDATA[<p>Я читал, что getElementById возвращает один элемент, а getElementsByName группу. Как мне достичь желаемого? Как заполнить форму, если ей не присвоен ID?</p>]]></content>
			<author>
				<name><![CDATA[InFlames]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24849</uri>
			</author>
			<updated>2010-11-20T16:39:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=42005#p42005</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: JavaScript: заполнение web форм]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=42004#p42004" />
			<content type="html"><![CDATA[<p>JScript тут не при чём.<br /></p><div class="quotebox"><cite>getElementById Method пишет:</cite><blockquote><p><strong>Return Value</strong><br />Returns <strong><span style="color: orange">the first object</span></strong> with the same ID attribute as the specified value.</p></blockquote></div><div class="quotebox"><cite>getElementsByName Method пишет:</cite><blockquote><p><strong>Return Value</strong><br />Returns <strong><span style="color: orange">a collection of objects</span></strong> with the same NAME attribute value.</p></blockquote></div><p>Разницу выделил.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2010-11-20T16:15:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=42004#p42004</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[JavaScript: заполнение web форм]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=41997#p41997" />
			<content type="html"><![CDATA[<p>Использую заполнение форм для странички одной игры.</p><p>Раньше элемент имел следующие параметры<br />(определял при помощи дополнения к Firefox WebDeveloper)<br /></p><div class="codebox"><pre><code>type=text
value=
id=name
class=input</code></pre></div><p>Я использовал следующий код (ввод через адресную строку) для заполнения данной формы<br /></p><div class="codebox"><pre><code>javascript:document.getElementById(&quot;name&quot;).value=&quot;Мой_Ник&quot;;void(0)</code></pre></div><p>Сейчас страничку обновили, сменились параметры формы<br /></p><div class="codebox"><pre><code>type=text
value=
name=username
class=loginUsername</code></pre></div><p>Пытался использовать такой код, но не помогло<br /></p><div class="codebox"><pre><code>javascript:document.getElementsByName(&quot;username&quot;).value=&quot;Мой_Ник&quot;;void(0)</code></pre></div><p>В Js не силен. Помогите.</p>]]></content>
			<author>
				<name><![CDATA[InFlames]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24849</uri>
			</author>
			<updated>2010-11-20T13:44:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=41997#p41997</id>
		</entry>
</feed>
