Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 20th, 2004, 05:58 AM
Registered User
 
Join Date: Oct 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default check my code

I wrote this code in “notepad” with html extention,from wrox ASP book (chapter 2),with little change and tried to run it through my PWS, but it produced errors ,and just showed html part of the code and didn’t interpret java script,LIKE THIS “Today's date is THE END”
Can you fix it,

<html>
<head>
<title>writing the date with client side java script</title>
</head>
<BODY>
<p>Today's date is
<SCRIPT LANGUAGE=JAVASCRIPT RUNAT=CLIENT>
<!--
d = new Date();
Document.Write(d);
//-->
</SCRIPT>
THE END
</BODY>
</html>


 
Old October 20th, 2004, 06:05 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

JavaScript is case sensitive, so this should be:

document.write(d);

Cheers,

Imar
 
Old October 21st, 2004, 03:36 AM
Registered User
 
Join Date: Oct 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you ,it really worked.But I do not know why the code was written like that in wrox ASP 3.0.

 
Old October 21st, 2004, 04:34 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

It's probably just a typo.

Check out the errata section for this book at: http://www.wrox.com/WileyCDA/WroxTit...ew_errata.html

You'll find other problems and their corrections as well.

Cheers,

Imar
 
Old October 21st, 2004, 12:46 PM
Registered User
 
Join Date: Oct 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you mentioning ,it will make the things easier






Similar Threads
Thread Thread Starter Forum Replies Last Post
code to check values in two columns?? Mazzy Excel VBA 2 December 13th, 2007 07:39 AM
check a cell to see if it has a currency code crmpicco Excel VBA 3 December 19th, 2005 10:10 AM
Plz Help Me Check What's Wrong Of This Code ! ck C++ Programming 1 January 13th, 2005 12:12 AM
Pls Help Me Check This Code - Win32 ck Visual C++ 0 December 29th, 2004 12:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.