Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #40840 > unrolled thread
| Started by | Tyler Harris <thylorion@gmail.com> |
|---|---|
| First post | 2022-04-07 23:22 -0700 |
| Last post | 2022-07-06 09:17 -0700 |
| Articles | 6 — 5 participants |
Back to article view | Back to comp.lang.javascript
I can't get document.getElementById to work. Tyler Harris <thylorion@gmail.com> - 2022-04-07 23:22 -0700
Re: I can't get document.getElementById to work. Jon Ribbens <jon+usenet@unequivocal.eu> - 2022-04-08 16:45 +0000
Re: I can't get document.getElementById to work. Julio Di Egidio <julio@diegidio.name> - 2022-04-09 04:16 -0700
Re: I can't get document.getElementById to work. Ace of diamonds <he12091983@gmail.com> - 2022-07-06 09:18 -0700
Re: I can't get document.getElementById to work. JJ <jj4public@gmail.com> - 2022-04-09 14:06 +0700
Re: I can't get document.getElementById to work. Ace of diamonds <he12091983@gmail.com> - 2022-07-06 09:17 -0700
| From | Tyler Harris <thylorion@gmail.com> |
|---|---|
| Date | 2022-04-07 23:22 -0700 |
| Subject | I can't get document.getElementById to work. |
| Message-ID | <7b2c22d7-e292-46b1-9e86-f12915c816ffn@googlegroups.com> |
I have placed the javascript at the end of the body, so this part is not the problem. Also, this code works when I compile it in another program.
I am actually using TiddlyWiki5 with an inline JavaScript plugin.
This is the code I have:
```
<script>
var test = document.getElementById("div_name").innerHTML;
alert('test');
</script>
```
I am using a live preview editor, so with every keystroke, I get that alert. I keep getting that alert until I hit the capital "B", then the alert stops working.
Does anyone know what is wrong here?
[toc] | [next] | [standalone]
| From | Jon Ribbens <jon+usenet@unequivocal.eu> |
|---|---|
| Date | 2022-04-08 16:45 +0000 |
| Message-ID | <slrnt50pke.41c.jon+usenet@raven.unequivocal.eu> |
| In reply to | #40840 |
On 2022-04-08, Tyler Harris <thylorion@gmail.com> wrote:
> I have placed the javascript at the end of the body, so this part is
> not the problem. Also, this code works when I compile it in another
> program.
>
> I am actually using TiddlyWiki5 with an inline JavaScript plugin.
>
> This is the code I have:
> ```
><script>
> var test = document.getElementById("div_name").innerHTML;
> alert('test');
></script>
> ```
> I am using a live preview editor, so with every keystroke, I get that
> alert. I keep getting that alert until I hit the capital "B", then the
> alert stops working.
> Does anyone know what is wrong here?
Your description makes no sense. The only "capital B" involved is on
the first line of your script, but the alert is on the second line
of the script, so how can the alert possibly be happening when you
haven't typed it in yet?
[toc] | [prev] | [next] | [standalone]
| From | Julio Di Egidio <julio@diegidio.name> |
|---|---|
| Date | 2022-04-09 04:16 -0700 |
| Message-ID | <b2f7c83b-2122-4697-95bc-c3aa5a08151bn@googlegroups.com> |
| In reply to | #40841 |
On Friday, 8 April 2022 at 18:45:10 UTC+2, Jon Ribbens wrote:
> On 2022-04-08, Tyler Harris <thyl...@gmail.com> wrote:
> > I have placed the javascript at the end of the body, so this part is
> > not the problem. Also, this code works when I compile it in another
> > program.
> >
> > I am actually using TiddlyWiki5 with an inline JavaScript plugin.
> >
> > This is the code I have:
> > ```
> ><script>
> > var test = document.getElementById("div_name").innerHTML;
> > alert('test');
> ></script>
> > ```
> > I am using a live preview editor, so with every keystroke, I get that
> > alert. I keep getting that alert until I hit the capital "B", then the
> > alert stops working.
> > Does anyone know what is wrong here?
> Your description makes no sense. The only "capital B" involved is on
> the first line of your script, but the alert is on the second line
> of the script, so how can the alert possibly be happening when you
> haven't typed it in yet?
Are you so stupid that you can't see a patent troll when you crash into it? His and JJ's...
*Plonk*
Julio
[toc] | [prev] | [next] | [standalone]
| From | Ace of diamonds <he12091983@gmail.com> |
|---|---|
| Date | 2022-07-06 09:18 -0700 |
| Message-ID | <65906e74-3186-4e56-87d6-1bcbffcddb53n@googlegroups.com> |
| In reply to | #40843 |
Hey guy. Would You want to get rich with me doing programming? If yes, call me !!!!!!!!!
βββπ±π : 372 53900660
ju...@diegidio.name kirjutas LaupΓ€ev, 9. aprill 2022 kl 13:16:15 UTC+2:
> On Friday, 8 April 2022 at 18:45:10 UTC+2, Jon Ribbens wrote:
> > On 2022-04-08, Tyler Harris <thyl...@gmail.com> wrote:
> > > I have placed the javascript at the end of the body, so this part is
> > > not the problem. Also, this code works when I compile it in another
> > > program.
> > >
> > > I am actually using TiddlyWiki5 with an inline JavaScript plugin.
> > >
> > > This is the code I have:
> > > ```
> > ><script>
> > > var test = document.getElementById("div_name").innerHTML;
> > > alert('test');
> > ></script>
> > > ```
> > > I am using a live preview editor, so with every keystroke, I get that
> > > alert. I keep getting that alert until I hit the capital "B", then the
> > > alert stops working.
> > > Does anyone know what is wrong here?
> > Your description makes no sense. The only "capital B" involved is on
> > the first line of your script, but the alert is on the second line
> > of the script, so how can the alert possibly be happening when you
> > haven't typed it in yet?
> Are you so stupid that you can't see a patent troll when you crash into it? His and JJ's...
>
> *Plonk*
>
> Julio
[toc] | [prev] | [next] | [standalone]
| From | JJ <jj4public@gmail.com> |
|---|---|
| Date | 2022-04-09 14:06 +0700 |
| Message-ID | <1a89zxrlnh87g$.1eoft7p9wqaft$.dlg@40tude.net> |
| In reply to | #40840 |
On Thu, 7 Apr 2022 23:22:50 -0700 (PDT), Tyler Harris wrote:
> I have placed the javascript at the end of the body, so this part is not the problem. Also, this code works when I compile it in another program.
>
> I am actually using TiddlyWiki5 with an inline JavaScript plugin.
>
> This is the code I have:
> ```
> <script>
> var test = document.getElementById("div_name").innerHTML;
> alert('test');
> </script>
> ```
> I am using a live preview editor, so with every keystroke, I get that alert. I keep getting that alert until I hit the capital "B", then the alert stops working.
> Does anyone know what is wrong here?
The wrong part is likely at the code which handles the keystroke.
[toc] | [prev] | [next] | [standalone]
| From | Ace of diamonds <he12091983@gmail.com> |
|---|---|
| Date | 2022-07-06 09:17 -0700 |
| Message-ID | <1cfef3a2-1c7c-4774-b780-d31970eed034n@googlegroups.com> |
| In reply to | #40840 |
Hey guy. Would You want to get rich with me doing programming? If yes, call me !!!!!!!!!
βββπ±π : 372 53900660
Tyler Harris kirjutas Reede, 8. aprill 2022 kl 08:22:55 UTC+2:
> I have placed the javascript at the end of the body, so this part is not the problem. Also, this code works when I compile it in another program.
>
> I am actually using TiddlyWiki5 with an inline JavaScript plugin.
>
> This is the code I have:
> ```
> <script>
> var test = document.getElementById("div_name").innerHTML;
> alert('test');
> </script>
> ```
> I am using a live preview editor, so with every keystroke, I get that alert. I keep getting that alert until I hit the capital "B", then the alert stops working.
> Does anyone know what is wrong here?
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.javascript
csiph-web