Saturday, March 24, 2012

Working with firefox

Can anyone give me some pointers on how to make sure my pages work infirefox? I just created a basic application that works fine in IEbut in firefox it wasn't even recognizable.
Hi there,
Can you actually see your pages in firefox ?
Firefox is less forgiving on HTML errors, unlike IE. you may want to tody us your styles and HTML.
HTH

Can you view any of your pages in firefox? There are some differences between it an IE, but you would have to have some major discrepencies to not even be able to view your pages in IE. Do you have javascript or any scripts in your page? Let us know a little more about what is going on.
smtraber
Here are a couple of classic issues:
1. The formatting is wrong. This is because all browsers other than IE and IE/Mac are considered "downlevel" browsers without support for the style= attribute that handles most of the formatting.
Try setting <@. Page clientTarget="upLevel">. If it works, read about it and the "BrowserCapabilities" classes in the .net docs to learn how the clientTarget feature makes HTML output consistent (or different) between browsers.
2. Client-side validation does not work. There is a topic about this issue in this article:www.aspalliance.com/699.
Thanks everyone for your replies. Just to confirm I my pages in firefox are ridiculously screwed up. I've got the traditional 3-column layout but in ff the conten is on the outside of the panels. It's weird. I'm guessing it has to do with the stylesheet. I'm still learning about those. So if ff doesn't support the style attribute then how can you make use of css?
FireFox offers the style attribute and supports style sheets very, very well. Its ASP.NET that doesn't render the style tags until you deal with the browsercapabilities or at least set <@. Page clientTarget="upLevel" >.
Hi there,
or you can place following in your web.config
<browserCaps>
tagwriter=System.Web.UI.HtmlTextWriter
</browserCaps>
Regards,
Sunny

I've working at this for awhile and not having a whole lot ofluck. I'm trying your idea but maybe I'm doing somethingwrong. It already had <%@. Page Language="vb"
So I changed this to:
<%@. Page Language="vb" clientTarget="upLevel"
Was that correct to do?

If you do your best to conform to web-standards (as best as ASP.NET 1.1 will allow anyway) you shouldnt have much trouble with cross-browser compatability... especially if you are using XMHML & CSS
Did you mean to say XHTML? Can you send me some links on how I would implement that? Do you use that instead HTML?
Yes :) I meant to type XHTML. And yes, I code all my sites nowadays in XHTML and stylize with CSS.
For a good primer on XHTML+CSS read some of Jeffery Zeldman's articles/books.. this is a pretty good one:http://www.alistapart.com/articles/betterliving/

0 comments:

Post a Comment