Wrox Programmer Forums
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript 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 July 29th, 2003, 09:27 AM
jc jc is offline
Registered User
 
Join Date: Jul 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default scope problem

I am working on the trivia quiz code in chapter 6. The downloaded code works fine. When I load and execute my copy of the code, I get an error message. The problem occurs when the code moves to the getQuestion function. I get a message telling me that qustions array is either null or not an object. When I step through the debugger I can see that the questions array has been populated before it moves to the getQuestion function. The questions array appears to lose scope in the getQuestion function. I have compared my copy of the code to the downloaded version and they match line for line. I am using MS FrontPage as my editor. Any ideas on what might be going on?

Thanks in advance.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Static Scope JaneDean Beginning PHP 0 November 25th, 2008 02:07 AM
Scope of Objects Handman BOOK: Professional C# 2008 ISBN: 978-0-470-19137-8 12 October 20th, 2008 10:06 AM
Iterator Scope Problem smokey_gun Javascript How-To 1 July 4th, 2007 01:26 AM
Scope resolution problem _fluffy_ BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 October 16th, 2006 09:37 AM





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