<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; window.createPopup(); и события]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=7149&amp;type=atom" />
	<updated>2012-04-27T16:40:27Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=7149</id>
		<entry>
			<title type="html"><![CDATA[Re: window.createPopup(); и события]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59796#p59796" />
			<content type="html"><![CDATA[<p>С этим окном проще было бы, но уже отказался.<br />Непонятка получилась при движении мыши по списку, самопроизвольное закрытие окна, закономерность не уловил, плюнул и переделал назад.<br />Всем спасибо за помощь, пригодится в другом месте.</p>]]></content>
			<author>
				<name><![CDATA[Любитель]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27037</uri>
			</author>
			<updated>2012-04-27T16:40:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59796#p59796</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: window.createPopup(); и события]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59776#p59776" />
			<content type="html"><![CDATA[<p><strong>Любитель</strong><br />Стили, описанные в основном файле невидны в popup-окне, потому что это разные объекты со своими DOM. </p><p>Мне кажется, с этим popup-окном еще успеете намучиться, начало уже положено. Чем Вас не устраивал предыдущий вариант на ДИВах?</p>]]></content>
			<author>
				<name><![CDATA[Rumata]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24846</uri>
			</author>
			<updated>2012-04-27T08:00:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59776#p59776</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: window.createPopup(); и события]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59773#p59773" />
			<content type="html"><![CDATA[<p><strong>Rumata</strong>, спасибо, ИД получилось.</p><p>Теперь другая непонятка, не могу class подключить ни для самого окна ни для его содержимого.<br />Стилями получается слишком громоздко.</p>]]></content>
			<author>
				<name><![CDATA[Любитель]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27037</uri>
			</author>
			<updated>2012-04-27T04:16:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59773#p59773</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: window.createPopup(); и события]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59758#p59758" />
			<content type="html"><![CDATA[<p>Кажется так тоже пробовал, но точно скажу только завтра, не помню, может наоборот пробовал.</p><p>Не пойму разницы, почему к коллекции одно обращение, а по ИД другое?</p>]]></content>
			<author>
				<name><![CDATA[Любитель]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27037</uri>
			</author>
			<updated>2012-04-26T16:36:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59758#p59758</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: window.createPopup(); и события]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59746#p59746" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Rumata пишет:</cite><blockquote><p>Объект, созданный с помощью window.createPopup(), является окном window. Для доступа к элементам, свойствам и методам DOM вызывайте Popup.document.</p></blockquote></div><p>Для Popup.document - всё верно! но никакого отдельного объекта window для Popup, похоже, не существует - Popup.document.parentWindow указывает на само родительское окно.</p>]]></content>
			<author>
				<name><![CDATA[shiz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26249</uri>
			</author>
			<updated>2012-04-26T09:46:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59746#p59746</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: window.createPopup(); и события]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59744#p59744" />
			<content type="html"><![CDATA[<p><strong>Любитель</strong><br />Объект, созданный с помощью window.createPopup(), является окном window. Для доступа к элементам, свойствам и методам DOM вызывайте Popup.document.</p>]]></content>
			<author>
				<name><![CDATA[Rumata]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24846</uri>
			</author>
			<updated>2012-04-26T07:23:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59744#p59744</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: window.createPopup(); и события]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59741#p59741" />
			<content type="html"><![CDATA[<p>oPopup.document.getElementById(&quot;ID&quot;)</p>]]></content>
			<author>
				<name><![CDATA[JSmаn]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24434</uri>
			</author>
			<updated>2012-04-26T06:43:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59741#p59741</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: window.createPopup(); и события]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59739#p59739" />
			<content type="html"><![CDATA[<p>Всё работает, но при попытке обратиться по ИД, говорит нет там ни кого и при этом возвращает элемент и его ИД, если к элементу обращаться через коллекцию.</p><p>так есть<br />var B=oPopBody.getElementsByTagName(&quot;B&quot;)[0];<br />так нет<br />var B=oPopBody.getElementById(&quot;ID&quot;);<br />и так нет<br />var B=document.getElementById(&quot;ID&quot;);</p>]]></content>
			<author>
				<name><![CDATA[Любитель]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27037</uri>
			</author>
			<updated>2012-04-26T04:33:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59739#p59739</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: window.createPopup(); и события]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59721#p59721" />
			<content type="html"><![CDATA[<p>Спасибо!<br />Пойду пробовать.</p>]]></content>
			<author>
				<name><![CDATA[Любитель]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27037</uri>
			</author>
			<updated>2012-04-25T07:08:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59721#p59721</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: window.createPopup(); и события]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59718#p59718" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>&lt;HTML&gt;
&lt;HEAD&gt;
&lt;TITLE&gt;Popup Example&lt;/TITLE&gt;
&lt;SCRIPT LANGUAGE=&quot;JScript&quot;&gt;
var oPopup = window.createPopup();
function ButtonClick()
{
    var oPopBody = oPopup.document.body;
    oPopBody.style.backgroundColor = &quot;lightyellow&quot;;
    oPopBody.style.border = &quot;solid black 1px&quot;;
    oPopBody.innerHTML = &quot;Click outside &lt;B&gt;popup&lt;/B&gt; to close.&quot;;
    var B=oPopBody.getElementsByTagName(&quot;B&quot;)[0];
    B.onclick = function () {alert();}
    oPopup.show(100, 100, 180, 25, document.body);
}
&lt;/SCRIPT&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;BUTTON onclick=&quot;ButtonClick()&quot;&gt;Click Me!&lt;/BUTTON&gt;
&lt;/BODY&gt;
&lt;/HTML&gt;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[JSmаn]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24434</uri>
			</author>
			<updated>2012-04-25T06:44:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59718#p59718</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[window.createPopup(); и события]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59717#p59717" />
			<content type="html"><![CDATA[<p>Решил переделать ДИВное окно на <strong>window.createPopup();</strong>, всё так сильно упрощается.<br />Содержимое генерируется и непосредственно в тегах есть события.<br />Браузер ругается на эти события, говорит нет объекта. Не &quot;видит&quot; функцию-обработчик.<br />Можно ли получить доступ и как?<br />Разумеется на ДИВах всё работает.</p>]]></content>
			<author>
				<name><![CDATA[Любитель]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27037</uri>
			</author>
			<updated>2012-04-25T04:53:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59717#p59717</id>
		</entry>
</feed>
