Need Help With Problems From Book

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ommadawn

    Need Help With Problems From Book

    I was wondering if someone here can help me with a problem I'm having.
    I'm working my way through the 'Beginning JavaScript' (2'nd Edition) book by
    Wrox Press.
    As I get further into the book, it seems the scripts are not working as
    well.
    I have 2 in particular that have me baffled; the code that I downloaded from
    the site is also not running-maybe it's a browser issue?
    I am not so sure how my browser settings should be configured to best run
    these scripts, while still maintaining a secure environment.
    The techs at Wrox say the code runs fine for them, but I have no luck, plus
    the rest of the book is built on this code.
    I am using IE 6 and Netscape 7 (Netscape seems to be less tempermental.)
    (I am running windows XP.)
    I can post the code or direct someone to the site where the code is posted,
    (not sure how I should do this...)


  • ASM

    #2
    Re: Need Help With Problems From Book

    ommadawn a écrit :[color=blue]
    > I was wondering if someone here can help me with a problem I'm having.
    > I'm working my way through the 'Beginning JavaScript' (2'nd Edition) book by
    > Wrox Press.[/color]

    [...][color=blue]
    > I can post the code or direct someone to the site where the code is posted,
    > (not sure how I should do this...)[/color]

    when you are on the site on the page with this code
    you copy the url (in location bar)
    and you past it here

    it becomes a link easily clickable

    without this code no help

    --
    Stephane Moriaux et son [moins] vieux Mac

    Comment

    • ommadawn

      #3
      Re: Need Help With Problems From Book


      "ASM" <stephanemoriau x.NoAdmin@wanad oo.fr.invalid> wrote in message
      news:433b25bb$0 $1703$8fcfb975@ news.wanadoo.fr ...[color=blue]
      > ommadawn a écrit :[color=green]
      >> I was wondering if someone here can help me with a problem I'm having.
      >> I'm working my way through the 'Beginning JavaScript' (2'nd Edition) book
      >> by Wrox Press.[/color]
      >
      > [...][color=green]
      >> I can post the code or direct someone to the site where the code is
      >> posted, (not sure how I should do this...)[/color]
      >
      > when you are on the site on the page with this code
      > you copy the url (in location bar)
      > and you past it here
      >
      > it becomes a link easily clickable
      >
      > without this code no help
      >
      > --
      > Stephane Moriaux et son [moins] vieux Mac[/color]

      These are on the site as a zip file; not sure how to show you this.
      The example uses frames, so there is one page inside another.
      If you want to try, it's on this page: code samples for chapter 7


      The file is called 'TriviaQuiz.htm .


      Comment

      • ASM

        #4
        Re: Need Help With Problems From Book

        ommadawn a écrit :[color=blue]
        > "ASM" <stephanemoriau x.NoAdmin@wanad oo.fr.invalid> wrote in message
        > news:433b25bb$0 $1703$8fcfb975@ news.wanadoo.fr ...
        >[color=green]
        >>ommadawn a écrit :
        >>[color=darkred]
        >>>I was wondering if someone here can help me with a problem I'm having.
        >>>I'm working my way through the 'Beginning JavaScript' (2'nd Edition) book
        >>>by Wrox Press.[/color][/color][/color]
        [color=blue]
        > If you want to try, it's on this page: code samples for chapter 7
        > http://www.wrox.com/WileyCDA/WroxTit...load_code.html
        >
        > The file is called 'TriviaQuiz.htm .[/color]

        Yes, got it.

        What is your question ?


        --
        Stephane Moriaux et son [moins] vieux Mac

        Comment

        • ASM

          #5
          Re: Need Help With Problems From Book

          ommadawn a écrit :[color=blue]
          > "ASM" <stephanemoriau x.NoAdmin@wanad oo.fr.invalid> wrote in message
          > news:433b25bb$0 $1703$8fcfb975@ news.wanadoo.fr ...
          >[color=green]
          >>ommadawn a écrit :[/color]
          >
          > The file is called 'TriviaQuiz.htm .[/color]

          I don't know how works XP
          if it is sensible with case in names of files
          the demo can't work because few files names are not correctly spelled
          (some characters in lower case would have to be in upper case)

          you can go here to get a soft to rename files and their links
          Since 2005, we have helped thousands of people get the perfect domain name.

          but, probably, it'll not rename files called in javascript ...

          So, you have to open each file of this exercise
          to verify and correct if needed all names of files called in :
          - links
          and
          - javascript functions


          --
          Stephane Moriaux et son [moins] vieux Mac

          Comment

          • Randy Webb

            #6
            Re: Need Help With Problems From Book

            ASM said the following on 9/29/2005 7:01 AM:
            [color=blue]
            > ommadawn a écrit :
            >[color=green]
            >> "ASM" <stephanemoriau x.NoAdmin@wanad oo.fr.invalid> wrote in message
            >> news:433b25bb$0 $1703$8fcfb975@ news.wanadoo.fr ...
            >>[color=darkred]
            >>> ommadawn a écrit :[/color]
            >>
            >>
            >> The file is called 'TriviaQuiz.htm .[/color]
            >
            >
            > I don't know how works XP
            > if it is sensible with case in names of files[/color]

            XP is not case sensitive with names. No version of Windows ever has been
            and I hope they never are.
            [color=blue]
            > the demo can't work because few files names are not correctly spelled
            > (some characters in lower case would have to be in upper case)[/color]

            It is spelling sensitive though.

            --
            Randy
            comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly

            Comment

            • ommadawn

              #7
              Re: Need Help With Problems From Book


              "Randy Webb" <HikksNotAtHome @aol.com> wrote in message
              news:CL-dncOenIZAtKHeRV n-3g@comcast.com. ..[color=blue]
              > ASM said the following on 9/29/2005 7:01 AM:
              >[color=green]
              >> ommadawn a écrit :
              >>[color=darkred]
              >>> "ASM" <stephanemoriau x.NoAdmin@wanad oo.fr.invalid> wrote in message
              >>> news:433b25bb$0 $1703$8fcfb975@ news.wanadoo.fr ...
              >>>
              >>>> ommadawn a écrit :
              >>>
              >>>
              >>> The file is called 'TriviaQuiz.htm .[/color]
              >>
              >>
              >> I don't know how works XP
              >> if it is sensible with case in names of files[/color]
              >
              > XP is not case sensitive with names. No version of Windows ever has been
              > and I hope they never are.
              >[color=green]
              >> the demo can't work because few files names are not correctly spelled
              >> (some characters in lower case would have to be in upper case)[/color]
              >
              > It is spelling sensitive though.
              >
              > --
              > Randy
              > comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly[/color]

              Don't think this is the problem, though, because the folks at Wrox said they
              were immediately able to take the quiz and grade it.


              Comment

              • ommadawn

                #8
                Re: Need Help With Problems From Book


                "Randy Webb" <HikksNotAtHome @aol.com> wrote in message
                news:CL-dncOenIZAtKHeRV n-3g@comcast.com. ..[color=blue]
                > ASM said the following on 9/29/2005 7:01 AM:
                >[color=green]
                >> ommadawn a écrit :
                >>[color=darkred]
                >>> "ASM" <stephanemoriau x.NoAdmin@wanad oo.fr.invalid> wrote in message
                >>> news:433b25bb$0 $1703$8fcfb975@ news.wanadoo.fr ...
                >>>
                >>>> ommadawn a écrit :
                >>>
                >>>
                >>> The file is called 'TriviaQuiz.htm .[/color]
                >>
                >>
                >> I don't know how works XP
                >> if it is sensible with case in names of files[/color]
                >
                > XP is not case sensitive with names. No version of Windows ever has been
                > and I hope they never are.
                >[color=green]
                >> the demo can't work because few files names are not correctly spelled
                >> (some characters in lower case would have to be in upper case)[/color]
                >
                > It is spelling sensitive though.
                >
                > --
                > Randy
                > comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly[/color]

                Wrox techs opened it with no problem, though...


                Comment

                • ASM

                  #9
                  Re: Need Help With Problems From Book

                  ommadawn a écrit :[color=blue][color=green][color=darkred]
                  >>>
                  >>>>"ASM" <stephanemoriau x.NoAdmin@wanad oo.fr.invalid> wrote in message
                  >>>>news:433b25 bb$0$1703$8fcfb 975@news.wanado o.fr...
                  >>>>
                  >>>>
                  >>>>>ommadawn a écrit :
                  >>>>
                  >>>>
                  >>>>The file is called 'TriviaQuiz.htm .
                  >>>[/color]
                  >>[color=darkred]
                  >>>the demo can't work because few files names are not correctly spelled
                  >>>(some characters in lower case would have to be in upper case)[/color][/color][/color]
                  [color=blue]
                  > Don't think this is the problem, though, because the folks at Wrox said they
                  > were immediately able to take the quiz and grade it.[/color]

                  The folks at Wrox can write wrong names of files so ...
                  But it's true : all seem to run fine for me.

                  What, where, your trouble happens ?



                  --
                  Stephane Moriaux et son [moins] vieux Mac

                  Comment

                  • Michael Winter

                    #10
                    Re: Need Help With Problems From Book

                    On 28/09/2005 23:48, ommadawn wrote:
                    [color=blue]
                    > I was wondering if someone here can help me with a problem I'm
                    > having. I'm working my way through the 'Beginning JavaScript' (2'nd
                    > Edition) book by Wrox Press.[/color]

                    Sorry to be the bearer of bad news, but most books on the subject of
                    client-side scripting are notoriously bad.
                    [color=blue]
                    > As I get further into the book, it seems the scripts are not working as
                    > well.[/color]

                    It's looking as though your book is another that should, in service to
                    users everywhere, be burnt.
                    [color=blue]
                    > I have 2 in particular that have me baffled; the code that I
                    > downloaded from the site is also not running-maybe it's a browser
                    > issue?[/color]

                    Possibly, but you never did state what exactly the problem is as you
                    perceive it. The general quality of both markup and code is extremely
                    poor, and it should not be presented as learning material to anyone.

                    This group has only recommended one book, as shown in the FAQ
                    (<URL:http://www.jibbering.c om/faq/#FAQ3_1>). However, I feel more can
                    be learnt through participation in this newsgroup than using any book.

                    [snip]

                    Mike

                    --
                    Michael Winter
                    Prefix subject with [News] before replying by e-mail.

                    Comment

                    • Robi

                      #11
                      Re: Need Help With Problems From Book

                      ommadawn wrote in message news:ga__e.6966 $q1.575@newsrea d3.news.atl.ear thlink.net...

                      [...]
                      [color=blue]
                      > Wrox techs opened it with no problem, though...[/color]

                      Ok, forgive me, but this seems more a "Wrox - ommadawn" problem than
                      a comp.lang.javas cript problem.

                      Nonetheless here are a few thoughts:

                      1. did you extract all the files from the zipped file?
                      2. did you run the TriviaQuiz.htm file in your browser?
                      3. what browser are you using?
                      4. is JavaScript enabled? (I know, stupid question, but /is it/?)

                      Why am feeding these thoughts?
                      Well, because I did download the zipped file, and instead of running
                      TriviaQuiz.htm I loaded QuizPage.htm and it didn't work, then I looked
                      at the code and found out that it is [frameset] dependent (yuck!)
                      anyway, after loading TriviaQuiz.htm (remember, all files need to be
                      in the same directory) everything worked.


                      HTH

                      Comment

                      • ommadawn

                        #12
                        Re: Need Help With Problems From Book


                        "Michael Winter" <m.winter@bluey onder.co.uk> wrote in message
                        news:gO%_e.1183 30$G8.84078@tex t.news.blueyond er.co.uk...[color=blue]
                        > On 28/09/2005 23:48, ommadawn wrote:
                        >[color=green]
                        >> I was wondering if someone here can help me with a problem I'm
                        >> having. I'm working my way through the 'Beginning JavaScript' (2'nd
                        >> Edition) book by Wrox Press.[/color]
                        >
                        > Sorry to be the bearer of bad news, but most books on the subject of
                        > client-side scripting are notoriously bad.
                        >[color=green]
                        >> As I get further into the book, it seems the scripts are not working as
                        >> well.[/color]
                        >
                        > It's looking as though your book is another that should, in service to
                        > users everywhere, be burnt.
                        >[color=green]
                        >> I have 2 in particular that have me baffled; the code that I
                        >> downloaded from the site is also not running-maybe it's a browser
                        >> issue?[/color]
                        >
                        > Possibly, but you never did state what exactly the problem is as you
                        > perceive it. The general quality of both markup and code is extremely
                        > poor, and it should not be presented as learning material to anyone.
                        >
                        > This group has only recommended one book, as shown in the FAQ
                        > (<URL:http://www.jibbering.c om/faq/#FAQ3_1>). However, I feel more can be
                        > learnt through participation in this newsgroup than using any book.
                        >
                        > [snip]
                        >
                        > Mike
                        >
                        > --
                        > Michael Winter
                        > Prefix subject with [News] before replying by e-mail.[/color]

                        Yes, I'll try again, but I cannot seem to get it to work, even with all the
                        files in the same directory. Probably stupid problem...


                        Comment

                        • Dr John Stockton

                          #13
                          Re: Need Help With Problems From Book

                          JRS: In article <CL-dncOenIZAtKHeRV n-3g@comcast.com> , dated Thu, 29 Sep
                          2005 13:52:30, seen in news:comp.lang. javascript, Randy Webb
                          <HikksNotAtHome @aol.com> posted :[color=blue]
                          >
                          >XP is not case sensitive with names. No version of Windows ever has been
                          >and I hope they never are.[/color]

                          That could be misleading.

                          When Windows is using the name to refer to a file, the case of letters
                          A-Z does not matter (I don't know whether it matters for other letters).

                          But the following are not equivalent unless /i is added :-
                          dir /b | find "Astro"
                          dir /b | find "astro"

                          --
                          © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk DOS 3.3, 6.20; Win98. ©
                          Web <URL:http://www.merlyn.demo n.co.uk/> - FAQqish topics, acronyms & links.
                          PAS EXE TXT ZIP via <URL:http://www.merlyn.demo n.co.uk/programs/00index.htm>
                          My DOS <URL:http://www.merlyn.demo n.co.uk/batfiles.htm> - also batprogs.htm.

                          Comment

                          • Randy Webb

                            #14
                            Re: Need Help With Problems From Book

                            Dr John Stockton said the following on 9/30/2005 12:48 PM:
                            [color=blue]
                            > JRS: In article <CL-dncOenIZAtKHeRV n-3g@comcast.com> , dated Thu, 29 Sep
                            > 2005 13:52:30, seen in news:comp.lang. javascript, Randy Webb
                            > <HikksNotAtHome @aol.com> posted :
                            >[color=green]
                            >>XP is not case sensitive with names. No version of Windows ever has been
                            >>and I hope they never are.[/color]
                            >
                            >
                            > That could be misleading.
                            >
                            > When Windows is using the name to refer to a file, the case of letters
                            > A-Z does not matter (I don't know whether it matters for other letters).
                            >
                            > But the following are not equivalent unless /i is added :-
                            > dir /b | find "Astro"
                            > dir /b | find "astro"[/color]

                            That is not Windows, that is DOS which Windows resides over the top of
                            and executed through command.com, even when run in a Windows DOS Prompt
                            Box. And even then, it is find that is case sensitive, not Windows.

                            --
                            Randy
                            comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly

                            Comment

                            • John W. Kennedy

                              #15
                              Re: Need Help With Problems From Book

                              Randy Webb wrote:[color=blue]
                              > Dr John Stockton said the following on 9/30/2005 12:48 PM:
                              >[color=green]
                              >> JRS: In article <CL-dncOenIZAtKHeRV n-3g@comcast.com> , dated Thu, 29 Sep
                              >> 2005 13:52:30, seen in news:comp.lang. javascript, Randy Webb
                              >> <HikksNotAtHome @aol.com> posted :
                              >>[color=darkred]
                              >>> XP is not case sensitive with names. No version of Windows ever has
                              >>> been and I hope they never are.[/color]
                              >>
                              >>
                              >>
                              >> That could be misleading.
                              >>
                              >> When Windows is using the name to refer to a file, the case of letters
                              >> A-Z does not matter (I don't know whether it matters for other letters).
                              >>
                              >> But the following are not equivalent unless /i is added :-
                              >> dir /b | find "Astro"
                              >> dir /b | find "astro"[/color]
                              >
                              >
                              > That is not Windows, that is DOS which Windows resides over the top of
                              > and executed through command.com, even when run in a Windows DOS Prompt
                              > Box. And even then, it is find that is case sensitive, not Windows.[/color]

                              Actually, it's the file system that may or may not be case-sensitive.
                              Traditionally, Unix file systems are case-sensitive, and Windows file
                              systems are not, but the systems themselves simply pass it through.

                              --
                              John W. Kennedy
                              "Compact is becoming contract,
                              Man only earns and pays."
                              -- Charles Williams. "Bors to Elayne: On the King's Coins"

                              Comment

                              Working...