Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > Adobe Web Programming > Dreamweaver (all versions)
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 3rd, 2004, 10:19 AM
Authorized User
 
Join Date: Aug 2004
Location: southampton, hants, United Kingdom.
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


Reply With Quote
  #2 (permalink)  
Old October 3rd, 2004, 10:50 AM
Imar's Avatar
Wrox Author
Points: 66,617, Level: 100
Points: 66,617, Level: 100 Points: 66,617, Level: 100 Points: 66,617, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,123
Thanks: 65
Thanked 1,386 Times in 1,366 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
Reply With Quote
  #3 (permalink)  
Old October 4th, 2004, 01:38 PM
Imar's Avatar
Wrox Author
Points: 66,617, Level: 100
Points: 66,617, Level: 100 Points: 66,617, Level: 100 Points: 66,617, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,123
Thanks: 65
Thanked 1,386 Times in 1,366 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.
Reply With Quote
  #4 (permalink)  
Old October 7th, 2004, 09:17 AM
Authorized User
 
Join Date: Aug 2004
Location: southampton, hants, United Kingdom.
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

Reply With Quote
  #5 (permalink)  
Old October 7th, 2004, 12:33 PM
Imar's Avatar
Wrox Author
Points: 66,617, Level: 100
Points: 66,617, Level: 100 Points: 66,617, Level: 100 Points: 66,617, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,123
Thanks: 65
Thanked 1,386 Times in 1,366 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.
Reply With Quote
  #6 (permalink)  
Old October 13th, 2004, 11:42 AM
Authorized User
 
Join Date: Aug 2004
Location: southampton, hants, United Kingdom.
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

Reply With Quote
  #7 (permalink)  
Old October 13th, 2004, 02:40 PM
Imar's Avatar
Wrox Author
Points: 66,617, Level: 100
Points: 66,617, Level: 100 Points: 66,617, Level: 100 Points: 66,617, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,123
Thanks: 65
Thanked 1,386 Times in 1,366 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?
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 11:08 AM
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



All times are GMT -4. The time now is 08:58 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.