Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #17436

Re: Problem w/ creating dynamic TR and its TDs

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.teledata-fn.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail
Content-Type text/plain; charset="UTF-8"
Message-ID <15075341.ROmfG5ADdx@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Organization PointedEars Software (PES)
Date Mon, 03 Dec 2012 22:53:19 +0100
User-Agent KNode/4.4.11
Content-Transfer-Encoding 8Bit
X-Face %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v
Face iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg==
Subject Re: Problem w/ creating dynamic TR and its TDs
Newsgroups comp.lang.javascript
References <e4c1bc98-b6a5-4142-a7a7-3fff318a7057@l12g2000vbj.googlegroups.com> <k9e45v$d6v$1@speranza.aioe.org> <5462881.fXVs31Ce0e@PointedEars.de> <17c6ca39-08f8-41b7-9d84-b1862cd6bd39@t5g2000vba.googlegroups.com>
Followup-To comp.lang.javascript
MIME-Version 1.0
Lines 74
NNTP-Posting-Date 03 Dec 2012 22:53:20 CET
NNTP-Posting-Host 89ad8664.newsspool1.arcor-online.net
X-Trace DXC=FCl0aU8GL]4d8Nb@@ZG@b=ic==]BZ:af>4Fo<]lROoR1nkgeX?EC@@00E8X5N4L0E2DZm8W4\YJN<R=i2=[N6Y6:jNe=bP<NoD?9;eJ>SbVOP5
X-Complaints-To usenet-abuse@arcor.de
Xref csiph.com comp.lang.javascript:17436

Followups directed to: comp.lang.javascript

Show key headers only | View raw


justaguy wrote:
^^^^^^^^
Please fix that, this is not a Web forum.  And avoid Google Groups for 
posting, use a newsreader.

> Thomas 'PointedEars' Lahn wrote:
>> […]   The correct way to address the problem actually
>> posed by the question (as opposed to your answer) is:
>>
>> var input = document.createElement("input");
>> input.name = "partnumber" + cnt;
>> input.id = "partnumber" + cnt;
>> input.className = "autocomplete";
>> cell.appendChild(input);

Please trim your quotations to the relevant parts next time.

<http://jibbering.com/faq/notes/>

> @PointedEars,

(AISB.)  The thread and the attribution lines for the quotation levels make 
it clear already whose posting(s) you are referring to.

> I'm using your syntax,
> particularly, the input.className = "autocomplete" part.
> 
> So, the code looks like this:
> // cell 1
> var cell = document.createElement("td");
> var cellText = document.createElement('input');
> cellText.type = 'text';
> cellText.id = 'partnumber'+cnt;
> cellText.name = 'partnumber'+cnt;
> cellText.className = 'autocomplete';
> cell.appendChild(cellText);
> newrow.appendChild(cell);
> 
> […]
> Outcome or rendered HTML:
> First, new ROW of input type of text created and in correct position
> as expected.
> 
> <!-- rendered existing ROW -->
> <td>
> <input id="partnumber" class="autocomplete ui-autocomplete-input"
                                             ^^^^^^^^^^^^^^^^^^^^^
> type="text" name="partnumber" autocomplete="off" role="textbox" aria-
> autocomplete="list" aria-haspopup="true">
> </td>
> <!-- yes, the predefined element for autocomplete class call is
> successful as expected -->
> 
> 
> <!-- rendered dynamically created ROW -->
> <td>
> <input id="partnumber2" class="autocomplete" type="text"
> name="partnumber2">
> </td>
> <!-- no, the autocomplete class call fails -->
> 
> Browser: Firefox 16 for windows
> 
> What is wrong here?

jQuery UI Autocomplete, jQuery UI, and jQuery.  Avoid everything that has 
"jQuery" in it (any capitalization).


PointedEars
-- 
Sometimes, what you learn is wrong. If those wrong ideas are close to the 
root of the knowledge tree you build on a particular subject, pruning the 
  -- Mike Duffy in cljs, <news:Xns9FB6521286DB8invalidcom@94.75.214.39>

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Problem w/ creating dynamic TR and its TDs justaguy <lichunshen84@gmail.com> - 2012-12-01 15:17 -0800
  Re: Problem w/ creating dynamic TR and its TDs Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2012-12-02 00:34 +0100
    Re: Problem w/ creating dynamic TR and its TDs justaguy <lichunshen84@gmail.com> - 2012-12-01 17:06 -0800
    Re: Problem w/ creating dynamic TR and its TDs Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-12-02 03:46 +0100
      Re: Problem w/ creating dynamic TR and its TDs justaguy <lichunshen84@gmail.com> - 2012-12-01 19:27 -0800
        Re: Problem w/ creating dynamic TR and its TDs Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-12-03 22:53 +0100
      Re: Problem w/ creating dynamic TR and its TDs Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2012-12-02 08:43 +0100
        Re: Problem w/ creating dynamic TR and its TDs Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-12-02 16:11 +0100
          Re: Problem w/ creating dynamic TR and its TDs Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2012-12-02 18:48 +0100
            Re: Problem w/ creating dynamic TR and its TDs Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-12-02 19:35 +0100
              Re: Problem w/ creating dynamic TR and its TDs Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-12-02 19:39 +0100

csiph-web