Article View: pl.comp.lang.javascript
Article #51631Re: newbie: problem z keyup() z jQuery
From: Kviat
Date: Wed, 25 Nov 2015 16:10
Date: Wed, 25 Nov 2015 16:10
31 lines
2478 bytes
2478 bytes
W dniu 2015-11-23 o 20:03, jivanmukta@poczta.onet.pl pisze:
>
> Nie wiem o co chodzi, ale na localhoście onChangeAtTextArea czasem zatrzymuje się na breakpoincie a czasem nie.
> Problem jest w tym, że getFormElement(currentForm, 'message_left') == null, bo nie ma tego w form.elements. Nie wiem jak dobrać sie do <span id="message_left">. Nie mogę napisać document.getElementById('message_left') bo mam na stronie dwa razy message_left (mam dwa formularze: contact360 i contact768):
>
> ...
> <span id='message_left>
Brakujący apostrof na końcu.
> ...
> </div>
> <div id="width768">
Czemu raz " a innym razem '?
Ale to drobiazg.
...
> <span id='message_left>
Napisałeś: "bo mam na stronie dwa razy message_left"
Poczytaj o atrybucie "id".
"The id attribute specifies a unique id for an HTML element (the value
must be unique within the HTML document)"
Nie wiem czy akurat to (tylko to) jest przyczyną Twoich problemów, bo
nie analizowałem całości, ale od tego zacznij.
Pozdrawiam
Piotr
Technical Details
Message-ID:
<5655dd71$0$22833$65785112@news.neostrada.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!weretis.net!feeder4.news.weretis.net!ecngs!testfeeder.ecngs.de!81.171.118.64.MISMATCH!peer04.fr7!news.highwinds-media.com!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!unt-spo-b-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mailReferences:
<d8bb1c55-aa00-4bbb-bb65-862e4f875852@googlegroups.com> <83661$5652e8f8$6def49cc$2822@nntpswitch.blueworldhosting.com> <896e78d8-8f87-4b30-a111-3bc8b4281839@googlegroups.com> <dcb43$565348af$6def49cc$3178@nntpswitch.blueworldhosting.com> <557dc167-faeb-4079-9b4b-a0596a5776d2@googlegroups.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!weretis.net!feeder4.news.weretis.net!ecngs!testfeeder.ecngs.de!81.171.118.64.MISMATCH!peer04.fr7!news.highwinds-media.com!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!unt-spo-b-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail Subject: Re: newbie: problem z keyup() z jQuery Newsgroups: pl.comp.lang.javascript References: <d8bb1c55-aa00-4bbb-bb65-862e4f875852@googlegroups.com> <83661$5652e8f8$6def49cc$2822@nntpswitch.blueworldhosting.com> <896e78d8-8f87-4b30-a111-3bc8b4281839@googlegroups.com> <dcb43$565348af$6def49cc$3178@nntpswitch.blueworldhosting.com> <557dc167-faeb-4079-9b4b-a0596a5776d2@googlegroups.com> From: Kviat <kviat@NIE_DLA_SPAMUneostrada.pl> Date: Wed, 25 Nov 2015 17:10:27 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <557dc167-faeb-4079-9b4b-a0596a5776d2@googlegroups.com> Lines: 31 Message-ID: <5655dd71$0$22833$65785112@news.neostrada.pl> Organization: Telekomunikacja Polska NNTP-Posting-Host: 89-64-52-73.dynamic.chello.pl X-Trace: 1448467825 unt-rea-a-02.news.neostrada.pl 22833 89.64.52.73:26622 X-Complaints-To: abuse@news.neostrada.pl X-Received-Bytes: 2201 X-Received-Body-CRC: 3906235732 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit