Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.szaf.org!feedme.news.telefonica.de!telefonica.de!news.tele.dk!feed118.news.tele.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail From: Mikael Andersson Newsgroups: comp.lang.javascript Subject: Re: trying to call onclick with document.getElement() - document.getElement() returns null References: <17650677-77bd-4bca-8e10-ed45772f2e9f@googlegroups.com> <87fvyv1r7q.fsf@gmail.com> <7902669.URqpOMyR7R@PointedEars.de> Date: Sat, 13 Apr 2013 18:35:08 +0200 Message-ID: <87ehee5qyr.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:/BojLNJHJtmeRnmZxABvqaVpsCM= MIME-Version: 1.0 Content-Type: text/plain Lines: 24 Organization: SunSITE.dk - Supporting Open source NNTP-Posting-Host: 83.172.75.33 X-Trace: news.sunsite.dk DXC=gKF6oL:QEA6XYXkC6[Mbh;YSB=nbEKnk;D6EP^coeBa0DmURgWg1X72KAib\KDO`h2Tdg>AObV1X91]K26`TXRS0_gNFEmCAla1 X-Complaints-To: staff@sunsite.dk Xref: csiph.com comp.lang.javascript:19258 Thomas 'PointedEars' Lahn writes: > Mikael Andersson wrote: > >> jorythompson@gmail.com writes: >> >> [snip] >>> > > Never do it that way; write templates that you include, as a first step to > separate presentation from business logic. See also: MVC. > >>> while($row = mysql_fetch_array($result)) { > > Make it clear that you are evaluating the right-hand side of the assignment: > > while (($row = mysql_fetch_array($result))) { > In php its not necessary to do that. But I agree on that it makes things clearer. Yours, QubeX2