Mac Error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Paul Ten-Bokum

    Mac Error

    Hi

    When I submit data from a dropdown in a form, it works fine except on
    macs when the value is a zero. It then submits values like "NsNu" or
    "H?vH?vR?y" . I can't find a solution and searching on the net semms
    to show that i am the only person experiencing this problem.

    What can I do
  • Dennis M. Marks

    #2
    Re: Mac Error

    I have read the following message from technical@priva teproperty.co.z a
    (Paul Ten-Bokum)
    and have decided to lend my vast knowledge.

    The writer said:[color=blue]
    > Hi
    >
    > When I submit data from a dropdown in a form, it works fine except on
    > macs when the value is a zero. It then submits values like "NsNu" or
    > "H?vH?vR?y" . I can't find a solution and searching on the net semms
    > to show that i am the only person experiencing this problem.
    >
    > What can I do
    >[/color]

    and my reply is:
    1. Are they the same browser and version?
    2. You may have an error that the PC version allows but the Mac version
    doesn't. If using javascript turn on error checking or check logs.
    3. I would recommend that you place the page where it can be accessed
    by everyone and mayby someone can test it and find the answer.

    --
    Dennis M. Marks

    Replace domain.invalid with dcsi.net


    -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
    http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
    -----== Over 100,000 Newsgroups - 19 Different Servers! =-----

    Comment

    • Paul Ten-Bokum

      #3
      Re: Mac Error

      Hi

      Ok, the html code that I am using is a bit long but here it is:



      <html>

      <head>
      <script language="JavaS cript">

      var NS4 = (navigator.appN ame == "Netscape" &&
      parseInt(naviga tor.appVersion) < 5);
      var NSX = (navigator.appN ame == "Netscape") ;
      var IE4 = (document.all) ? true : false;

      function SetPrice(formna me) {
      var theForm = document.getEle mentById(formna me);
      var listVal = theForm.listtyp e.value;

      if (listVal == 5) {
      clearDD(theForm .fromprice);
      AddOpt (theForm.frompr ice,"0","0","") ;
      AddOpt (theForm.frompr ice,"1000","1 000","");
      AddOpt (theForm.frompr ice,"1500","1 500","");
      AddOpt (theForm.frompr ice,"2000","2 000","");
      AddOpt (theForm.frompr ice,"2500","2 500","");
      AddOpt (theForm.frompr ice,"3000","3 000","");
      AddOpt (theForm.frompr ice,"4000","4 000","");
      AddOpt (theForm.frompr ice,"5000","5 000","");
      AddOpt (theForm.frompr ice,"6000","6 000","");
      AddOpt (theForm.frompr ice,"8000","8 000","");
      AddOpt (theForm.frompr ice,"10000","10 000","");

      clearDD(theForm .toprice);
      AddOpt (theForm.topric e,"1000","1 000","");
      AddOpt (theForm.topric e,"1500","1 500","");
      AddOpt (theForm.topric e,"2000","2 000","");
      AddOpt (theForm.topric e,"2500","2 500","");
      AddOpt (theForm.topric e,"3000","3 000","");
      AddOpt (theForm.topric e,"4000","4 000","");
      AddOpt (theForm.topric e,"5000","5 000","");
      AddOpt (theForm.topric e,"6000","6 000","");
      AddOpt (theForm.topric e,"8000","8 000","");
      AddOpt (theForm.topric e,"10000","10 000","");
      AddOpt (theForm.topric e,"100000","> 10 000","");


      } else {
      clearDD(theForm .fromprice);
      AddOpt (theForm.frompr ice,"0","0","") ;
      AddOpt (theForm.frompr ice,"100000","1 00 000","");
      AddOpt (theForm.frompr ice,"150000","1 50 000","");
      AddOpt (theForm.frompr ice,"200000","2 00 000","");
      AddOpt (theForm.frompr ice,"250000","2 50 000","");
      AddOpt (theForm.frompr ice,"300000","3 00 000","");
      AddOpt (theForm.frompr ice,"350000","3 50 000","");
      AddOpt (theForm.frompr ice,"400000","4 00 000","");
      AddOpt (theForm.frompr ice,"450000","4 50 000","");
      AddOpt (theForm.frompr ice,"500000","5 00 000","");
      AddOpt (theForm.frompr ice,"600000","6 00 000","");
      AddOpt (theForm.frompr ice,"700000","7 00 000","");
      AddOpt (theForm.frompr ice,"800000","8 00 000","");
      AddOpt (theForm.frompr ice,"900000","9 00 000","");
      AddOpt (theForm.frompr ice,"1000000"," 1 000 000","");
      AddOpt (theForm.frompr ice,"1500000"," 1 500 000","");
      AddOpt (theForm.frompr ice,"2000000"," 2 000 000","");
      AddOpt (theForm.frompr ice,"2500000"," 2 500 000","");
      AddOpt (theForm.frompr ice,"3000000"," 3 000 000","");
      AddOpt (theForm.frompr ice,"3500000"," 3 500 000","");
      AddOpt (theForm.frompr ice,"4000000"," 4 000 000","");
      AddOpt (theForm.frompr ice,"4500000"," 4 500 000","");
      AddOpt (theForm.frompr ice,"5000000"," 5 000 000","");
      AddOpt (theForm.frompr ice,"6000000"," 6 000 000","");
      AddOpt (theForm.frompr ice,"7000000"," 7 000 000","");
      AddOpt (theForm.frompr ice,"8000000"," 8 000 000","");
      AddOpt (theForm.frompr ice,"9000000"," 9 000 000","");
      AddOpt (theForm.frompr ice,"10000000", "10 000 000","");

      clearDD(theForm .toprice);
      AddOpt (theForm.topric e,"100000","1 00 000","");
      AddOpt (theForm.topric e,"150000","1 50 000","");
      AddOpt (theForm.topric e,"200000","2 00 000","");
      AddOpt (theForm.topric e,"250000","2 50 000","");
      AddOpt (theForm.topric e,"300000","3 00 000","");
      AddOpt (theForm.topric e,"350000","3 50 000","");
      AddOpt (theForm.topric e,"400000","4 00 000","");
      AddOpt (theForm.topric e,"450000","4 50 000","");
      AddOpt (theForm.topric e,"500000","5 00 000","");
      AddOpt (theForm.topric e,"600000","6 00 000","");
      AddOpt (theForm.topric e,"700000","7 00 000","");
      AddOpt (theForm.topric e,"800000","8 00 000","");
      AddOpt (theForm.topric e,"900000","9 00 000","");
      AddOpt (theForm.topric e,"1000000"," 1 000 000","");
      AddOpt (theForm.topric e,"1500000"," 1 500 000","");
      AddOpt (theForm.topric e,"2000000"," 2 000 000","");
      AddOpt (theForm.topric e,"2500000"," 2 500 000","");
      AddOpt (theForm.topric e,"3000000"," 3 000 000","");
      AddOpt (theForm.topric e,"3500000"," 3 500 000","");
      AddOpt (theForm.topric e,"4000000"," 4 000 000","");
      AddOpt (theForm.topric e,"4500000"," 4 500 000","");
      AddOpt (theForm.topric e,"5000000"," 5 000 000","");
      AddOpt (theForm.topric e,"6000000"," 6 000 000","");
      AddOpt (theForm.topric e,"7000000"," 7 000 000","");
      AddOpt (theForm.topric e,"8000000"," 8 000 000","");
      AddOpt (theForm.topric e,"9000000"," 9 000 000","");
      AddOpt (theForm.topric e,"10000000","1 0 000 000","");
      AddOpt (theForm.topric e,"1000000000", "> 10 000 000","");
      }
      }



      </script>
      <script language="JavaS cript">

      function clearDD(current DD) {
      // Clears the previously set data.



      for (t = currentDD.optio ns.length - 1; t >= 0; t--) {
      if (NSX) {
      currentDD.optio ns[t] = null;
      } else {
      currentDD.optio ns.remove(t);
      }
      }
      }

      function AddOpt (dropdown,val,t ext,colour) {
      if (NSX) {
      opt = new Option(text,val )
      opt.style.color = colour;
      var sellength = dropdown.length ;
      dropdown.option s[sellength] = opt;
      if (NS4) {
      history.go(0);
      }
      } else {
      opt = new Option(text);
      opt.style.color =colour;
      opt.value = val;
      //opt.selected = true;
      dropdown.option s.add (opt);
      }
      }


      </script>

      <script language="javas cript">

      function Validate(theFor m) {

      if (theForm.listty pe.value.length < 1) {
      alert("please select a property type.");
      theForm.listtyp e.focus();
      return false;
      }

      }

      </script>
      </head>

      <body onload="SetPric e('searchform') ">

      <table class="maincont ainer">
      <tr>
      <td class="maincont ainer">







      <table border="0" cellpadding="0" cellspacing="0" width="90%"
      align=center>
      <tr>
      <td valign="top" align="center" width="100%">

      <table align=center width="100%">
      <tr>

      <td width="84%" align=left>

      <form id="searchform " method="get"
      action="listres ults.asp" onSubmit="retur n Validate(this); ">
      <input type="hidden" name="franchise id" value="1">
      <input type="hidden" name="province" value="1">

      <!---------- start search table ---------->
      <img border="0"
      src="/images/franchisee/advancedpropert ysearch.gif">
      <table border="1" cellpadding="3" cellspacing="0"
      width="55%" bordercolor="#E 0E8EF" style="border-collapse: collapse">
      <tr>
      <td width="1%" height="19">Typ e:</td>
      <td width="100%" height="19"><se lect
      name="listtype" onchange="SetPr ice('searchform ')"><option value="">---
      Choose one ---</option><option value="1">Resid ential
      Sales</option><option value="5">Resid ential Rentals</option><option
      value="2">New Residential Developments</option><option
      value="4">Land</option><option value="3">Farms &
      Smallholdings</option><option value="9">Comme rcial Sales</option><option
      value="10">Comm ercial Rentals</option></select></td>
      </tr>
      <tr>
      <td width="0" height="19">Sub urb:</td>
      <td width="100%" height="19"><se lect name="suburb"
      onchange=""><op tion value="">All</option><option
      value="20">Bere a</option><option value="21">CBD</option><option
      value="22">Glen wood</option><option
      value="23">Morn ingside</option><option
      value="24">Sher wood/Sydenham</option><option
      value="25">Glen more/Carrington Heights</option><option
      value="26">Beac hfront</option><option
      value="27">Umbi lo/Congella</option><option
      value="28">Mayv ille/Westridge</option><option
      value="29">Over port/Puntan's Hill</option><option value="583">Man or
      Gardens</option></select></td>
      </tr>
      <tr>
      <td width="0" height="19">Fro m:</td>
      <td width="100%" height="19"><se lect size="1"
      name="fromprice ">
      <option></option>
      </select></td>
      </tr>
      <tr>
      <td width="0" height="19">To: </td>
      <td width="100%" height="19"><se lect size="1"
      name="toprice">
      <option></option>
      </select></td>
      </tr>
      <tr>
      <td width="100%" colspan="2" align=right>



      <input type="image" value="submit" border="0"
      src="../images/franchisee/go-.gif" align="bottom" width="57"
      height="13"></td>




      <!---------- end search table ---------->

      </form>
      </tr></table>
      </td></tr><tr><td align=left width="84%">
      <!--- start contact table ---->

      <!--- end contact table ---->

      </td>
      </tr>

      </table>

      </td>
      </tr>
      </table>

      &nbsp;
      </td>
      </tr>
      </table>




      </body>

      </html>

      -------------------------------------------------------

      I then submit the form to a perl page that gets the values using the
      following code:

      -------------------------------------------------------
      $fromprice = $Request->QueryString("f romprice")->item;
      $toprice = $Request->QueryString("t oprice")->item;
      --------------------------------------------------------

      I don't have any control over what browsers or which versions people use
      on the website so I can't rely give any more information other than that
      it only happens on macs and it only occurs when they choose the option
      that submits a "0".


      thanks

      *** Sent via Developersdex http://www.developersdex.com ***
      Don't just participate in USENET...get rewarded for it!

      Comment

      Working...