NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Web Design Discussion
Reload this Page Wierd FireFox problem! HELP!

Web Design Discussion Discussion of web design techniques, advice, browser issues, software, design firms.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 03-23-2005, 01:53 PM THREAD STARTER               #1 (permalink)
New Member
Join Date: Mar 2005
Posts: 4
ChrisK76 is an unknown quantity at this point
 



Awful Wierd FireFox problem! HELP!


Hi everyone. I have put together a website for the school I work for, which allows our staff to log in and write reports for the kids.
I designed it using Visual Studio .NET 2003, and it's coded in ASP.NET. When I view it in IE, everything works perfectly.

I assumed no-one would worry about it working on other browsers, but it turns out loads of the staff use FireFox, and I have a problem! When I view the pages using FireFox on the internet, the layout is wrong, the sizes of buttons and controls are wrong, and it looks a mess.

BUT! if I load the page on IE, and then save the page as an HTML file, and open the saved page in FireFox, it displays as originally intended. (Even though if it loads straight into FireFox its all wrong)...

What on earth is going on?! I don't understand...

Oh, and if I save the page source from FireFox, and open it up in IE, it shows incorrectly there too. I assume that something is going wrong at the time the page is generated as the pages either work on both browsers (if IE served the page) or don't work on both browsers (if FF served the page)......?

I just examined the page source, and when the browser requesting the page from the server is FireFox, various elements are missing from the style attribute on many items on the page, that are otherwise present if the browser requesting the page is IE. I haven't coded anything that would do this, so why are my webpages selectively not sending information to some browsers?
Last edited by ChrisK76; 03-23-2005 at 02:15 PM.
ChrisK76 is offline  
Old 03-23-2005, 03:15 PM   #2 (permalink)
Senior Member
 
nomis135's Avatar
Join Date: Mar 2005
Location: Quebec, Canada
Posts: 2,023
nomis135 is a name known to allnomis135 is a name known to allnomis135 is a name known to allnomis135 is a name known to allnomis135 is a name known to allnomis135 is a name known to allnomis135 is a name known to allnomis135 is a name known to all
 



I think thats because of your tables. You probably didn't make them fit to the exact pixel or %
nomis135 is offline  
Old 03-23-2005, 03:34 PM   #3 (permalink)
Senior Member
Join Date: Nov 2004
Location: The Land of Oz
Posts: 1,679
omnia is a splendid one to beholdomnia is a splendid one to beholdomnia is a splendid one to beholdomnia is a splendid one to beholdomnia is a splendid one to beholdomnia is a splendid one to beholdomnia is a splendid one to beholdomnia is a splendid one to behold
 



Cant be specific without seeing the code. Can you post a url? One of the basic rules when you produce a website, check it out in as many differenet browsers and versions of them as possible. Did you use any strictly IE tags etc? etc etc.
omnia is offline  
Old 03-23-2005, 04:11 PM THREAD STARTER               #4 (permalink)
New Member
Join Date: Mar 2005
Posts: 4
ChrisK76 is an unknown quantity at this point
 



Originally Posted by nomis135
I think thats because of your tables. You probably didn't make them fit to the exact pixel or %
I wish... :-(

I have no tables on the page. Just (in VS.NET speak) a panel, three combo-boxes (drop down lists) and a couple of buttons. In the HTML code sent to the browser, if IE requests the page, i get (for example, on DropDownList1):

<select name="DropDownList1" onchange="__doPostBack('DropDownList1','')" language="javascript" id="DropDownList1" class="DropDown" style="background-color:Transparent;font-family:Arial;font-size:X-Small;height:40px;width:272px;Z-INDEX: 101; LEFT: 600px; POSITION: absolute; TOP: 64px">
<option value="--- Select year group ---">--- Select year group ---</option>
<option value="7">Year 7</option>
<option value="8">Year 8</option>
<option value="9">Year 9</option>
<option value="10">Year 10</option>
<option value="11">Year 11</option>

</select>

If the page is requested by FireFox, I get:

<select name="DropDownList1" onchange="__doPostBack('DropDownList1','')" language="javascript" id="DropDownList1" class="DropDown" style="Z-INDEX: 101; LEFT: 600px; POSITION: absolute; TOP: 64px">

<option value="--- Select year group ---">--- Select year group ---</option>
<option value="7">Year 7</option>
<option value="8">Year 8</option>
<option value="9">Year 9</option>
<option value="10">Year 10</option>
<option value="11">Year 11</option>

</select>

The key thing is that there is no width or height tag in the style list. Why does it not get sent if FF requests the page?

The ASP.NET code is:

<asp:dropdownlist id="DropDownList1" style="Z-INDEX: 101; LEFT: 600px; POSITION: absolute; TOP: 64px"
runat="server" Width="272px" Height="40px" AutoPostBack="True" Font-Names="Arial" Font-Size="X-Small"
????: NamePros.com http://www.namepros.com/web-design-discussion/77300-wierd-firefox-problem-help.html
BackColor="Transparent" CssClass="DropDown">
<asp:ListItem Value="--- Select year group ---">--- Select year group ---</asp:ListItem>
<asp:ListItem Value="7">Year 7</asp:ListItem>
<asp:ListItem Value="8">Year 8</asp:ListItem>
<asp:ListItem Value="9">Year 9</asp:ListItem>
<asp:ListItem Value="10">Year 10</asp:ListItem>
<asp:ListItem Value="11">Year 11</asp:ListItem>
</asp:dropdownlist>

Sorry about the formatting, hope you can see what's going on there though. I would love to post a URL to the site, but as it contains loads of personal data I can't do that...

Chris
ChrisK76 is offline  
Old 03-23-2005, 04:27 PM   #5 (permalink)
Senior Member
Join Date: Jan 2005
Location: USA
Posts: 1,149
hotrod12 has a spectacular aura abouthotrod12 has a spectacular aura about
 



Do you use dreamweaver? If you dont you should get the trial and use it to specifically see the errrors in the code. http://www.macromedia.com/go/trydreamweaver
hotrod12 is offline  
Old 03-23-2005, 04:35 PM THREAD STARTER               #6 (permalink)
New Member
Join Date: Mar 2005
Posts: 4
ChrisK76 is an unknown quantity at this point
 



Originally Posted by hotrod12
Do you use dreamweaver? If you dont you should get the trial and use it to specifically see the errrors in the code. http://www.macromedia.com/go/trydreamweaver
What a star...

In dreamweaver, it showed that the .aspx file didn't have the width and height tags within the style="..." line, but rather as separate entries. IE must have been happy with these, and reformatted the HTML as it came in to display the items as VS.NET intended, whereas FF was working with what it was sent, and only understood the attributes within the style="..." bit.
????: NamePros.com http://www.namepros.com/showthread.php?t=77300

Anyway, it was much easier to see this in the DreamWeaver layout, and this has allowed me to edit my aspx files, and now the site works on FF as well as IE!

Hooray! Thanks for the rapid help guys.
Chris
ChrisK76 is offline  
Old 03-23-2005, 05:11 PM   #7 (permalink)
Senior Member
Join Date: Jan 2005
Location: USA
Posts: 1,149
hotrod12 has a spectacular aura abouthotrod12 has a spectacular aura about
 



Glad that dreamweaver was able to help you out!!!
hotrod12 is offline  
Old 03-24-2005, 03:51 AM   #8 (permalink)
NamePros Regular
 
Rowan W's Avatar
Join Date: Dec 2004
Location: QLD, Australia
Posts: 713
Rowan W will become famous soon enough
 



Also glad that Firefox wasn't actually displaying the page "wrongly".

I've seen IE do a lot of other things like this, where it thinks it knows best and applies values to elements it was never told to. This may be good in some ways, but it means people could continue to use bad code without knowing.

Anyway, good to here you sorted it out.
Rowan W is offline  
Old 03-24-2005, 07:32 AM   #9 (permalink)
Senior Member
Join Date: Jan 2005
Location: USA
Posts: 1,149
hotrod12 has a spectacular aura abouthotrod12 has a spectacular aura about
 



Yeah and unfortunely all sites are not fully compatible with firefox yet so we will have to keep IE around for a little while but hopefully soon all websites will work perfectly in firefox.
hotrod12 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why We Didn't Have A Drug Problem dgridley The Break Room 0 03-13-2005 08:26 AM
Problem with firefox display - div width volos Web Design Discussion 3 02-03-2005 10:10 AM
For those of you who dont use FireFox GamingHybrid The Break Room 21 09-12-2004 01:51 AM
Firefox 1.0 scheduled for September 14th aww Industry News 3 07-15-2004 06:41 PM
Problem with Mozilla Firefox Ace02 The Break Room 1 06-23-2004 10:30 PM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 11:59 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger