Safari browser problem...

Ask a Question related to Coldfusion - Getting Started, Design and Development.

  1. #1

    Default Safari browser problem...

    In Safari mac and ONLY Safari mac, this clump of code pushes the whole page
    down...any ideas why?


    <CFIF isdefined("EmailAddress")>
    <cfset LF = chr(13) & chr(10)>
    <cfset semail ="tmort@nootgroup.com" >
    <cfmail from="contactus@flatheadshores.com" to="#semail#" subject="The Shores
    of Flathead Lake E-mail A Friend">
    FROMEMAIL: #EmailAddress# #LF#
    EMAIL1: #EMAIL1# #LF#
    EMAIL2: #EMAIL2# #LF#
    EMAIL3: #EMAIL3# #LF#
    EMAIL4: #EMAIL4# #LF#
    </cfmail>
    <cfset sent="Information has been sent to the email(s) provided. Thank you for
    your interest.">
    </cfif>





    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Thank You</title>

    <meta name="description" content="Welcome"/>

    <meta name="keywords" content=""/>

    <META NAME="copyright" CONTENT="All content on the web site is copyrighted.
    All rights are reserved."/>
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_reloadPage(init) { //reloads the window if Nav4 resized
    if (init==true) with (navigator) {if
    ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
    onresize=MM_reloadPage; }}
    else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
    location.reload();
    }
    MM_reloadPage(true);

    function MM_swapImgRestore() { //v3.0
    var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++)
    x.src=x.oSrc;
    }

    function MM_preloadImages() { //v3.0
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
    }

    function MM_findObj(n, d) { //v4.01
    var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
    if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
    x=d.forms[n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++)
    x=MM_findObj(n,d.layers.document);
    if(!x && d.getElementById) x=d.getElementById(n); return x;
    }

    function MM_swapImage() { //v3.0
    var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
    for(i=0;i<(a.length-2);i+=3)
    if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src;
    x.src=a[i+2];}
    }
    //-->
    </script>
    <cfset sent="">
    ...

    DesignIt_ng Guest

  2. Similar Questions and Discussions

    1. coldfusion fash safari browser
      Hi My below code dosent work in safari browser any idea? Thanks -Ajith
    2. video recording Problem with safari browser
      hi, I am facing problem with safari browser on mac machine. I have created a sample application for video recording it is working on IE, mozila,...
    3. Browser check for Safari and Firefox
      Does anyone know where I can find an extension to enable a page to check for above browsers and then redirect if either are detected? Or, does any...
    4. ASPFileUploads not working with MAC Safari browser
      Using ASPFileUpload (http://support.microsoft.com/default.aspx?scid=kb;en-us;299692) and works for IE6 and FireFox but not Safari. Thanks in...
    5. mouse.hide problem in Safari browser on Mac
      I have a problem with a script that should be triggered by rolling over a movie clip. The cursor/pointer should disappear with the Mouse.hide...
  3. #2

    Default Re: Safari browser problem...

    cont...

    <style type="text/css">
    <!--
    /* CSS Document */

    body {
    background-color:#883300;
    }

    #container {
    position:absolute;
    width:800px;
    left:50%;
    margin-top:10px;
    margin-left:-400px;
    background-color:#FFEEBB;
    z-index: 3;
    }

    #footer {
    clear: both;
    padding: 0px;
    margin-top: 0px;
    background-color:#FFEEBB;
    left: 0px;
    }


    #banner {
    padding: 0px;
    margin-bottom: 0px;
    background-color:#FFEEBB;
    width:800px;
    height: 180px;
    }

    #banner_thankyou {
    padding: 0px;
    margin-bottom: 0px;
    background-color:#FFEEBB;
    width:800px;
    height: 103px;
    }




    #layer_backhome {
    position:absolute;
    width:61px;
    height:12px;
    z-index:3;
    top: 552px;
    left: 12px;
    }

    #layer_backhome_ty {
    position:absolute;
    width:61px;
    height:12px;
    z-index:4;
    top: 412px;
    left: 12px;
    }

    -->
    </style>
    <CFIF isdefined("EmailAddress")>
    <cfset LF = chr(13) & chr(10)>
    <cfset semail ="tmort@nootgroup.com" >
    <cfmail from="contactus@flatheadshores.com" to="#semail#" subject="The Shores
    of Flathead Lake E-mail A Friend">
    FROMEMAIL: #EmailAddress# #LF#
    EMAIL1: #EMAIL1# #LF#
    EMAIL2: #EMAIL2# #LF#
    EMAIL3: #EMAIL3# #LF#
    EMAIL4: #EMAIL4# #LF#
    </cfmail>
    <cfset sent="Information has been sent to the email(s) provided. Thank you for
    your interest.">
    </cfif>
    <link
    href="counter/exit.cgi?file:///Archive/z-WEB/DEV/dev.theshores/stylesheets/globa
    lstyles_v4.css" class="postlink" rel="nofollow" rel="stylesheet"
    type="text/css" />
    </head>
    <body
    onload="MM_preloadImages('file:///Archive/z-WEB/DEV/dev.theshores/images/btn_rep
    layintroover.gif')">
    <div id="container">
    <div id="layer_thankyoucopy">
    <div class="COPY_left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Th ank you for requesting
    information about us. We will carefully respect your privacy and rush you our
    latest information as quickly as possible. Hopefully you will agree that there
    is no place like this plane anyplace! </div>
    </td>
    </div>
    <div id="layer_backhome_ty"><a
    href="counter/exit.cgi?file:///Archive/z-WEB/DEV/dev.theshores/index.html"
    class="postlink" rel="nofollow" onmouseout="MM_swapImgRestore()"
    onmouseover="MM_swapImage('HOME','','file:///Archive/z-WEB/DEV/dev.theshores/ima
    ges/btn_backhomeover.gif',1)"><img
    src="file:///Archive/z-WEB/DEV/dev.theshores/images/btn_backhome.gif"
    alt="HOME" name="HOME" width="61" height="12" border="0" id="HOME" /></a></div>

    <div id="layer_replay_ty"><img src="" alt="replayintrobtn" name="replayintro"
    width="208" height="12" id="replayintro" /></div>


    <div id="Footer" style="position:absolute; width:200px; height:115px;
    z-index:1; top: 300px; left: 0px;"><img src="" alt="footer" name="footer"
    width="800" height="115"/>
    <map name="Map" id="Map">
    <area shape="rect" coords="85,9,228,143"
    href="counter/exit.cgi?file:///Archive/z-WEB/DEV/dev.theshores/index.html"
    class="postlink" rel="nofollow" target="_self" alt="THE SHORES OF FLATHEAD
    LAKE" />
    </map>
    </div>
    <div id="layer_thankyouform">
    <cfform action="shores_thanks.cfm" method="POST" enablecab="Yes">
    <table width="450" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td colspan="2"><span class="contactus_mainhead"><img
    src="file:///Archive/z-WEB/DEV/dev.theshores/images/title_emailafriend.gif"
    width="243" height="21" alt="E-MAIL A FRIEND."/></span></td>
    </tr>
    <tr>
    <td colspan="2"><img
    src="file:///Archive/z-WEB/DEV/dev.theshores/images/spacer_tan.gif" height="10"
    width="1"/></td>
    </tr>
    <tr>
    <td colspan="2" class="bodycopy_right">To forward information to a friend,
    simply fill in your email address and your friend's e-mail addresses below,
    then click,&rdquo;SEND&rdquo;.</td>
    </tr>
    <tr>
    <td colspan="2"><img
    src="file:///Archive/z-WEB/DEV/dev.theshores/images/spacer_tan.gif" height="10"
    width="1"/></td>
    </tr>
    <tr>
    <td colspan="2">

    <table width="450" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td colspan="2" class="bodycopy_right">Your e-mail address:&nbsp;&nbsp;
    <cfINPUT NAME="EmailAddress" TYPE="text" SIZE=12 required="yes"
    message="Please enter your email address">
    </span></td>
    <td width="100" rowspan="5"><img
    src="file:///Archive/z-WEB/DEV/dev.theshores/images/spacer_tan.gif" width="1"
    height="1"></td>
    </tr>

    <tr>
    <td colspan="2"><img
    src="file:///Archive/z-WEB/DEV/dev.theshores/images/spacer_tan.gif" height="10"
    width="1"/></td>
    </tr>

    <tr>
    <td width="150" class="bodycopy_right">E-mail #1</td>
    <td width="150" class="bodycopy_right">Email #2</td>
    </tr>
    <tr>
    <td><cfinput type="Text" name="Email1" required="Yes" size="12"
    message="Please enter at least one email address"></td>
    <td><cfinput type="Text" name="Email2" required="No" size="12"></td>
    </tr>
    <tr>
    <td class="bodycopy_right">E-mail #3</td>
    <td class="bodycopy_right">E<span class="style1">mail #</span>4</td>
    </tr>
    <tr>
    <td><cfinput type="Text" name="Email3" required="No" size="12"></td>
    <td><cfinput type="Text" name="Email4" required="No" size="12"></td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td colspan="2"><img
    src="file:///Archive/z-WEB/DEV/dev.theshores/images/spacer_tan.gif" height="10"
    width="1"/></td>
    </tr>
    <tr>
    <td colspan="2">
    <input type=image
    src="file:///Archive/z-WEB/DEV/dev.theshores/images/btn_send.gif" alt="SEND"
    name="send" width="60" height="22" border="0" id="send" />
    &nbsp;&nbsp;&nbsp;&nbsp;<span
    class="sendresponse"><cfoutput>#sent#</cfoutput></span></td>
    </tr>
    </table>
    </cfform>
    </div>
    <div id="banner"><img src="" alt="thankyoutitle" name="thankyoutitle"
    width="800" height="103" id="thankyoutitle" /></div>
    <div id="content"><img
    src="file:///Archive/z-WEB/DEV/dev.theshores/images/contactus_tan.gif"
    width="800" height="220" alt="background"/></div>
    </div>
    </body>
    </html>

    DesignIt_ng Guest

  4. #3

    Default Re: Safari browser problem...

    I ran into a very similar problem before; I coded a variable to hold the
    "carriage return/line-feed" combination. However, in some browsers this is
    interpreted like a html-coded "<br>" tag. Suggestion/Solution, remove your
    declarations of "#LF#".

    The "returns" that you currently have from line-to-line on the cfml code
    should suffice in making your "code" adhere to the "carriage-return/line-feed"
    combo (e.g. each newline after the consecutively placed statements"EMAIL1:
    #EMAIL1# #LF#") .

    Letting me know what happens after applying this logic.

    JiG

    jiggar Guest

  5. #4

    Default Re: Safari browser problem...

    Does the whole page get pushed down whether "EmailAddress" is defined or not?
    Kronin555 Guest

  6. #5

    Default Re: Safari browser problem...

    Originally posted by: jiggar
    I ran into a very similar problem before; I coded a variable to hold the
    "carriage return/line-feed" combination. However, in some browsers this is
    interpreted like a html-coded "<br>" tag. Suggestion/Solution, remove your
    declarations of "#LF#".

    The "returns" that you currently have from line-to-line on the cfml code
    should suffice in making your "code" adhere to the "carriage-return/line-feed"
    combo (e.g. each newline after the consecutively placed statements"EMAIL1:
    #EMAIL1# #LF#") .

    Letting me know what happens after applying this logic.

    JiG

    Tried your suggestion. Didn't work. =\



    DesignIt_ng Guest

  7. #6

    Default Re: Safari browser problem...

    Originally posted by: Kronin555
    Does the whole page get pushed down whether "EmailAddress" is defined or not?

    Not sure what you mean but if I remove all the cfm code shown, the page
    returns to normal.



    DesignIt_ng Guest

  8. #7

    Default Re: Safari browser problem...

    when you view source on the page that has the blank space at the top, where
    your code looks like this:

    </style>
    <CFIF isdefined("EmailAddress")>
    <cfset LF = chr(13) & chr(10)>
    <cfset semail ="me@somewhere.com" >
    <cfmail from="contactus@somewhere.com" to="#semail#" subject="E-mail A Friend">
    FROMEMAIL: #EmailAddress# #LF#
    EMAIL1: #EMAIL1# #LF#
    EMAIL2: #EMAIL2# #LF#
    EMAIL3: #EMAIL3# #LF#
    EMAIL4: #EMAIL4# #LF#
    </cfmail>
    <cfset sent="Information has been sent to the email(s) provided. Thank you for
    your interest.">
    </cfif>
    <link

    Does the source have anything but blank lines/spaces where the coldfusion code
    was? Does it look like this?:

    </style>













    <link

    Kronin555 Guest

  9. #8

    Default Re: Safari browser problem...

    Originally posted by: Kronin555
    when you view source on the page that has the blank space at the top, where
    your code looks like this:

    </style>
    <CFIF isdefined("EmailAddress")>
    <cfset LF = chr(13) & chr(10)>
    <cfset semail ="me@somewhere.com" >
    <cfmail from="contactus@somewhere.com" to="#semail#" subject="E-mail A Friend">
    FROMEMAIL: #EmailAddress# #LF#
    EMAIL1: #EMAIL1# #LF#
    EMAIL2: #EMAIL2# #LF#
    EMAIL3: #EMAIL3# #LF#
    EMAIL4: #EMAIL4# #LF#
    </cfmail>
    <cfset sent="Information has been sent to the email(s) provided. Thank you for
    your interest.">
    </cfif>
    <link

    Does the source have anything but blank lines/spaces where the coldfusion code
    was? Does it look like this?:

    </style>













    <link

    No, there is no blank space.

    DesignIt_ng Guest

  10. #9

    Default Re: Safari browser problem...

    > if I remove all the cfm code shown, the page returns to normal.

    So you're saying that if you remove this code:
    <CFIF isdefined("EmailAddress")>
    <cfset LF = chr(13) & chr(10)>
    <cfset semail ="me@somewhere.com" >
    <cfmail from="contactus@somewhere.com" to="#semail#" subject="E-mail A Friend">
    FROMEMAIL: #EmailAddress# #LF#
    EMAIL1: #EMAIL1# #LF#
    EMAIL2: #EMAIL2# #LF#
    EMAIL3: #EMAIL3# #LF#
    EMAIL4: #EMAIL4# #LF#
    </cfmail>
    <cfset sent="Information has been sent to the email(s) provided. Thank you for
    your interest.">
    </cfif>

    Then the blank space at the top of the page goes away in Safari? Or are you
    removing other stuff as well?


    Kronin555 Guest

  11. #10

    Default Re: Safari browser problem...

    Why do you have this </td> in there?

    <div class="COPY_left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Th ank you for requesting
    information about us. We will carefully respect your privacy and rush you our
    latest information as quickly as possible. Hopefully you will agree that there
    is no place like this plane anyplace! </div>
    </td>
    </div>

    Kronin555 Guest

  12. #11

    Default Re: Safari browser problem...

    Looks like you also might have an extra </div> at the end of the file. I suggest you run your generated HTML through a validator:
    [url]http://validator.w3.org/[/url]
    Kronin555 Guest

  13. #12

    Default Re: Safari browser problem...

    Originally posted by: Kronin555
    > if I remove all the cfm code shown, the page returns to normal.
    So you're saying that if you remove this code:
    <CFIF isdefined("EmailAddress")>
    <cfset LF = chr(13) & chr(10)>
    <cfset semail ="me@somewhere.com" >
    <cfmail from="contactus@somewhere.com" to="#semail#" subject="E-mail A Friend">
    FROMEMAIL: #EmailAddress# #LF#
    EMAIL1: #EMAIL1# #LF#
    EMAIL2: #EMAIL2# #LF#
    EMAIL3: #EMAIL3# #LF#
    EMAIL4: #EMAIL4# #LF#
    </cfmail>
    <cfset sent="Information has been sent to the email(s) provided. Thank you for
    your interest.">
    </cfif>

    Then the blank space at the top of the page goes away in Safari? Or are you
    removing other stuff as well?


    That is correct, when I remove the code above, the blank space at the top of
    the page goes away in Safari; of course the form doesn't work. =)


    DesignIt_ng Guest

  14. #13

    Default Re: Safari browser problem...

    Anyone else have any ideas?
    DesignIt_ng Guest

  15. #14

    Default Re: Safari browser problem...

    Did you read my other posts? It looks like you have some extraneous </td>s and
    </div>s. I suggest you get your HTML in order, and validated. Then if it
    doesn't look right in a browser, any browser, post back.

    Kronin555 Guest

  16. #15

    Default Re: Safari browser problem...

    the /td and the /divs aren't causing the problem. I removed the /td and the
    /divs are all set correct. I was thinking it might be possible to attach the
    code on a separate sheet instead of including it on this page.

    DesignIt_ng Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139