Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics 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
 
Old April 5th, 2005, 01:32 PM
Authorized User
 
Join Date: Feb 2004
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default Mac screen layout (ASP) lost

The ASP/HTML code does seem to allow all our formatting code and table strucutre on a Mac o/s (using IE for mac ver 5.0). That is the the screen layout is lost.
www.nsia.ca/
Am told there is one line of code that will correct this?
Any thoughts - thx!


Jorge
__________________
Jorge
 
Old May 3rd, 2005, 02:20 PM
Authorized User
 
Join Date: Feb 2004
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

We resolved the issue by rearranging and redesigning the html coding and using smaller tables and sub-tables, and therefore compliant with the Firefox browser and Netscape browser

Jorge
 
Old May 3rd, 2005, 02:41 PM
Authorized User
 
Join Date: Feb 2004
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

One common change was,
<style>
.leftmenu
{
    COLOR: #000000;
    BACKGROUND-IMAGE: 'url(../images/ffcc00_208.gif)';
    FONT-SIZE: 9pt;
    FONT-WEIGHT: bold;
    FONT-FAMILY: Tahoma, Arial, Verdana;
    PADDING: 3px;
    BORDER: 0px;
    TEXT-DECORATION: none;
    WIDTH: 208;
    HEIGHT:20;
    CURSOR: default;
}

.button2
{
    COLOR: #000080;
    BACKGROUND-COLOR: #ffd700;
    FONT-SIZE: 9pt;
    FONT-WEIGHT: bold;
    FONT-FAMILY: Arial, Verdana;
    PADDING: 3px;
    BORDER: 2px;
    BORDER-TOP-COLOR: #e0e0e0;
    BORDER-LEFT-COLOR: #e0e0e0;
    BORDER-BOTTOM-COLOR: #444444;
    BORDER-RIGHT-COLOR: #444444;
    BORDER-STYLE: solid;
    TEXT-DECORATION: none;
    WIDTH: 208;
    HEIGHT: 16;
    CURSOR: default;
}

.button3
{
    COLOR: #000000;
    BACKGROUND-COLOR: #e0f0ff;
    FONT-SIZE: 9pt;
    FONT-WEIGHT: bold;
    FONT-FAMILY: Arial, Verdana;
    PADDING: 1px;
    BORDER: 2px;
    BORDER-TOP-COLOR: #e0e0e0;
    BORDER-LEFT-COLOR: #e0e0e0;
    BORDER-BOTTOM-COLOR: #444444;
    BORDER-RIGHT-COLOR: #444444;
    BORDER-STYLE: solid;
    TEXT-DECORATION: none;
    WIDTH: 204;
    HEIGHT: 16;
    CURSOR: default;
}
</style>




Original HTML code:
-------------------


    <a id="ref3Id" href="javascript:showResponse('Pro');" class="button2" style="color:#ffffff;" OnMouseOver="getElementById('ref3Id').style.color= '#ffd700'" OnMouseOut="getElementById('ref3Id').style.color=' #ffffff'">Company Profile...</a><br>
    <div id="Pro"<% If StrComp(Right(Request.ServerVariables("URL"),9),"U sers.asp",1) = 0 Then %> style="DISPLAY: none"<% End if %>>
        <a href="editprofile.asp" class="button3">Edit Company Information</a><br>
        <a href="product.asp" class="button3">Edit Brand/Products</a><br>
        <a href="employee.asp" class="button3">Edit Head Office Personnel</a><br>
        <a href="rep.asp" class="button3">Edit Sales Representatives</a><br>
        <a href="searchresults.asp?FromProfileLogin=1&SearchB y=2" class="button3">View Profile</a><br>
        <a href="javascript:pop_upc('comments.asp?Comments=<% =cmts%>')" class="button3">Help on Profile</a><br>
    </div>

    <a id="ref4Id" href="AccountAgingbyCustomer_Result.asp?UserId=<%= UserId%>&TxtFormat=false&ShowCredits=1" class="button2" style="color:#ffffff;">Statement of Account</a><br>



Code (new form) so that it works for FireFox as well as I.E.
------------------------------------------------------------

    <table border="0" cellpadding="0" cellspacing="0" style="width:208;height:22;">
        <tr><td id="ref3Id" class="leftmenu" OnClick="javascript:showResponse('Pro');" OnMouseOver="getElementById('ref3Id').style.color= '#0066ff';" OnMouseOut="getElementById('ref3Id').style.color=' #000000';">
            Company Profile...
        </td></tr><tr><td height="2"></td></tr></table>
        <table id="Pro" border="0" cellpadding="0" cellspacing="0"<% If StrComp(Right(Request.ServerVariables("URL"),9),"U sers.asp",1) = 0 Then %> style="DISPLAY: none"<% End if %>>
            <tr><td id="submenu31Ida" class="button3" OnClick="window.location.href='editprofile.asp';" OnMouseOver="getElementById('submenu31Ida').style. color='#0066ff';" OnMouseOut="getElementById('submenu31Ida').style.c olor='#000000';">Edit Company Information</td></tr>
            <tr><td id="submenu32Ida" class="button3" OnClick="window.location.href='product.asp';" OnMouseOver="getElementById('submenu32Ida').style. color='#0066ff';" OnMouseOut="getElementById('submenu32Ida').style.c olor='#000000';">Edit Brand/Products</td></tr>
            <tr><td id="submenu33Ida" class="button3" OnClick="window.location.href='employee.asp';" OnMouseOver="getElementById('submenu33Ida').style. color='#0066ff';" OnMouseOut="getElementById('submenu33Ida').style.c olor='#000000';">Edit Head Office Personnel</td></tr>
            <tr><td id="submenu34Ida" class="button3" OnClick="window.location.href='rep.asp';" OnMouseOver="getElementById('submenu34Ida').style. color='#0066ff';" OnMouseOut="getElementById('submenu34Ida').style.c olor='#000000';">Edit Sales Representatives</td></tr>
            <tr><td id="submenu35Ida" class="button3" OnClick="window.location.href='searchresults.asp?F romProfileLogin=1&SearchBy=2';" OnMouseOver="getElementById('submenu35Ida').style. color='#0066ff';" OnMouseOut="getElementById('submenu35Ida').style.c olor='#000000';">View Profile</td></tr>
            <tr><td id="submenu36Ida" class="button3" OnClick="javascript:pop_upc('comments.asp?Comments =<%=cmts%>');" OnMouseOver="getElementById('submenu36Ida').style. color='#0066ff';" OnMouseOut="getElementById('submenu36Ida').style.c olor='#000000';">Help on Profile</td></tr>
        </table>

    <table border="0" cellpadding="0" cellspacing="0" style="width:208;height:22;">
        <tr><td id="ref4Id" class="leftmenu" OnClick="window.location.href='AccountAgingbyCusto mer_Result.asp?UserId=<%=UserId%>';" OnMouseOver="getElementById('ref4Id').style.color= '#0066ff';" OnMouseOut="getElementById('ref4Id').style.color=' #000000';">
            Statement of Account
        </td></tr><tr><td height="2"></td></tr></table>




Jorge
 
Old May 3rd, 2005, 06:53 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

People still use NS?

If your screen layout is not looking as it is supposed to; check your HTML visually (good formatting and indentation is very important) and perhaps with a validater

FYI: always use tables.
BTW: I like the theme of your site - I done 14 northern/southern winters making snow and driving cats...


Wind is your friend
Matt
 
Old May 10th, 2005, 11:18 AM
Authorized User
 
Join Date: Feb 2004
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thx Matt,
Formatting, indention was part of the issue! Note one validator we found is http://validator.w3.org/
Table/subtables was the other part of the solution
Everything seems ok in Firefox/Mac (and NS!)
 ...thx we love the snow too!!!
FYI - the (beta) site is http://www.nsia.ca/nsia1.asp (to be migrated to http://www.nsia.ca by mid-May)



Jorge





Similar Threads
Thread Thread Starter Forum Replies Last Post
session variable lost after redirec in classic ASP beetle_jaipur Classic ASP Professional 8 November 21st, 2008 02:18 AM
asp variables not showing in mac browsers monstermash Classic ASP Professional 2 November 8th, 2006 02:50 PM
set the Tabindex Of ASP.net controls on MAC machin sudhirikke ASP.NET 2.0 Basics 0 May 17th, 2006 10:04 AM
write file to mac OS using ASP Lamox Classic ASP Basics 0 December 21st, 2004 06:43 AM





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