By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,814 Members | 2,162 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,814 IT Pros & Developers. It's quick & easy.

Need Help With Problems From Book

P: n/a
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...)
Sep 28 '05 #1
Share this Question
Share on Google+
16 Replies


P: n/a
ASM
ommadawn a écrit :
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.
[...] I can post the code or direct someone to the site where the code is posted,
(not sure how I should do this...)


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
Sep 28 '05 #2

P: n/a

"ASM" <st*********************@wanadoo.fr.invalid> wrote in message
news:43**********************@news.wanadoo.fr...
ommadawn a écrit :
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.


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


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


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
http://www.wrox.com/WileyCDA/WroxTit...load_code.html

The file is called 'TriviaQuiz.htm.
Sep 29 '05 #3

P: n/a
ASM
ommadawn a écrit :
"ASM" <st*********************@wanadoo.fr.invalid> wrote in message
news:43**********************@news.wanadoo.fr...
ommadawn a écrit :
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.
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.


Yes, got it.

What is your question ?
--
Stephane Moriaux et son [moins] vieux Mac
Sep 29 '05 #4

P: n/a
ASM
ommadawn a écrit :
"ASM" <st*********************@wanadoo.fr.invalid> wrote in message
news:43**********************@news.wanadoo.fr...
ommadawn a écrit :


The file is called 'TriviaQuiz.htm.


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
http://www.xlanguage.com/products/rename.htm
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
Sep 29 '05 #5

P: n/a
ASM said the following on 9/29/2005 7:01 AM:
ommadawn a écrit :
"ASM" <st*********************@wanadoo.fr.invalid> wrote in message
news:43**********************@news.wanadoo.fr...
ommadawn a écrit :

The file is called 'TriviaQuiz.htm.

I don't know how works XP
if it is sensible with case in names of files


XP is not case sensitive with names. No version of Windows ever has been
and I hope they never are.
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)


It is spelling sensitive though.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Sep 29 '05 #6

P: n/a

"Randy Webb" <Hi************@aol.com> wrote in message
news:CL********************@comcast.com...
ASM said the following on 9/29/2005 7:01 AM:
ommadawn a écrit :
"ASM" <st*********************@wanadoo.fr.invalid> wrote in message
news:43**********************@news.wanadoo.fr...

ommadawn a écrit :
The file is called 'TriviaQuiz.htm.

I don't know how works XP
if it is sensible with case in names of files


XP is not case sensitive with names. No version of Windows ever has been
and I hope they never are.
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)


It is spelling sensitive though.

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


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.
Sep 29 '05 #7

P: n/a

"Randy Webb" <Hi************@aol.com> wrote in message
news:CL********************@comcast.com...
ASM said the following on 9/29/2005 7:01 AM:
ommadawn a écrit :
"ASM" <st*********************@wanadoo.fr.invalid> wrote in message
news:43**********************@news.wanadoo.fr...

ommadawn a écrit :
The file is called 'TriviaQuiz.htm.

I don't know how works XP
if it is sensible with case in names of files


XP is not case sensitive with names. No version of Windows ever has been
and I hope they never are.
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)


It is spelling sensitive though.

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


Wrox techs opened it with no problem, though...
Sep 29 '05 #8

P: n/a
ASM
ommadawn a écrit :

"ASM" <st*********************@wanadoo.fr.invalid> wrote in message
news:43**********************@news.wanadoo.fr. ..
>ommadawn a écrit :
The file is called 'TriviaQuiz.htm.
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)

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.


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
Sep 29 '05 #9

P: n/a
On 28/09/2005 23:48, ommadawn wrote:
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.
Sorry to be the bearer of bad news, but most books on the subject of
client-side scripting are notoriously bad.
As I get further into the book, it seems the scripts are not working as
well.
It's looking as though your book is another that should, in service to
users everywhere, be burnt.
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?


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.com/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.
Sep 30 '05 #10

P: n/a
ommadawn wrote in message news:ga***************@newsread3.news.atl.earthlin k.net...

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


Ok, forgive me, but this seems more a "Wrox - ommadawn" problem than
a comp.lang.javascript 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
Sep 30 '05 #11

P: n/a

"Michael Winter" <m.******@blueyonder.co.uk> wrote in message
news:gO*******************@text.news.blueyonder.co .uk...
On 28/09/2005 23:48, ommadawn wrote:
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.


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


It's looking as though your book is another that should, in service to
users everywhere, be burnt.
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?


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.com/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.


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...
Sep 30 '05 #12

P: n/a
JRS: In article <CL********************@comcast.com>, dated Thu, 29 Sep
2005 13:52:30, seen in news:comp.lang.javascript, Randy Webb
<Hi************@aol.com> posted :

XP is not case sensitive with names. No version of Windows ever has been
and I hope they never are.


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.demon.co.uk/> - FAQqish topics, acronyms & links.
PAS EXE TXT ZIP via <URL:http://www.merlyn.demon.co.uk/programs/00index.htm>
My DOS <URL:http://www.merlyn.demon.co.uk/batfiles.htm> - also batprogs.htm.
Sep 30 '05 #13

P: n/a
Dr John Stockton said the following on 9/30/2005 12:48 PM:
JRS: In article <CL********************@comcast.com>, dated Thu, 29 Sep
2005 13:52:30, seen in news:comp.lang.javascript, Randy Webb
<Hi************@aol.com> posted :
XP is not case sensitive with names. No version of Windows ever has been
and I hope they never are.

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"


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.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Sep 30 '05 #14

P: n/a
Randy Webb wrote:
Dr John Stockton said the following on 9/30/2005 12:48 PM:
JRS: In article <CL********************@comcast.com>, dated Thu, 29 Sep
2005 13:52:30, seen in news:comp.lang.javascript, Randy Webb
<Hi************@aol.com> posted :
XP is not case sensitive with names. No version of Windows ever has
been and I hope they never are.


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"

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.


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"
Oct 1 '05 #15

P: n/a
JRS: In article <SJ********************@comcast.com>, dated Fri, 30 Sep
2005 18:24:00, seen in news:comp.lang.javascript, Randy Webb
<Hi************@aol.com> posted :
Dr John Stockton said the following on 9/30/2005 12:48 PM:
JRS: In article <CL********************@comcast.com>, dated Thu, 29 Sep
2005 13:52:30, seen in news:comp.lang.javascript, Randy Webb
<Hi************@aol.com> posted :
XP is not case sensitive with names. No version of Windows ever has been
and I hope they never are.

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"


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.


After Windows 3.11, it ceased to be true that Windows actually runs on
top of DOS. The whole lot, including command.com and find.exe, is
supplied and installed as part of the Windows product. Therefore your
pedantic but inaccurate reply is irrelevant to my statement of the
potentially misleading nature of your words.

Actually, command.com itself is case-sensitive in part : try
if A==a echo xxx

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

P: n/a
Dr John Stockton said the following on 10/1/2005 12:06 PM:
JRS: In article <SJ********************@comcast.com>, dated Fri, 30 Sep
2005 18:24:00, seen in news:comp.lang.javascript, Randy Webb
<Hi************@aol.com> posted :
Dr John Stockton said the following on 9/30/2005 12:48 PM:

JRS: In article <CL********************@comcast.com>, dated Thu, 29 Sep
2005 13:52:30, seen in news:comp.lang.javascript, Randy Webb
<Hi************@aol.com> posted :
XP is not case sensitive with names. No version of Windows ever has been
and I hope they never are.
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"
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.

After Windows 3.11, it ceased to be true that Windows actually runs on
top of DOS.


Fair enough, but open to debate. Win95 ran on top of DOS, they just
wouldn't admit it.
The whole lot, including command.com and find.exe, is
supplied and installed as part of the Windows product.
True.
Therefore your pedantic but inaccurate reply is irrelevant to my statement
of the potentially misleading nature of your words.

There was nothing misleading about my words, or the nature of them. XP
is not case-sensitive with file names. Windows never has been and
probably never will be. DOS wasn't either.

Name a file:

ALLCAPS.BAT

And then do a :

dir "allcaps.bat"

And it will find it, case aside.
Actually, command.com itself is case-sensitive in part : try
if A==a echo xxx


True, and that still is not the Windows file system.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Oct 1 '05 #17

This discussion thread is closed

Replies have been disabled for this discussion.