Wrox Programmer Forums
|
BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950
This is the forum to discuss the Wrox book ASP.NET MVC Website Programming Problem Design Solution by Nicholas Berardi, Al Katawazi, and Marco Bellinaso; ISBN: 9780470410950
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 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 January 27th, 2010, 12:01 PM
Authorized User
 
Join Date: Mar 2009
Posts: 68
Thanks: 6
Thanked 0 Times in 0 Posts
Default missing Class on p tag

A lot of reference to < class="field Input"> but in the code I'm using I get a warning and don't see this class in any of the .css files
 
Old January 27th, 2010, 02:03 PM
Authorized User
 
Join Date: Jan 2010
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
Default missing class on p tag

Take a look at the global.js file. There is a line of code that will hide all messages when there is not focus. I am not sure why the input class is there, but this is where the field class is being used.

// set gloal blur for all fields to hide message when not in focus anymore
$("form .field :input").blur(function () { HideMessage(this); });
 
Old January 27th, 2010, 02:58 PM
Authorized User
 
Join Date: Mar 2009
Posts: 68
Thanks: 6
Thanked 0 Times in 0 Posts
Default .js

So because it in the global.js file it's OK to have the warning on the page.
 
Old January 27th, 2010, 03:07 PM
nberardi's Avatar
Wrox Author
 
Join Date: Aug 2008
Posts: 102
Thanks: 1
Thanked 16 Times in 16 Posts
Send a message via AIM to nberardi
Default

Quote:
Originally Posted by tedr View Post
A lot of reference to < class="field Input"> but in the code I'm using I get a warning and don't see this class in any of the .css files
It is used as a marker to help jQuery as previously mentioned by midavis.

Quote:
Originally Posted by tedr View Post
So because it in the global.js file it's OK to have the warning on the page.
To be honest this seems like a very petty and nit-picky point about the application. And you are suggesting that we incur extra and less efficient jQuery selections just so Visual Studio doesn't show a warning that it is plain wrong about?

Visual Studio doesn't understand how Web 2.0 and meta tagging works in relation to client side processing. If it really bothers you, there is always the option of disabling it under the settings.
__________________
Check out my blog at: http://www.coderjournal.com
 
Old January 27th, 2010, 03:30 PM
Authorized User
 
Join Date: Jan 2010
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
Default missing class in p tag

You could also add an empty style for each of those classes in the stylesheet :).
 
Old January 27th, 2010, 03:34 PM
Authorized User
 
Join Date: Mar 2009
Posts: 68
Thanks: 6
Thanked 0 Times in 0 Posts
Default <p tag

I not trying to nit pick here, trying to understand, the use of jqurrey is new for me so not sure of what's going on,
 
Old January 27th, 2010, 03:36 PM
Authorized User
 
Join Date: Mar 2009
Posts: 68
Thanks: 6
Thanked 0 Times in 0 Posts
Unhappy <P

Can you give an example I tried this but still get the warning

.field input{

}
 
Old January 27th, 2010, 03:36 PM
nberardi's Avatar
Wrox Author
 
Join Date: Aug 2008
Posts: 102
Thanks: 1
Thanked 16 Times in 16 Posts
Send a message via AIM to nberardi
Default

Quote:
Originally Posted by tedr View Post
So because it in the global.js file it's OK to have the warning on the page.
Well this statement doesn't give the impression that you are trying to understand anything.
__________________
Check out my blog at: http://www.coderjournal.com
 
Old January 27th, 2010, 04:01 PM
Authorized User
 
Join Date: Jan 2010
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
Default missing Class on p tag

you could try

.field, .input {}

If you are new to jQuery I would highly recommend getting familiar with it. There are a lot of cool things you can do with it and it makes a lot of javascript tasks much easier.
 
Old January 27th, 2010, 04:09 PM
Authorized User
 
Join Date: Mar 2009
Posts: 68
Thanks: 6
Thanked 0 Times in 0 Posts
Default

I tried that, I agree with what I've seen so far, and this book is showing so many cool things, that I have a lot of things that an be done, it's these little things than put me in a spin, because it test things that don't make since to me, makes me ask Why????

The problem with css is that it can't see field input, but if replaced with field-input then makes since, the field and input I don't think are meant to be separete.





Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML tag from C# or ASP.NET tag from javascript angshujit ASP.NET 2.0 Basics 3 February 16th, 2007 10:07 AM
HTML tag vs Body Tag CFGerry BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 1 October 7th, 2005 07:13 AM
Unable to load tag handler class nithya123 BOOK: Professional Jakarta Struts 0 September 1st, 2005 10:02 AM
Missing code in the FormChanger class module jkuusik BOOK: Excel 2003 VBA Programmer's Reference 0 April 20th, 2005 08:55 AM
Ch 13 p 484 missing <ResourceParams> opening tag JHvdSloot JSP Basics 0 October 2nd, 2003 07:35 AM





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