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 3rd, 2004, 10:19 AM
Authorized User
 
Join Date: Aug 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default Beginning DW.MX 2004 Global Soccer

Hi,
I have a problem with the above , page 295 onwards.
I have completed the "tools/function/mySite.asp/popularfirstpage and changed Events.asp.
I get "type error fault" when trying to run them in my browser.
<% SetFirstVisitedPage () %> is the code in question
The same fault is noted when trying to load "popularFirstPage. asp. but this time the code is <%=GetFirstVisitedPage (False) %>. It appears the common to both lines of code.

The browser states, "Microsoft VBscript runtime
                     Error type 0x800A000D
                     Type mismatch
However I have checked and rechecked my code and it is as the book.
Can anyone help??

Regards

Terry s


 
Old October 3rd, 2004, 10:50 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Can you post the code for the SetFirstVisitedPage and GetFirstVisitedPage methods? Maybe you can post the entire code of the file these two methods reside in, as the problem may be caused by a different function or sub.

Cheers,

Imar
 
Old October 4th, 2004, 01:38 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Terry,

I don't understand why you can't post the code. All you need to do is copy the code in Dreamweaver's Code View and paste it in the text area where you type your reply.

Anyway, you said you checked and rechecked the code, but you may have overlooked how you include the functions file:

<!-#include file= "Tools/function.asp"->

This is not the correct way to include it; you'll need this:



With two dashes on both sides. One of the files had include files instead of include file.

Since you didn't post the code for the SetFirstVisitedPage and GetFirstVisitedPage methods as I suggested, but rather sent the page where these methods were called, I can't check whether the pages will now run correctly. However, I wouldn't be surprised if fixing the include fixes your errors.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old October 7th, 2004, 09:17 AM
Authorized User
 
Join Date: Aug 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
Re my Probs with Global Soccer, I have now altered the code as you suggested with two dashes at each end.

(You should note that the book code show's only one dash)
I now get different error messages.
If I open "mySite" in the browser all is okay.
If I try and open "mostpopularpage" the error message reads, Tools/functions.asp contains an invalid path.
If I try and open "Events" the error message is, Tools/function.asp not found.
Yet the code is the same in all pages.
All the new pages Admin, tools ,etc etc are in their correct folders.

Regards

Terry s

 
Old October 7th, 2004, 12:33 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Terry,

How does your include look like for the popularFirstPage.asp page?



won't work, because the Tools folder is located above the Admin folder, so you need ../Tools/

The other error indicates you used the file function.asp instead of functions.asp. Can that be the cause of the error?

The single dash in the book is very odd. I checked my original files and all of them contain two dashes, so I looks like something went wrong in the DTP / Printing process. I'll notify Wrox so they can add this to the errata section. Thanks for telling me about this.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old October 13th, 2004, 11:42 AM
Authorized User
 
Join Date: Aug 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi Imar,

Your suggestion re function should read functions was correct, however since then I've had a major crash and lost the complete Soccer site, so I'm force to start from again from the beginning.

Still, it's good practice.

regards

Terry s

 
Old October 13th, 2004, 02:40 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Even though you lost the entire SoccerSite, you don't have to start all over. The code download for TheSoccerSite comes with all the files for each chapter, so you can continue where you stopped last time.

You can find the code here: http://www.wrox.com/WileyCDA/WroxTit...load_code.html

While you're, you can also download the answers to the Why Not Try exercises of TheSoccerSite. You can also view them on-line here: http://Imar.Spaanjaars.Com/WhyNotTry.aspx

Have fun,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Goodnight Moon by Kill Bill OMPST- Shivaree (Track 2 from the album: Kill Bill (Volume Two)) What's This?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! Pop-Up Menu in DW MX 2004 Maverick Dreamweaver (all versions) 5 November 20th, 2004 12:08 PM
Beginning Dreamweaver Mx 2004 (Global Soccer) terry s Dreamweaver (all versions) 5 September 26th, 2004 06:08 AM
Reading XML in DW MX 2004 bommi_k Dreamweaver (all versions) 1 August 19th, 2004 01:07 PM





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