• I can't get document.getElementById to work.

    From Tyler Harris@21:1/5 to All on Thu Apr 7 23:22:50 2022
    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?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jon Ribbens@21:1/5 to Tyler Harris on Fri Apr 8 16:45:02 2022
    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?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From JJ@21:1/5 to Tyler Harris on Sat Apr 9 14:06:43 2022
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Julio Di Egidio@21:1/5 to Jon Ribbens on Sat Apr 9 04:16:10 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ace of diamonds@21:1/5 to All on Wed Jul 6 09:17:31 2022
    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?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ace of diamonds@21:1/5 to All on Wed Jul 6 09:18:04 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)