<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[TNF : Tatter Network Foundation forum - r715 검색하기 버그 getElementById와 body id 충돌발생]]></title>
		<link>http://forum.tattersite.com/ko/viewtopic.php?id=1152</link>
		<description><![CDATA[r715 검색하기 버그 getElementById와 body id 충돌발생 의 최근 RSS 글들.]]></description>
		<lastBuildDate>Mon, 24 Jul 2006 20:25:42 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[RSS 답글: r715 검색하기 버그 getElementById와 body id 충돌발생]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=6459#p6459</link>
			<description><![CDATA[<p>문제 파악했습니다 <img src="http://forum.tattersite.com/ko/img/smilies/smile.png" width="15" height="15" alt="smile" /> 바꿔 놓겠습니다.^^</p>]]></description>
			<author><![CDATA[null@example.com (inureyes)]]></author>
			<pubDate>Mon, 24 Jul 2006 20:25:42 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=6459#p6459</guid>
		</item>
		<item>
			<title><![CDATA[RSS 답글: r715 검색하기 버그 getElementById와 body id 충돌발생]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=6451#p6451</link>
			<description><![CDATA[<p>한 번도 안 들여다 본 소스네요. 허허허... 고쳐보도록 하죠.</p>]]></description>
			<author><![CDATA[null@example.com (graphittie)]]></author>
			<pubDate>Mon, 24 Jul 2006 15:03:55 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=6451#p6451</guid>
		</item>
		<item>
			<title><![CDATA[RSS 답글: r715 검색하기 버그 getElementById와 body id 충돌발생]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=6450#p6450</link>
			<description><![CDATA[<div class="quotebox"><cite>LonnieNa 작성:</cite><blockquote><p>질문의 내용은 파악했으나. id가 같아서 검색이 안된다는 건데..<br />이걸 이해하려구 6번을 읽었는데.<br />저 진행과정은 아직도 이해가 안되는....ㅜㅜ</p></blockquote></div><p>1.1a body id 지정된 LonnieNa님 블로그와 다른분의 블로그에서도 같은 증상이 나오는 현상입니다.<br />위에서 보시면 body id 치환자를 삽입하게 되면 기타 다른 페이지에서는 상관없습니다.<br />허나, 검색결과물이 나오는 /search 페이지에서는 body id가 &#039;search&#039;로 지정됩니다.<br />그런데 검색 입력필드의 name명이 &#039;search&#039;입니다. 이제 필드에 검색어를 넣고<br />엔터 또는 검색버튼을 누르게 되면 document.getElementsByName(&#039;search&#039;)[0].value.replaceAll(&#039;%&#039;, &#039;%25&#039;);이것을 이용하여<br />검색어 입력필드의 값을 가져오게 되는데 위에 body id가 &#039;search&#039;로 되어있기 때문에 getElementsByName(&#039;search&#039;)이넘이 어떤 &#039;search&#039;를<br />가져와야 하는지 혼동하기 때문에 검색 액션이 안되는 것입니다. 그러므로 검색페이지에서의 body id값은 다른것으로 교체하던지<br />검색폼에서의 스크립트를 수정하던지 해야 한다는 겁니다. <br />Peris님 말씀대로 차라리 댓글폼처럼 &lt;form&gt;..&lt;/form&gt;태그로 해야 문제가 없을듯합니다.</p>]]></description>
			<author><![CDATA[null@example.com (jparker)]]></author>
			<pubDate>Mon, 24 Jul 2006 14:48:15 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=6450#p6450</guid>
		</item>
		<item>
			<title><![CDATA[RSS 답글: r715 검색하기 버그 getElementById와 body id 충돌발생]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=6447#p6447</link>
			<description><![CDATA[<p>웹접근성과 관련하여 search쪽은 form 태그로 변경하는게 맞다고 생각합니다.</p>]]></description>
			<author><![CDATA[null@example.com (Peris)]]></author>
			<pubDate>Mon, 24 Jul 2006 14:24:30 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=6447#p6447</guid>
		</item>
		<item>
			<title><![CDATA[RSS 답글: r715 검색하기 버그 getElementById와 body id 충돌발생]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=6446#p6446</link>
			<description><![CDATA[<p>질문의 내용은 파악했으나. id가 같아서 검색이 안된다는 건데..<br />이걸 이해하려구 6번을 읽었는데.<br />저 진행과정은 아직도 이해가 안되는....ㅜㅜ</p>]]></description>
			<author><![CDATA[null@example.com (LonnieNa)]]></author>
			<pubDate>Mon, 24 Jul 2006 14:20:28 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=6446#p6446</guid>
		</item>
		<item>
			<title><![CDATA[r715 검색하기 버그 getElementById와 body id 충돌발생]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=6442#p6442</link>
			<description><![CDATA[<p>블로그에서 특정 단어 &#039;홍길동&#039;을 검색한후 /search/ 페이지로 넘어간후<br />그 결과가 &#039; /search/홍길동&#039;이라고 가정하면 그 페이지에서 다시 특정 단어로 검색을 하게되면<br />검색 스크립이 안먹힙니다. <br />이유 이렇습니다.&nbsp; &lt;body id=&quot;[##_body_id_##]&quot;&gt;가 지정된 이후로<br />/search 페이지로이동하게 되면 &lt;body id=&quot;search&quot;&gt;로 id명이 지정되어 검색 스크립트가 먹히지 안는겁니다.<br />검색페이지 id를 변경하던지 스크립트를 변경해야 할것같습니다.<br />body id를 적용하지 않으면 이런 문제는 발생되지 않습니다. </p><div class="quotebox"><blockquote><p>&lt;body <strong>id=&quot;search&quot;</strong>&gt;<br />...생략...<br />&lt;input type=&quot;text&quot; class=&quot;input1&quot; <strong>name=&quot;search&quot;</strong> value=&quot;홍길동&quot;&nbsp; onkeypress=&quot;if (event.keyCode == 13) { try{window.location.href=&#039;/search/&#039; + document.<strong>getElementsByName(&#039;search&#039;)</strong>[0].value.replaceAll(&#039;%&#039;, &#039;%25&#039;); return false;}catch(e){} }&quot;/&gt;<br />&lt;input value=&quot;search&quot; type=&quot;button&quot; onclick=&quot;try{window.location.href=&#039;/search/&#039; + document.<strong>getElementsByName(&#039;search&#039;)</strong>[0].value.replaceAll(&#039;%&#039;, &#039;%25&#039;); return false;}catch(e){}&quot; class=&quot;submit&quot;/&gt;<br />...생략...<br />&lt;/body&gt;</p></blockquote></div><p>위와 같은 상황이 발생되어 검색버그가 일어나는겁니다. 변경을 해야할듯 합니다.<br />입력폼에서 엔터를... 검색버튼을 클릭을 해도 안됩니다. 위 문제때문에...</p>]]></description>
			<author><![CDATA[null@example.com (jparker)]]></author>
			<pubDate>Mon, 24 Jul 2006 13:58:54 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=6442#p6442</guid>
		</item>
	</channel>
</rss>
