Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.computer > #10651
| From | Robert Baer <robertbaer@localnet.com> |
|---|---|
| Newsgroups | alt.computer |
| Subject | Re: javascript help, please |
| References | <kRy2C.27980$b_.4386@fx23.iad> <p2fj8s$1k7$1@dont-email.me> <ElT2C.170585$iX.1455@fx39.iad> <p2h3vh$u2p$1@dont-email.me> |
| Message-ID | <PSy4C.110477$EO4.2575@fx28.iad> (permalink) |
| Date | 2018-01-07 16:24 -0800 |
Paul wrote: > Robert Baer wrote: >> Paul wrote: >>> The other is: how in the heck does one get an "if" to work (that >>> second document.write() does not execute when that if exists). >> OOPS; forgot to ask the above question WRT same program (attached). >> > > I don't see anything wrong with your code. > > It looks to me like it should have executed > both document.write statements. > > And the thing is, you can only do so much by adding > print statements to a program, before you need help. > > ******* > > You can use a debugger. Good luck with this. > > https://developer.mozilla.org/en-US/docs/Tools/Debugger > > https://developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Step_through_code > > > I have a pretty patchy history with debuggers myself. > Sometimes I get the program to launch and get to > analyze some code. And sometimes I don't even get out > of the gate. When the code body is large enough (millions > of line), then single stepping is largely a waste of time. > For your little test program, you should see it "step > around" a chunk of your code. > > Even if the environment prints "line numbers" on the screen, > this can be a subtle hint you're missing a line termination > character. > > ******** > > I wonder if your document.write is correct ? > > https://developer.mozilla.org/en-US/docs/Web/API/Document/write > > Also, line 15 is missing a semicolon on the end, before the comment. > > How did I figure that out ? I took the stuff between > the <script> tags and fed it to this. > > http://beautifytools.com/javascript-validator.php > > Paul With that help, and some fiddling i got all of my program to work. Now all i have to do is add user I/O AKA read and write to screen. Thanks.
Back to alt.computer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: javascript help, please Paul <nospam@needed.invalid> - 2018-01-02 04:26 -0500
Re: javascript help, please Robert Baer <robertbaer@localnet.com> - 2018-01-02 13:56 -0800
Re: javascript help, please Paul <nospam@needed.invalid> - 2018-01-02 18:18 -0500
Re: javascript help, please Robert Baer <robertbaer@localnet.com> - 2018-01-07 16:24 -0800
Re: javascript help, please Robert Baer <robertbaer@localnet.com> - 2018-01-09 22:23 -0800
Re: javascript help, please Paul <nospam@needed.invalid> - 2018-01-10 03:44 -0500
Re: javascript help, please Paul <nospam@needed.invalid> - 2018-01-10 22:44 -0500
Re: javascript help, please Paul <nospam@needed.invalid> - 2018-01-12 02:49 -0500
Re: javascript help, please Robert Baer <robertbaer@localnet.com> - 2018-01-12 21:10 -0800
Re: javascript help, please Paul <nospam@needed.invalid> - 2018-01-12 03:00 -0500
Re: javascript help, please Robert Baer <robertbaer@localnet.com> - 2018-01-12 21:16 -0800
Re: javascript help, please Paul <nospam@needed.invalid> - 2018-01-12 04:29 -0500
Re: javascript help, please Robert Baer <robertbaer@localnet.com> - 2018-01-12 21:39 -0800
csiph-web