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


Groups > comp.lang.javascript > #33811 > unrolled thread

Inserting stuff received with AJAX into the DOM

Started bybit-naughty@hotmail.com
First post2017-08-19 12:35 -0700
Last post2017-08-21 16:47 +0200
Articles 5 on this page of 25 — 6 participants

Back to article view | Back to comp.lang.javascript


Contents

  Inserting stuff received with AJAX into the DOM bit-naughty@hotmail.com - 2017-08-19 12:35 -0700
    Re: Inserting stuff received with AJAX into the DOM bit-naughty@hotmail.com - 2017-08-19 12:55 -0700
      Re: Inserting stuff received with AJAX into the DOM Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-08-20 12:16 +0200
        Re: Inserting stuff received with AJAX into the DOM Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2017-08-20 15:55 +0200
          Re: Inserting stuff received with AJAX into the DOM Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-08-20 19:18 +0200
            Re: Inserting stuff received with AJAX into the DOM Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2017-08-20 21:50 +0200
              Re: Inserting stuff received with AJAX into the DOM Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-08-20 22:39 +0200
                Re: Inserting stuff received with AJAX into the DOM Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2017-08-21 08:29 +0200
                  Re: Inserting stuff received with AJAX into the DOM Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-08-21 16:44 +0200
                    Re: Inserting stuff received with AJAX into the DOM Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2017-08-21 17:24 +0200
                      Re: Inserting stuff received with AJAX into the DOM Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-08-21 17:47 +0200
                        Re: Inserting stuff received with AJAX into the DOM Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2017-08-21 19:50 +0200
                          Re: Inserting stuff received with AJAX into the DOM Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-08-21 22:16 +0200
                            Re: Inserting stuff received with AJAX into the DOM Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2017-08-26 09:25 +0200
                              Re: Inserting stuff received with AJAX into the DOM Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-08-27 03:02 +0200
    Re: Inserting stuff received with AJAX into the DOM Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-08-20 12:30 +0200
    Re: Inserting stuff received with AJAX into the DOM bit-naughty@hotmail.com - 2017-08-20 07:37 -0700
      Re: Inserting stuff received with AJAX into the DOM "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-08-20 17:17 +0200
      Re: Inserting stuff received with AJAX into the DOM Tim Streater <timstreater@greenbee.net> - 2017-08-20 17:48 +0100
    Re: Inserting stuff received with AJAX into the DOM bit-naughty@hotmail.com - 2017-08-20 11:21 -0700
      Re: Inserting stuff received with AJAX into the DOM Tim Streater <timstreater@greenbee.net> - 2017-08-20 19:29 +0100
      Re: Inserting stuff received with AJAX into the DOM "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-08-21 01:29 +0200
        Re: Inserting stuff received with AJAX into the DOM Andrew Poulos <ap_prog@hotmail.com> - 2017-08-21 16:29 +1000
          Re: Inserting stuff received with AJAX into the DOM "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-08-21 12:25 +0200
          Re: Inserting stuff received with AJAX into the DOM Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-08-21 16:47 +0200

Page 2 of 2 — ← Prev page 1 [2]


#33825

FromTim Streater <timstreater@greenbee.net>
Date2017-08-20 19:29 +0100
Message-ID<200820171929043280%timstreater@greenbee.net>
In reply to#33824
In article <2f9aaef6-3e79-4196-98a0-832dc4e0614a@googlegroups.com>,
<bit-naughty@hotmail.com> wrote:

>OK, I got it working to some extent, but now, after I set the id to "myid", it
>actually SHOWS UP on screen when I do the appendChild!!! i.e. this line:
>
><div id="myid">text</div>
>
>is getting printed!!

What, on your printer?

-- 
When it becomes serious, you have to lie.

Jean-Claude Juncker, Reuters 31st May 2013.

[toc] | [prev] | [next] | [standalone]


#33830

From"Evertjan." <exxjxw.hannivoort@inter.nl.net>
Date2017-08-21 01:29 +0200
Message-ID<XnsA7D8F2656EFFeejj99@194.109.6.166>
In reply to#33824
bit-naughty@hotmail.com wrote on 20 Aug 2017 in comp.lang.javascript:

> OK, I got it working to some extent, but now, after I set the id to
> "myid", it actually SHOWS UP on screen when I do the appendChild!!! i.e.
> this line: 
> 
> <div id="myid">text</div>
> 
> 
> is getting printed!!
> 
> 
> How do I stop this??!!

Pull out the mains plug of your printer!

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

[toc] | [prev] | [next] | [standalone]


#33832

FromAndrew Poulos <ap_prog@hotmail.com>
Date2017-08-21 16:29 +1000
Message-ID<drednamwubN84AfEnZ2dnUU7-dPNnZ2d@westnet.com.au>
In reply to#33830
On 21/08/2017 9:29 AM, Evertjan. wrote:
> bit-naughty@hotmail.com wrote on 20 Aug 2017 in comp.lang.javascript:
> 
>> OK, I got it working to some extent, but now, after I set the id to
>> "myid", it actually SHOWS UP on screen when I do the appendChild!!! i.e.
>> this line:
>>
>> <div id="myid">text</div>
>>
>>
>> is getting printed!!
>>
>>
>> How do I stop this??!!
> 
> Pull out the mains plug of your printer!

What if it's battery operated?

---

Add a media query to the CSS eg.

@media print {
   #myid {
     display:none;
   }
}

Andrew Poulos

[toc] | [prev] | [next] | [standalone]


#33838

From"Evertjan." <exxjxw.hannivoort@inter.nl.net>
Date2017-08-21 12:25 +0200
Message-ID<XnsA7D87E6E9BBA0eejj99@194.109.6.166>
In reply to#33832
Andrew Poulos <ap_prog@hotmail.com> wrote on 21 Aug 2017 in 
comp.lang.javascript:

> On 21/08/2017 9:29 AM, Evertjan. wrote:
>> bit-naughty@hotmail.com wrote on 20 Aug 2017 in comp.lang.javascript:
>> 
>>> OK, I got it working to some extent, but now, after I set the id to
>>> "myid", it actually SHOWS UP on screen when I do the appendChild!!! i.e.
>>> this line:
>>>
>>> <div id="myid">text</div>
>>>
>>>
>>> is getting printed!!
>>>
>>>
>>> How do I stop this??!!
>> 
>> Pull out the mains plug of your printer!
> 
> What if it's battery operated?

Pull out the battery.

> ---
> 
> Add a media query to the CSS eg.
> 
> @media print {
>    #myid {
>      display:none;
>    }
>}

That will just print an empty page, 
at least more empty than before.


-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

[toc] | [prev] | [next] | [standalone]


#33847

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2017-08-21 16:47 +0200
Message-ID<3340494.kQq0lBPeGt@PointedEars.de>
In reply to#33832
Andrew Poulos wrote:

> On 21/08/2017 9:29 AM, Evertjan. wrote:
>> bit-naughty@hotmail.com wrote on 20 Aug 2017 in comp.lang.javascript:
>>> OK, I got it working to some extent, but now, after I set the id to
>>> "myid", it actually SHOWS UP on screen when I do the appendChild!!! i.e.
>>> this line:
>>>
>>> <div id="myid">text</div>
>>>
>>>
>>> is getting printed!!
>>>
>>>
>>> How do I stop this??!!
>> 
>> Pull out the mains plug of your printer!
> 
> What if it's battery operated?

Are there such devices?
 
> ---
> 
> Add a media query to the CSS eg.
> 
> @media print {
>    #myid {
>      display:none;
>    }
> }

I do not think that “being printed” was meant as “being printed out on 
paper”.  As has already been recognized, markup being displayed is the
result of setting as the contents of a *text* node instead of an
*element* node.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | comp.lang.javascript


csiph-web