Wrox Programmer Forums
|
BOOK: Beginning ASP.NET MVC 1.0 ISBN: 978-0-470-43399-7
This is the forum to discuss the Wrox book Beginning ASP.NET MVC 1.0 by Simone Chiaretta, Keyvan Nayyeri; ISBN: 9780470433997
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET MVC 1.0 ISBN: 978-0-470-43399-7 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 August 26th, 2009, 01:03 PM
Authorized User
 
Join Date: Mar 2009
Posts: 15
Thanks: 2
Thanked 0 Times in 0 Posts
Default Chapter 12 Exercise 1 JASON Error

The itemsList on the rendered Index.aspx page is empty and I received the following error on my firefox console.

GET http://localhost:49166/Home/GetData

uncaught exception: [Exception... "Not enough arguments" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame :: http://localhost:49166/ :: anonymous :: line 38" data: no]

Is anyone else seeing this or am I not holding my mouth right again?
 
Old August 27th, 2009, 02:11 AM
Wrox Author
 
Join Date: Nov 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Which version of Firefox are you using? I'm assuming that you're using version 3.x while the solution for the current edition of the book was written for Firefox 2.0. One of my blog readers has posted the solution for Firefox 3.x that should resolve your issue:

http://nayyeri.net/blog/using-jsonre.../#comment-3694
__________________
Keyvan Nayyeri
 
Old August 27th, 2009, 10:29 AM
Authorized User
 
Join Date: Mar 2009
Posts: 15
Thanks: 2
Thanked 0 Times in 0 Posts
Default Chapter 12 Exercise 1 JSON Error

Hi Keyvan

I think your code is fine. I'm not generating any errors on your pages. The ListItems are received ok according to FireFox 3.5.2. I'm just not sure if it's a jQuery issue. I've seen issues with jQuery version 1.3.2 and other UI's.
 
Old August 27th, 2009, 10:57 AM
Authorized User
 
Join Date: Mar 2009
Posts: 15
Thanks: 2
Thanked 0 Times in 0 Posts
Default Chapter 12 Exercise 1 JSON Error

Hi Keyvan

You were right. I changed

list.add(option);

to

list.options.add(option);

and it solved the problem.

Thanks

BTW. Of all the MVC books, yours is one of the most comprehensive for learning MVC.
 
Old August 27th, 2009, 10:59 AM
Wrox Author
 
Join Date: Nov 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No problem.

Thanks. I hope you like the book and it can help you.
__________________
Keyvan Nayyeri





Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP5 chapter 4 exercise code error? pmd BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 3 June 23rd, 2008 12:56 PM
Chapter 12 Error with binding Calendar? rsearing BOOK: Beginning ASP.NET 2.0 and Databases 2 October 9th, 2006 07:51 AM
Chapter 12 code error rsteph7 BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 34 August 18th, 2004 01:53 PM





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