Professional Web Applications Themes

internet explorer and netscape - Coldfusion - Getting Started

in IE my page sends a form variable to a recieving page which populates that page with dynamice data from an Access database correctly. Netscape unfortunately gives me this error Element ZIP_CODE is undefined in FORM. The error occurred in E:\CFusionMX\wwwroot\RealEstateSite\With_fl\Html\a rea_stats_processor.cfm: line 2 1 : <cfquery name='community' datasource='realestate'> 2 : SELECT * FROM area_stats WHERE Zip_Code = #FORM.Zip_Code# 3 : </cfquery> 4 : <cfparam name='FORM.Zip_Code' default='1'> Can anyone help decipher what would be changed so that both browsers would both function equally well? Thanks Just a side note as well. Netscape underlines all the values in the list drop ...

  1. #1

    Default internet explorer and netscape

    in IE my page sends a form variable to a recieving page which populates that
    page with dynamice data from an Access database correctly. Netscape
    unfortunately gives me this error Element ZIP_CODE is undefined in FORM.
    The error occurred in
    E:\CFusionMX\wwwroot\RealEstateSite\With_fl\Html\a rea_stats_processor.cfm: line
    2 1 : <cfquery name='community' datasource='realestate'> 2 : SELECT * FROM
    area_stats WHERE Zip_Code = #FORM.Zip_Code# 3 : </cfquery> 4 : <cfparam
    name='FORM.Zip_Code' default='1'> Can anyone help decipher what would be
    changed so that both browsers would both function equally well? Thanks Just a
    side note as well. Netscape underlines all the values in the list drop down and
    overides the use of the submit button... making the only action required to
    submit the form variable (which doesn't work) scroll through the drop down list
    and stop on an entry... Please help. Thanks!

    AWZ Guest

  2. #2

    Default Re: internet explorer and netscape

    First, you want to move your <cfparam...> to the top of the page, above your
    cfquery.

    Second, because the problem is with the form page and not the submission page,
    you need to post the code for the form page.

    Kronin555 Guest

  3. #3

    Default Re: internet explorer and netscape

    ok... moving my <cfparam> to the top of the page did get rid of the error,
    HOWEVER the receiving page does not get any of the dynamic data from the
    database that the internet explorer page gets. It just leaves blank spaces
    where the dyanamic variable would be... The page that has the drop down list is
    soooo touchy, you mouse over a selection and BAM it's off to the next page
    without utilizing the form variable. It NEVER needs the submit button in
    Netscape. The code on the drop down list page is

    <cfquery name="rs_zipcode" datasource="realestate">
    SELECT id, Zip_Code FROM area_stats ORDER BY Zip_Code ASC
    </cfquery>
    <HTML>
    <HEAD>
    <TITLE>Area Stats</TITLE>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; cht=windows-1251">
    <LINK HREF="style.css" TYPE="text/css" REL="stylesheet">
    </HEAD>
    <BODY BGCOLOR=#000000 LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0
    rightmargin="0" bottommargin="0">
    <center>
    <TABLE WIDTH=718 height="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0>
    <TR>
    <TD> <TABLE WIDTH=718 BORDER=0 CELLPADDING=0 CELLSPACING=0>
    <TR>
    <TD height="100%"> <TABLE WIDTH=457 BORDER=0 CELLPADDING=0
    CELLSPACING=0 height="100%">
    <TR>
    <TD> <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
    rsion=6,0,29,0" width="457" height="183">
    <param name="movie" value="Flash/menu1.swf">
    <param name="quality" value="high">
    <embed src="Flash/menu1.swf" quality="high"
    pluginspage="http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash" width="457" height="183"></embed>
    </object></TD>
    </TR>

    <TR>
    <TD bgcolor="#FFFFFF" background="images/5vline1.gif"
    style="background-position:top right; background-repeat:no-repeat "
    height="100%"><div
    style="padding-top:13px;padding-left:15px;padding-right:10px; line-height:12px
    ">
    <p><img src="images/5text1.gif"> <br>
    <img src="images/spacer.gif" height="15px"><br>
    <span class="l"><strong>See what varying communities
    have
    to offer!<br>
    </strong></span><br>
    Check the stats on a few of Morgantown's varying zip
    codes.
    Simply pick a zip code from the drop down menu and
    look
    over the facts.<br>
    <img src="images/spacer.gif" height="10px"><br>
    </p>
    <table width="43%" border="0" cellpadding="0"
    cellspacing="0" id="ziptable">
    <tr>
    <td width="66%"> <form
    action="area_stats_processor.cfm" method="post" name="form" id="form">
    <p><a href="area_stats_processor.cfm"> </a><a
    href="area_stats_processor.cfm">
    <select name="zip_code" id="select2">
    <cfoutput query="rs_zipcode">
    <option value="#rs_zipcode.Zip_Code#"
    <cfif (isDefined("rs_zipcode.Zip_Code") AND rs_zipcode.Zip_Code EQ
    rs_zipcode.Zip_Code)>selected</cfif>>#rs_zipcode.Zip_Code#</option>
    </cfoutput>
    </select>
    </a></p>
    <p><a href="area_stats_processor.cfm">
    <input type="submit" name="Submit"
    value="Submit">
    </a> </p>
    </form></td>
    </tr>
    </table>
    <img src="images/zipcode.jpg" width="400" height="297">
    <p>&nbsp; </p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    </div>
    <img src="images/spacer.gif" height="10px"></TD>
    </TR>
    </TABLE></TD>
    <TD height="100%"> <TABLE WIDTH=261 BORDER=0 CELLPADDING=0
    CELLSPACING=0 height="100%">
    <TR>
    <TD background="images/10.jpg" WIDTH=261 HEIGHT=43 ><div
    align="right" class="top" style="padding-top:15px;padding-right:15px "> <a
    href="#" class="top"><strong>Log In</strong></a> &nbsp;&nbsp; New User? <a
    href="#" class="top"><strong>Sign Up!</strong></a> </div></TD>
    </TR>
    <TR>
    <TD>
    <TABLE WIDTH=261 BORDER=0 CELLPADDING=0 CELLSPACING=0>
    <TR>
    <TD>
    <TABLE WIDTH=255 BORDER=0 CELLPADDING=0 CELLSPACING=0>
    <TR>
    <TD bgcolor="#1C5870" WIDTH=255 HEIGHT=59 ><div
    style="padding-top:2px;padding-left:23px "><img src="images/pic4.jpg"
    align="left" style="margin-right:12px "><img src="images/spacer.gif"
    height="10px"><br>
    <img src="images/text4.gif"></div></TD>
    </TR>
    <TR>

    <TD background="images/13.gif" WIDTH=255 HEIGHT=42 ><div
    style="padding-top:14px;padding-left:18px "><img
    src="images/5text2.gif"></div></TD>
    </TR>
    <TR>
    <TD bgcolor="#237191" WIDTH=255 HEIGHT=366 ><div
    class="white" style="padding-top:20px;padding-left:20px;padding-right:15px;
    line-height:12px ">
    <p><img
    src="images/business_card_smaller.jpg" width="220" height="133"></p>
    <p>&nbsp;</p>
    </div></TD>
    </TR>






    </TABLE></TD>
    <TD bgcolor="#FFFFFF"> <IMG SRC="images/12.gif" WIDTH=6
    HEIGHT=467 ></TD>
    </TR>
    </TABLE></TD>
    </TR>
    <TR>
    <TD> <IMG SRC="images/8t1.gif" WIDTH=261 HEIGHT=8 ></TD>
    </TR>
    <TR>
    <TD background="images/bak9.gif" WIDTH=261 HEIGHT=100% ><div
    style="padding-top:16px;padding-left:14px;padding-right:15px; line-height:12px
    "><img src="images/5text3.gif">
    <br><img src="images/spacer.gif" height="8px"><br>
    </div></TD>
    </TR>

    </TABLE></TD>
    </TR>
    </TABLE></TD>
    </TR>
    <TR>
    <TD background="images/1.gif" WIDTH=718 HEIGHT=76 ><div
    style="padding-top:30px;padding-left:20px ">
    <strong><a href="index.cfm" class="white">Home</a> <a href="#"
    class="white" style="margin-left:25px ">About
    Us</a> <a href="building.cfm" class="white" style="margin-left:25px
    ">Building</a>
    <a href="buying.cfm" class="white" style="margin-left:25px
    ">Buying</a>
    <a href="selling.cfm" class="white" style="margin-left:25px
    ">Selling</a>
    <a href="moving.cfm" class="white" style="margin-left:25px
    ">Moving</a>
    <a href="cma.cfm" class="white" style="margin-left:25px ">Get a Free
    CMA</a> <a href="#" class="white" style="margin-left:25px ">Local</a>
    <a href="#" class="white" style="margin-left:25px ">Tools</a> <a
    href="#" class="white" style="margin-left:25px ">Help</a></strong>
    </div>
    <div align="right" class="white"
    style="padding-top:7px;padding-right:18px ">
    <strong>Real Estate</strong> &copy 2005 | <a href="privacy_policy.cfm"
    class="white">Privacy Policy</a> | <a href="#" class="white">Terms Of
    Use</a> </div></TD>
    </TR>
    <TR>
    <TD background="images/bak1.gif" WIDTH=718 HEIGHT=100% ></TD>
    </TR>
    </TABLE>
    </center>
    </BODY>
    </HTML>

    AWZ Guest

  4. #4

    Default Re: internet explorer and netscape

    and on the receiving page it is BTW... I really appreciate you looking at
    this and attempting to help. Thank you.

    <cfparam name="FORM.Zip_Code" default="1">
    <cfquery name="community" datasource="realestate">
    SELECT * FROM area_stats WHERE Zip_Code = #FORM.Zip_Code#
    </cfquery>

    <HTML>
    <HEAD>
    <TITLE>Area Stats</TITLE>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; cht=windows-1251">
    <LINK HREF="style.css" TYPE="text/css" REL="stylesheet">
    </HEAD>
    <BODY BGCOLOR=#000000 LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0
    rightmargin="0" bottommargin="0">
    <center>
    <TABLE WIDTH=718 height="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0>
    <TR>
    <TD> <TABLE WIDTH=718 BORDER=0 CELLPADDING=0 CELLSPACING=0>
    <TR>
    <TD height="100%"> <TABLE WIDTH=457 BORDER=0 CELLPADDING=0
    CELLSPACING=0 height="100%">
    <TR>
    <TD> <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
    rsion=6,0,29,0" width="457" height="183">
    <param name="movie" value="Flash/menu1.swf">
    <param name="quality" value="high">
    <embed src="Flash/menu1.swf" quality="high"
    pluginspage="http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash" width="457" height="183"></embed>
    </object></TD>
    </TR>

    <TR>
    <TD bgcolor="#FFFFFF" background="images/5vline1.gif"
    style="background-position:top right; background-repeat:no-repeat "
    height="100%"><div
    style="padding-top:13px;padding-left:15px;padding-right:10px; line-height:12px
    ">
    <p><img src="images/5text1.gif"> <br>
    <img src="images/spacer.gif" height="15px"><br>
    <span class="l"><strong>A few facts of what
    <cfoutput>#community.Zip_Code#</cfoutput>
    communities have to offer! <br>
    </strong></span><br>
    Where the national average for crime rate sits at a
    level
    of 100, <cfoutput>#Form.zip_code#</cfoutput> sits on
    the scale at just <cfoutput>#community.Crime#</cfoutput>! The average income of
    the area is <cfoutput>#DollarFormat(community.Average_Income)# </cfoutput> and
    the median age is <cfoutput>#community.Median_Age#</cfoutput>. Of the residents
    in the area <cfoutput>#community.Married#</cfoutput> of them are married and
    <cfoutput>#community.Households_Children#</cfoutput> of those households have
    children. Where
    the national average for pollution sits at a level of
    100, <cfoutput>#community.Zip_Code#</cfoutput> sits on
    the scale at just <cfoutput>#community.Pollution#</cfoutput>! Not too bad when
    compared to the rest of
    the country for safety and health? Probably one of the
    reasons why Morgantown continues to grow and why our
    community
    on the whole is on the rise.<br>
    </p>
    <p> </p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    </div>
    <img src="images/spacer.gif" height="10px"></TD>
    </TR>
    </TABLE></TD>
    <TD height="100%"> <TABLE WIDTH=261 BORDER=0 CELLPADDING=0
    CELLSPACING=0 height="100%">
    <TR>
    <TD background="images/10.jpg" WIDTH=261 HEIGHT=43 ><div
    align="right" class="top" style="padding-top:15px;padding-right:15px "> <a
    href="#" class="top"><strong>Log In</strong></a> &nbsp;&nbsp; New User? <a
    href="#" class="top"><strong>Sign Up!</strong></a> </div></TD>
    </TR>
    <TR>
    <TD>
    <TABLE WIDTH=261 BORDER=0 CELLPADDING=0 CELLSPACING=0>
    <TR>
    <TD>
    <TABLE WIDTH=255 BORDER=0 CELLPADDING=0 CELLSPACING=0>
    <TR>
    <TD bgcolor="#1C5870" WIDTH=255 HEIGHT=59 ><div
    style="padding-top:2px;padding-left:23px "><img src="images/pic4.jpg"
    align="left" style="margin-right:12px "><img src="images/spacer.gif"
    height="10px"><br>
    <img src="images/text4.gif"></div></TD>
    </TR>
    <TR>

    <TD background="images/13.gif" WIDTH=255 HEIGHT=42 ><div
    style="padding-top:14px;padding-left:18px "><img
    src="images/5text2.gif"></div></TD>
    </TR>
    <TR>
    <TD bgcolor="#237191" WIDTH=255 HEIGHT=366 ><div
    class="white" style="padding-top:20px;padding-left:20px;padding-right:15px;
    line-height:12px ">
    <p><img
    src="images/business_card_smaller.jpg" width="220" height="133"></p>
    <p>&nbsp;</p>
    </div></TD>
    </TR>






    </TABLE></TD>
    <TD bgcolor="#FFFFFF"> <IMG SRC="images/12.gif" WIDTH=6
    HEIGHT=467 ></TD>
    </TR>
    </TABLE></TD>
    </TR>
    <TR>
    <TD> <IMG SRC="images/8t1.gif" WIDTH=261 HEIGHT=8 ></TD>
    </TR>
    <TR>
    <TD background="images/bak9.gif" WIDTH=261 HEIGHT=100% ><div
    style="padding-top:16px;padding-left:14px;padding-right:15px; line-height:12px
    "><img src="images/5text3.gif">
    <br><img src="images/spacer.gif" height="8px"><br>
    </div></TD>
    </TR>

    </TABLE></TD>
    </TR>
    </TABLE></TD>
    </TR>
    <TR>
    <TD background="images/1.gif" WIDTH=718 HEIGHT=76 ><div
    style="padding-top:30px;padding-left:20px ">
    <strong><a href="index.cfm" class="white">Home</a> <a href="#"
    class="white" style="margin-left:25px ">About
    Us</a> <a href="building.cfm" class="white" style="margin-left:25px
    ">Building</a>
    <a href="buying.cfm" class="white" style="margin-left:25px
    ">Buying</a>
    <a href="selling.cfm" class="white" style="margin-left:25px
    ">Selling</a>
    <a href="moving.cfm" class="white" style="margin-left:25px
    ">Moving</a>
    <a href="cma.cfm" class="white" style="margin-left:25px ">Get a Free
    CMA</a> <a href="#" class="white" style="margin-left:25px ">Local</a>
    <a href="#" class="white" style="margin-left:25px ">Tools</a> <a
    href="#" class="white" style="margin-left:25px ">Help</a></strong>
    </div>
    <div align="right" class="white"
    style="padding-top:7px;padding-right:18px ">
    <strong>Real Estate</strong> &copy 2005 | <a href="privacy_policy.cfm"
    class="white">Privacy Policy</a> | <a href="#" class="white">Terms Of
    Use</a> </div></TD>
    </TR>
    <TR>
    <TD background="images/bak1.gif" WIDTH=718 HEIGHT=100% ></TD>
    </TR>
    </TABLE>
    </center>
    </BODY>
    </HTML>

    AWZ Guest

  5. #5

    Default Re: internet explorer and netscape

    OK, here's the form:

    <form action="area_stats_processor.cfm" method="post" name="form" id="form">
    <p><a href="area_stats_processor.cfm"> </a><a
    href="area_stats_processor.cfm">
    <select name="zip_code" id="select2">
    <cfoutput query="rs_zipcode">
    <option value="#rs_zipcode.Zip_Code#"
    <cfif (isDefined("rs_zipcode.Zip_Code") AND rs_zipcode.Zip_Code EQ
    rs_zipcode.Zip_Code)>selected</cfif>>#rs_zipcode.Zip_Code#</option>
    </cfoutput>
    </select>
    </a></p>
    <p><a href="area_stats_processor.cfm">
    <input type="submit" name="Submit"
    value="Submit">
    </a> </p>
    </form>

    What are the <a href...>'s doing around all the form fields? Take those out,
    and it should work. What I'm assuming is happening is that Netscape interprets
    changing the state of a drop down that is inside an <a href> means to follow
    the link.

    -- updated form --

    <form action="area_stats_processor.cfm" method="post" name="form" id="form">
    <p><select name="zip_code" id="select2">
    <cfoutput query="rs_zipcode">
    <option value="#rs_zipcode.Zip_Code#"
    <cfif (isDefined("rs_zipcode.Zip_Code") AND rs_zipcode.Zip_Code EQ
    rs_zipcode.Zip_Code)>selected</cfif>>#rs_zipcode.Zip_Code#</option>
    </cfoutput>
    </select></p>
    <p><input type="submit" name="Submit"
    value="Submit"></p>
    </form>

    Kronin555 Guest

  6. #6

    Default Re: internet explorer and netscape

    THANK YOU SO MUCH!!!
    AWZ Guest

Similar Threads

  1. Replies: 1
    Last Post: February 20th, 02:45 PM
  2. Replies: 0
    Last Post: October 13th, 10:41 AM
  3. See the internet pack for Microsoft Internet Explorer
    By carlo berton in forum ASP.NET Building Controls
    Replies: 0
    Last Post: October 1st, 12:34 PM
  4. Replies: 15
    Last Post: September 26th, 05:52 PM
  5. Internet Explorer Vs Netscape
    By C in forum ASP.NET General
    Replies: 1
    Last Post: July 23rd, 08:19 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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