 |
BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4  | This is the forum to discuss the Wrox book Beginning Dreamweaver MX by Charles E. Brown, Imar Spaanjaars, Todd Marks; ISBN: 9780764544040 |
Please indicate which version of the book you are using when posting questions. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4 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
|
|
|
|

July 12th, 2005, 05:11 PM
|
|
Authorized User
|
|
Join Date: Jul 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Page 167 - A JavaScript Demonstration
I've been through this exercise several times, and when I try to view it in my browser, the error: "The page cannot be found." I'm saving the behaviortest.htm file in the same folder as other .htm files for thecookingplace web site. I have no idea what I'm doing wrong here. It's such a simple little exercise -- Any suggestions? 
__________________
M Peterson
To err is human; to really foul things up requires a computer.
|
|

July 12th, 2005, 05:13 PM
|
|
Authorized User
|
|
Join Date: Jul 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Whoops -- above topic is for Beginning Dreamweaver MX 2004.:D
|
|

July 12th, 2005, 05:21 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
Can you post the code for the page? Where did you save it exactly, and how do you try to access it???
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: 10 - Tension Head by Queens of the Stone Age (Track 10 from the album: Rated R) What's This?
|
|

July 12th, 2005, 08:47 PM
|
|
Authorized User
|
|
Join Date: Jul 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hello Imar --
Thank you for your quick response.
The file is saved under the site: TheCookingPlace/thecookingplace/behaviortest2.htm.
Following is the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_popupMsg(msg) { //v1.0
alert(msg);
}
//-->
</script>
</head>
<body onload="MM_popupMsg('Can you see this message? Good!')">
This is a test of <a href="#" onclick="MM_popupMsg('And here\'s the pop-up message. It worked!')">JavaScript</a> behaviors - let's see if it works.
</body>
</html>
|
|

July 12th, 2005, 09:02 PM
|
|
Authorized User
|
|
Join Date: Jul 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I don't know why I can't get this all together at the same time. The exact file location is: My Documents\TheCookingPlace\thecookingplace. http://localhost/TheCookingPlace/thecookingplace/
The remote folder is C:/Abyss Web Server/htdocs/TheCookingPlace
Testing Server is the same.
Should the Remote and Testing servers both be: C:/Abyss Web Server/htdocs/TheCookingPlace/thecookingplace?
|
|

July 13th, 2005, 02:35 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Often on a local machine, the Testing and Remote locations are the same, although that's not necessary.
What web server are you using? If you use http://localhost/TheCookingPlace, can you see the folder and the files it holds? What happens when you place a simple file in your web root and browse to it?
Looks like a mis configuration of either Dreamweaver (e.g. wrong path specified in the Sites dialog for the http location) or in Apache, where you remote folder doesn't map to http://localhost/TheCookingPlace
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|

July 13th, 2005, 06:35 AM
|
|
Authorized User
|
|
Join Date: Jul 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi Imar,
You are right. I messed up my Remote/Testing Sites configuation while trying to gain access to the same files from my laptop -- now I can't view any of that site's .htm files in my browser. I'll be back in touch after untangling the mess (which won't be until later today).
Thanks for your help.
|
|

July 13th, 2005, 01:02 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Sure, no problem.
You are aware that section 2 and 3 deal with ASP and access extensively, and that that requires you to have a webserver running IIS?? You can use a local machine with IIS, or a remote host (your ISP), but you need an ASP capable machine.
Are you running IIS or Apache??
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: You Would Know by Queens of the Stone Age (Track 5 from the album: Queens of the Stone Age) What's This?
|
|

July 14th, 2005, 08:32 AM
|
|
Authorized User
|
|
Join Date: Jul 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi Imar,
I'm not running IIS or Apache. Am using Abyss Web Server. There is a "work around" for running IIS on Windows XP Home, but it was way to complicated for me. The reason for my problem was: I wanted to use my laptop sometimes to work on web site files, and having the server under C:\Program Files didn't allow sharing; so I moved the server folder to my root C:\. (I don't know what possessed me to just move the files instead of uninstalling and reinstalling the server program.  )
Everything is working fine now - my problem is solved. Thank you, again, for your help.
Mae
M Peterson
To err is human; to really foul things up requires a computer.
|
|
 |