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

February 1st, 2010, 08:05 AM
|
Authorized User
|
|
Join Date: Jan 2010
Posts: 14
Thanks: 4
Thanked 1 Time in 1 Post
|
|
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.
|

February 2nd, 2010, 07:02 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi Alan,
In the thread you linked to, a few different solutions and links are mentioned. Which one are you referring to?
Imar
|

February 2nd, 2010, 07:18 AM
|
Authorized User
|
|
Join Date: Jan 2010
Posts: 14
Thanks: 4
Thanked 1 Time in 1 Post
|
|
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.
|

February 3rd, 2010, 03:30 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
The Following User Says Thank You to Imar For This Useful Post:
|
|

February 4th, 2010, 08:21 AM
|
Authorized User
|
|
Join Date: Jan 2010
Posts: 14
Thanks: 4
Thanked 1 Time in 1 Post
|
|
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.
|

May 14th, 2010, 02:28 PM
|
Friend of Wrox
|
|
Join Date: Jun 2007
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
|
|
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.
|

May 15th, 2010, 03:49 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|

May 16th, 2010, 10:50 PM
|
Friend of Wrox
|
|
Join Date: Jun 2007
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
|
|
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.
|

May 17th, 2010, 01:58 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|

May 17th, 2010, 01:37 PM
|
Friend of Wrox
|
|
Join Date: Jun 2007
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
|
|
Quote:
Originally Posted by 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.
|
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 |
|
 |