Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 1st, 2010, 08:05 AM
Authorized User
 
Join Date: Jan 2010
Location: UK
Posts: 14
Thanks: 4
Thanked 1 Time in 1 Post
Default Menus in Chrome, Ch 7 p244-

Hi Imar,

I've just stumbled across something of an oddity with menus in Chrome. The issue was raised on the Forum under Styling the Menu Control in March 2009. Your final post to that thread, 17 March 2009 mentioned a possible solution at http://blog.the-dargans.co.uk/2008/0...work-with.html

I was interested in this but have also had a further look around on Google. There seems to be an interesting, (better??), solution (in a contribution dated 10-29-2008, 11:14 PM) at,

http://forums.asp.net/p/1315088/2713325.aspx

which offers some code to insert in the BrowserFile browser script. Having tried this out, after creating App_Browsers and generating BrowserFile.browser, it does seem to work OK.

However, I would be interested to know your views. Is this a 'better' solution, or have you any suggestions for inserting some code in one of the existing pages.

Just as a reminder, the line

Home Reviews About Login

appears as:

Home Reviews Expand Reviews About Expand About Login

Apologies for intruding upon your limited time.
__________________
Alan.
Reply With Quote
  #2 (permalink)  
Old February 2nd, 2010, 07:02 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Alan,

In the thread you linked to, a few different solutions and links are mentioned. Which one are you referring to?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #3 (permalink)  
Old February 2nd, 2010, 07:18 AM
Authorized User
 
Join Date: Jan 2010
Location: UK
Posts: 14
Thanks: 4
Thanked 1 Time in 1 Post
Default

Hi Imar,

Apologies for the omission. I had realised my carelessness about an hour ago so perhaps there is some form of mental telpathy here.

However the particular 'solution' was posted by cnobles on October 29 2008, (the ninth post down), as follows:
Code:
 
<browsers>
  <!-- Disable the Menu Adapter for the Safari browser without changing the root browser file -->
  <browser refID="Safari1Plus">
    <controlAdapters>
      <adapter controlType="System.Web.UI.WebControls.Menu"
               adapterType="" />
    </controlAdapters>
  </browser>
</browsers>
__________________
Alan.
Reply With Quote
  #4 (permalink)  
Old February 3rd, 2010, 03:30 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Alan,

Sorry fior the late reply; had to test this out before I could post back.

This seems like a good solution to me to work around this issue. What I like about it is that it gives you fine-grained control over how you override settings. So, if another issue comes up, you can define another control inside the Browser file. And so far, I haven't been able to see anything "wrong" with this.

FYI: the menu of ASP.NET 4 works fine in Google and doesn't require special handling.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
Alanrf (February 4th, 2010)
  #5 (permalink)  
Old February 4th, 2010, 08:21 AM
Authorized User
 
Join Date: Jan 2010
Location: UK
Posts: 14
Thanks: 4
Thanked 1 Time in 1 Post
Default

Hi Imar,
Thanks for your response. It is encouraging to know that the idea is 'acceptable'. I can see your point that this might be a way to handle any possible browser issues as well.
__________________
Alan.
Reply With Quote
  #6 (permalink)  
Old May 14th, 2010, 02:28 PM
Friend of Wrox
Points: 1,749, Level: 16
Points: 1,749, Level: 16 Points: 1,749, Level: 16 Points: 1,749, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2007
Location: San Diego, CA, USA.
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
Default

Any sense of why the version change eliminated the Chrome issue? I don't have 4.0 yet, and can't see what the XHTML or CSS look like? I'm assuming there's been some change?
__________________
-------------------------

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.
Reply With Quote
  #7 (permalink)  
Old May 15th, 2010, 03:49 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

They made changes to the browsers they recognize and made changes to the HTML the controls emit.

Check out www.planetwrox.com and look at the differences in source for the 3.5 and 4.0 versions of the site.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #8 (permalink)  
Old May 16th, 2010, 10:50 PM
Friend of Wrox
Points: 1,749, Level: 16
Points: 1,749, Level: 16 Points: 1,749, Level: 16 Points: 1,749, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2007
Location: San Diego, CA, USA.
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
Default

Interesting. There are some marked improvements in the CSS rendered in the document head. It's still there, which isn't best practice, but the selectors they're using to target elements on the page is MUCH more natural.
__________________
-------------------------

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.
Reply With Quote
  #9 (permalink)  
Old May 17th, 2010, 01:58 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
There are some marked improvements in the CSS rendered in the document head. It's still there, which isn't best practice,
In-line CSS isn't necessarily a bad practice though. But you can now turn it off completely: http://msdn.microsoft.com/en-us/libr...tyleblock.aspx

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #10 (permalink)  
Old May 17th, 2010, 01:37 PM
Friend of Wrox
Points: 1,749, Level: 16
Points: 1,749, Level: 16 Points: 1,749, Level: 16 Points: 1,749, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2007
Location: San Diego, CA, USA.
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
Default

Quote:
Originally Posted by Imar View Post
In-line CSS isn't necessarily a bad practice though. But you can now turn it off completely: http://msdn.microsoft.com/en-us/libr...tyleblock.aspx

Cheers,

Imar
Agreed, in fact when I'm working with jQuery, that's something I'll do since most JS support typically implies a browser that's capable of and configured for CSS. It's also more sensible if you have a style for one page, just embed it and keep the bloat out of the stylesheets.

Though all other things being equal, I still prefer to insert, remove, or swap classes in jQuery, just so all of my style rules are in the stylesheet. I like having everything in one place and knowing where to go during the maintenance (or construction) cycles.
__________________
-------------------------

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.
Reply With Quote
Reply


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
Search ch 13, ch 16 sporik BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 0 October 27th, 2009 04:44 PM
zXml.js for Chrome jabadia BOOK: Professional Ajax ISBN: 978-0-471-77778-6 2 October 5th, 2009 09:41 AM
sub menus matshediso HTML Code Clinic 2 January 31st, 2005 05:15 AM
Ch. 4 & Ch. 12 athena BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 July 23rd, 2004 10:54 AM
Menus Frank Schmuck BOOK: Beginning ASP.NET 1.0 1 June 6th, 2003 01:29 PM



All times are GMT -4. The time now is 05:13 AM.


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