Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 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
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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
  #2 (permalink)  
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); });
  #3 (permalink)  
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.
  #4 (permalink)  
Old January 27th, 2010, 03:07 PM
nberardi's Avatar
Wrox Author
 
Join Date: Aug 2008
Location: Phoenixville, PA, USA
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
  #5 (permalink)  
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 :).
  #6 (permalink)  
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,
  #7 (permalink)  
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{

}
  #8 (permalink)  
Old January 27th, 2010, 03:36 PM
nberardi's Avatar
Wrox Author
 
Join Date: Aug 2008
Location: Phoenixville, PA, USA
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
  #9 (permalink)  
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.
  #10 (permalink)  
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.
 


Thread Tools Search this Thread
Search this Thread:

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



All times are GMT -4. The time now is 09:06 PM.


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