 |
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
|
|
|
|

October 3rd, 2004, 10:19 AM
|
|
Authorized User
|
|
Join Date: Aug 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

October 3rd, 2004, 10:50 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

October 4th, 2004, 01:38 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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.
|
|

October 7th, 2004, 09:17 AM
|
|
Authorized User
|
|
Join Date: Aug 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

October 7th, 2004, 12:33 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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.
|
|

October 13th, 2004, 11:42 AM
|
|
Authorized User
|
|
Join Date: Aug 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

October 13th, 2004, 02:40 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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?
|
|
 |