Article View: pl.comp.lang.javascript
Article #39346czysznienie fields troche inaczej a moze nie
From: misiek
Date: Thu, 06 Apr 2006 02:31
Date: Thu, 06 Apr 2006 02:31
65 lines
2962 bytes
2962 bytes
mam sobie kod
<tr>
<td width='100%'>
<div id="form_address1" style="display:none;">
<br>
<table class="td_menu" border=0 width='100%'>
<table class="td_menu" border=1>
<tr>
<td width='120' align='left'>installation:<INPUT TYPE="radio"
NAME="image[todo]" VALUE="15-19"></td>
<td width='120' align='left'>removal:<INPUT TYPE="radio"
NAME="image[todo]" VALUE="15-19"></td>
</tr>
<tr>
<td width='120'>address:</td><td COLSPAN="4"><%= text_field 'image','',
:size => '77' %></td>
</tr>
<tr>
<td width='120' align='left'>Box flyers</td><td align='left'><INPUT
TYPE="radio" NAME="image[box]" VALUE="yes">yes</td>
<td align='left'><INPUT TYPE="radio" NAME="image[box]" VALUE="no">no,
thank you</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td id="address_section1" width="300" >
<a class='menu' href="#" onclick="
document.getElementById('address_section1').style.display = 'none';
document.getElementById('address_section2').style.display = '';
document.getElementById('address_section_close0').style.display = 'none';
document.getElementById('address_section_close1').style.display = '';
Effect.SlideDown('form_address1',{duration:0.6});
return false;">add address1
</a>
</td>
to tylko czesc kodu
ten kod znajduje sie w formularzu, ja uzywam ruby on rails ale
potrzebuje zrobic to w javiescrypt wiec potrzebuje wyczyscic tylko te
pola ktore znajduja sie w <div> o danych id na naczisniecie close czyli
on click, ten czysczenie powinno sie znajdowac w tej czesci
<td id="address_section1" width="300" >
<a class='menu' href="#" onclick="
document.getElementById('address_section1').style.display = 'none';
document.getElementById('address_section2').style.display = '';
document.getElementById('address_section_close0').style.display = 'none';
document.getElementById('address_section_close1').style.display = '';
Effect.SlideDown('form_address1',{duration:0.6});
return false;">add address1
</a>
</td>
czy jest to mozliwe ? probowalem wszystkiego co znajduje sie w necie uff
juz nie moege...
Technical Details
Message-ID:
<e11uic$ond$1@inews.gazeta.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail From: misiek <michaelaugustyniak@gazeta.pl> Newsgroups: pl.comp.lang.javascript Subject: czysznienie fields troche inaczej a moze nie Date: Wed, 05 Apr 2006 21:31:38 -0500 Organization: "Portal Gazeta.pl -> http://www.gazeta.pl" Lines: 65 Message-ID: <e11uic$ond$1@inews.gazeta.pl> NNTP-Posting-Host: adsl-67-36-188-58.dsl.chcgil.ameritech.net Mime-Version: 1.0 X-Trace: inews.gazeta.pl 1144290700 25325 67.36.188.58 (6 Apr 2006 02:31:40 GMT) X-Complaints-To: usenet@agora.pl NNTP-Posting-Date: Thu, 6 Apr 2006 02:31:40 +0000 (UTC) X-Accept-Language: en-us, en X-User: michal_augustyniak User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050923) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit