$_POST in IE8

  • Kurthead+1
  • Graduate
  • Graduate
  • Kurthead+1
  • Posts: 131

Post 3+ Months Ago

Any idea why this script wouldn't work in IE8? It actually builds the table format properly and emails it correctly, but none of the posted items show up. Wherever I have a post variable, the outcome is just blank. Is it even worth it, making everything compatible for early IE? It's been driving me crazy. (FYI, the only thing I could think to try was to change $_POST to $_REQUEST and that didn't work.

Another thing. Is there any reason that a simple alert function would not work in IE8?

PHP Code: [ Select ]
<?php
/******Posted Form************/
$fName      = $_POST['fName'];
$lName      = $_POST['lName'];
$pNum       = $_POST['pNumber'];
$email      = $_POST['email'];
$location   = $_POST['location'];
$coName     = $_POST['coName'];
$Contact    = $_POST['contact'];
$Contact1   = $_POST['contact1'];
$select     = $_POST['timeSelect'];
$timeZone   = $_POST['timeZone'];
$client     = $_POST['company1'];
$client1    = $_POST['private'];
$cheat      = $_POST['cheat'];
$abuse      = $_POST['abuse'];
$disabled   = $_POST['disabled'];
$illegal    = $_POST['illegal'];
$exploit    = $_POST['exploit'];
$traffick   = $_POST['traffick'];
$cp         = $_POST['cp'];
$cold       = $_POST['cold'];
$rc          = $_POST['rc'];
$missing    = $_POST['missing'];
$track      = $_POST['track'];
$stalk      = $_POST['stalk'];
$serial     = $_POST['serial'];
$specify = $_POST['specify'];
$other      = $_POST['other'];
 
if (isset($Contact))
   {
   $contact = "Phone";
   }
if (isset($Contact1))
   {
   $contact = "Email";
   }
if (isset($client1))
   {
   $clientA = "Private individual seeking an investigator";
   }
if (isset($client))
   {
   $clientA = "Investigative company seeking an investigator";
   }
if (isset($other))
   {
   $reasons = $specify;
   }
if (isset($serial))
   {
   $reasons = "Serial sex murders";
   }
if (isset($stalk))
   {
   $reasons = "Stalking and sexual obsessions";
   }
if (isset($track))
   {
   $reasons = "Tracking sex offenders";
   }
if (isset($missing))
   {
   $reasons = "Missing, kidnapped, or exploited children";
   }
if (isset($rc))
   {
   $reasons = "Rapse case investigations";
   }
if (isset($cold))
   {
   $reasons = "Cold case work involving sex crimes";
   }
if (isset($cp))
   {
   $reasons = "Child pornography ring";
   }
if (isset($traffick))
   {
   $reasons = "Illegal human sex trafficking";
   }
if (isset($exploit))
   {
   $reasons = "Illegal immigrant sexual exploitation";
   }
if (isset($illegal))
   {
   $reasons = "Illegal activities (prostitution, gambling, underage trafficking, etc) in strip clubs, massage parlors";
   }
if (isset($disabled))
   {
   $reasons = "Workers comp - Disabled person working as exotic dancer, escort, masseuse, etc";
   }
if (isset($abuse))
   {
   $reasons = "Sexual abuse, or harrassment in the work place";
   }
if (isset($cheat))
   {
   $reasons = "Domestic or cheating spouse";
   }
if ($coName ==null)
   {
   $coName = "Not applicable";
   }
 
/******Mail Information*******/
$to = "robertcathey1@yahoo.com";
$subject = "Form Information";
$msg = "<style>
tr, td
{
  border:2px solid #555;
  height:35px;
  border-collapse:collapse;
  padding-left:10px;
}
tr.odd
{
  background-color:#FFF;
  color:#000;
}
table
{
  width:590px;
  border:2px solid #555;
  border-collapse:collapse;
  background-color:#EFEFEF;
  font-size:15px;
  font-family:arial;
  color:#000;
}
span
{
  font-weight:bold;
}
</style>
<table>
<tr class='odd'>
<td>First Name</td>
<td><span>".$fName."</span></td>
</tr>
<tr>
<td>Last Name</td>
<td><span>".$lName."</span></td>
</tr>
<tr class='odd'>
<td>Company Name</td>
<td><span>".$coName."</span></td>
</tr>
<tr>
<td>Location</td>
<td><span>".$location."</span></td>
</tr>
<tr class='odd'>
<td>Phone Number</td>
<td><span>".$pNum."</span></td>
</tr>
<tr>
<td>Best Contact Method</td>
<td><span>".$contact."</span></td>
</tr>
<tr class='odd'>
<td>Best Contact Time</td>
<td><span>".$select."</span></td>
</tr>
<tr>
<td>Time Zone</td>
<td><span>".$timeZone."</span></td>
<tr class='odd'>
<td>Affiliation</td>
<td><span>".$clientA."</span></td>
</tr>
<tr>
<td>Reason for Hire</td>
<td><span>".$reasons."</span></td>
</tr>";
 
$heads = "Content-type: text/html\r\n";
 
mail ($to, $subject, $msg, $heads);
echo $msg;
 
/*if ($fName==null || $lName==null || $pNum==null || $email==null || $location==null || ($Contact==null && $Contact1==null))
   {
   }
else
   {
   echo $msg;
   }*/
echo "<script>setTimeout('self.close()', 1);</script>";
?>
 
  1. <?php
  2. /******Posted Form************/
  3. $fName      = $_POST['fName'];
  4. $lName      = $_POST['lName'];
  5. $pNum       = $_POST['pNumber'];
  6. $email      = $_POST['email'];
  7. $location   = $_POST['location'];
  8. $coName     = $_POST['coName'];
  9. $Contact    = $_POST['contact'];
  10. $Contact1   = $_POST['contact1'];
  11. $select     = $_POST['timeSelect'];
  12. $timeZone   = $_POST['timeZone'];
  13. $client     = $_POST['company1'];
  14. $client1    = $_POST['private'];
  15. $cheat      = $_POST['cheat'];
  16. $abuse      = $_POST['abuse'];
  17. $disabled   = $_POST['disabled'];
  18. $illegal    = $_POST['illegal'];
  19. $exploit    = $_POST['exploit'];
  20. $traffick   = $_POST['traffick'];
  21. $cp         = $_POST['cp'];
  22. $cold       = $_POST['cold'];
  23. $rc          = $_POST['rc'];
  24. $missing    = $_POST['missing'];
  25. $track      = $_POST['track'];
  26. $stalk      = $_POST['stalk'];
  27. $serial     = $_POST['serial'];
  28. $specify = $_POST['specify'];
  29. $other      = $_POST['other'];
  30.  
  31. if (isset($Contact))
  32.    {
  33.    $contact = "Phone";
  34.    }
  35. if (isset($Contact1))
  36.    {
  37.    $contact = "Email";
  38.    }
  39. if (isset($client1))
  40.    {
  41.    $clientA = "Private individual seeking an investigator";
  42.    }
  43. if (isset($client))
  44.    {
  45.    $clientA = "Investigative company seeking an investigator";
  46.    }
  47. if (isset($other))
  48.    {
  49.    $reasons = $specify;
  50.    }
  51. if (isset($serial))
  52.    {
  53.    $reasons = "Serial sex murders";
  54.    }
  55. if (isset($stalk))
  56.    {
  57.    $reasons = "Stalking and sexual obsessions";
  58.    }
  59. if (isset($track))
  60.    {
  61.    $reasons = "Tracking sex offenders";
  62.    }
  63. if (isset($missing))
  64.    {
  65.    $reasons = "Missing, kidnapped, or exploited children";
  66.    }
  67. if (isset($rc))
  68.    {
  69.    $reasons = "Rapse case investigations";
  70.    }
  71. if (isset($cold))
  72.    {
  73.    $reasons = "Cold case work involving sex crimes";
  74.    }
  75. if (isset($cp))
  76.    {
  77.    $reasons = "Child pornography ring";
  78.    }
  79. if (isset($traffick))
  80.    {
  81.    $reasons = "Illegal human sex trafficking";
  82.    }
  83. if (isset($exploit))
  84.    {
  85.    $reasons = "Illegal immigrant sexual exploitation";
  86.    }
  87. if (isset($illegal))
  88.    {
  89.    $reasons = "Illegal activities (prostitution, gambling, underage trafficking, etc) in strip clubs, massage parlors";
  90.    }
  91. if (isset($disabled))
  92.    {
  93.    $reasons = "Workers comp - Disabled person working as exotic dancer, escort, masseuse, etc";
  94.    }
  95. if (isset($abuse))
  96.    {
  97.    $reasons = "Sexual abuse, or harrassment in the work place";
  98.    }
  99. if (isset($cheat))
  100.    {
  101.    $reasons = "Domestic or cheating spouse";
  102.    }
  103. if ($coName ==null)
  104.    {
  105.    $coName = "Not applicable";
  106.    }
  107.  
  108. /******Mail Information*******/
  109. $to = "robertcathey1@yahoo.com";
  110. $subject = "Form Information";
  111. $msg = "<style>
  112. tr, td
  113. {
  114.   border:2px solid #555;
  115.   height:35px;
  116.   border-collapse:collapse;
  117.   padding-left:10px;
  118. }
  119. tr.odd
  120. {
  121.   background-color:#FFF;
  122.   color:#000;
  123. }
  124. table
  125. {
  126.   width:590px;
  127.   border:2px solid #555;
  128.   border-collapse:collapse;
  129.   background-color:#EFEFEF;
  130.   font-size:15px;
  131.   font-family:arial;
  132.   color:#000;
  133. }
  134. span
  135. {
  136.   font-weight:bold;
  137. }
  138. </style>
  139. <table>
  140. <tr class='odd'>
  141. <td>First Name</td>
  142. <td><span>".$fName."</span></td>
  143. </tr>
  144. <tr>
  145. <td>Last Name</td>
  146. <td><span>".$lName."</span></td>
  147. </tr>
  148. <tr class='odd'>
  149. <td>Company Name</td>
  150. <td><span>".$coName."</span></td>
  151. </tr>
  152. <tr>
  153. <td>Location</td>
  154. <td><span>".$location."</span></td>
  155. </tr>
  156. <tr class='odd'>
  157. <td>Phone Number</td>
  158. <td><span>".$pNum."</span></td>
  159. </tr>
  160. <tr>
  161. <td>Best Contact Method</td>
  162. <td><span>".$contact."</span></td>
  163. </tr>
  164. <tr class='odd'>
  165. <td>Best Contact Time</td>
  166. <td><span>".$select."</span></td>
  167. </tr>
  168. <tr>
  169. <td>Time Zone</td>
  170. <td><span>".$timeZone."</span></td>
  171. <tr class='odd'>
  172. <td>Affiliation</td>
  173. <td><span>".$clientA."</span></td>
  174. </tr>
  175. <tr>
  176. <td>Reason for Hire</td>
  177. <td><span>".$reasons."</span></td>
  178. </tr>";
  179.  
  180. $heads = "Content-type: text/html\r\n";
  181.  
  182. mail ($to, $subject, $msg, $heads);
  183. echo $msg;
  184.  
  185. /*if ($fName==null || $lName==null || $pNum==null || $email==null || $location==null || ($Contact==null && $Contact1==null))
  186.    {
  187.    }
  188. else
  189.    {
  190.    echo $msg;
  191.    }*/
  192. echo "<script>setTimeout('self.close()', 1);</script>";
  193. ?>
  194.  
  • ScottG
  • Proficient
  • Proficient
  • ScottG
  • Posts: 477

Post 3+ Months Ago

post the form that runs this script.


To debug you could the post try this to see if anything is being sent

PHP Code: [ Select ]
var_dump($_POST);
 
  1. var_dump($_POST);
  2.  
  • Kurthead+1
  • Graduate
  • Graduate
  • Kurthead+1
  • Posts: 131

Post 3+ Months Ago

Knew I could count on you, ScottG. var_dump($_POST) returns this: array(0){}. Notice there is a special form action within an [if IE] condition. I did try this without this condition, setting it up solely for the IE form.php and it still did not fix this problem, so it is something else. I will go ahead and try the other larger form and see if it does the same thing, and I'll let you know on that one. Thanks Scott.

HTML Code: [ Select ]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" type="text/css" href="xxx.css">
<script type="text/javascript"  src="xxx.js"></script>
<title>Investator Request Form</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!--[if lt IE 9]>
<link rel="stylesheet" type="text/css" href="xxxIE.css">
<script type="text/javascript"  src="xxxIE.js"></script>
<![endif]-->
<!--[if IE 9]>
<link rel="stylesheet" type="text/css" href="xxxIE.css">
<script src="xxxIE.js"></script>
<![endif]-->
</head>
<body id="stop" onload="onloadApp(4);" >
<div id="cover"><div style="margin:auto;"><img src="logoBig.png" repeat="none" width="86.5%" height="90%"></div></div>
   <div class="form" onclick="boxWide(2)" >
      <h2 class="formHeadIE"><span class="xxx">XXX</span> Investigations Information Request Form</h2>
     <hr>
     <div><p class="headerIE" style="position:absolute;margin-left:50px;top:74px;">(required information*)</p></div>
      <div class="putsWrap">
      <div class="puts">
                 <div id="popup">
                   <div style="clear:both;width:100%;height:25px;margin:auto;margin-bottom:0;"><p style="padding-bottom:6px;
                   font-size:18px;text-align:center;">thank you for contacting us!<p></div>
                   <hr>
                   <div class="fixPopup" style="padding-top:15px;"><p>Someone from our office will contact you, Monday through Friday, within 24 hours.</p></div>
                   <button id="focus" onclick="closeBox()"><span>close</span></button>
                   <div class="fixPopup"><p style="color:#E33;">If this is a life threatening emergency then click here to contact us using our 24-hour hotline.</p></div>
                   <button id="hotline" onclick=""><span style="font-weight:bold;">hotline</span></button>
                 </div>
 
         <form id="action" action="javascript&#058;void(0);" name="request" method="post">
        <!--[if lt IE 9]>
        </form>
       <form action="FormIE.php" method="post" target="_blank" name="request">
       <![endif]-->
       
              <p>First Name:*</p>
               <input type="text" id="fName" name="fName"><br>
         </div>
        <div class="puts">
          <p>Last Name:*</p>
            <input type="text" id="lName" name="lName"><br>
        </div>
        <div class="puts">
          <p>Company Name:</p>
            <input type="text" id="coName" name="coName"><br>
        </div>
        <div class="puts">
            <p>State or Territory:*</p>
          <input type="text" id="location" name="location"><br>
        </div>
        <div class="puts">
           <p>Email:*</p>
          <input type="text" id="email" name="email"><br>
        </div>
        <div class="puts">
           <p style="font-size:14px;" class="putsIEfont">Phone Number:*(xxx-xxx-xxxx)</p>
         <input type="text" id="pNumber" name="pNumber" maxlength="14"><br>
        </div>
      </div>
     <div style="width:370px;" class="putswrap">
        <div id="intro1"><p>Please select the general topic of inquery.*</p></div>
       <hr>
         <div id="inquery" class="radio1">
           <div class="radio1">
               <div class="float1"><p id="fon">domestic/ cheating spouse</p></div>
              <div class="float2"><input class="align" style="float:left;" type="radio" value="cheat" name="cheat" onmouseup="clearText();" id="cheat" onmousedown="optSelectAll();" onclick=""></div>
              <div class="float1"><p>sexual abuse, or harrassment in the work place</p></div>
              <div class="float2"><input type="radio" value="abuse" name="abuse" id="abuse" onmouseup="clearText();" onmousedown="optSelectAll();" onclick=""></div>
              <div class="float1"><p>workers comp – disabled person working as exotic dancer, escort, masseuse, etc.</p></div>
              <div class="float2"><input type="radio" value="disabled" name="disabled" id="disabled" onmouseup="clearText();" onmousedown="optSelectAll();" onclick=""></div>
              <div class="float1"><p>illegal activities (prostitution, gambling, underage trafficking, etc) in strip clubs, massage parlors</p></div>
               <div class="float2"><input type="radio" value="illegal" name="illegal" id="illegal" onmouseup="clearText();" onmousedown="optSelectAll();" onclick=""></div>
              <div class="float1"><p>illegal immigrant sexual exploitation</p></div>
              <div class="float2"><input type="radio" value="exploit" name="exploit" id="exploit" onmouseup="clearText();" onmousedown="optSelectAll();" onclick=""></div>
              <div class="float1"><p>illegal human sex trafficking</p></div>
              <div class="float2"><input type="radio" value="traffick" name="traffick" id="traffick" onmouseup="clearText();" onmousedown="optSelectAll();" onclick=""></div>
              <div class="float1"><p>child pornography ring</p></div>
              <div class="float2"><input type="radio" value="cp" name="cp" id="cp" onmouseup="clearText();" onmousedown="optSelectAll();" onclick=""></div>
              <div class="float1"><p>cold case work involving sex crimes</p></div>
              <div class="float2"><input type="radio" value="cold" name="cold" id="cold" onmouseup="clearText();" onmousedown="optSelectAll();" onclick=""></div>
              <div class="float1"><p>rape case investigations</p></div>
              <div class="float2"><input type="radio" value="rc" name="rc" id="rc" onmouseup="clearText();" onmousedown="optSelectAll();" onclick=""></div>
              <div class="float1"><p>missing, kidnapped or exploited children</p></div>
              <div class="float2"><input type="radio" value="missing" name="missing" id="missing" onmouseup="clearText();" onmousedown="optSelectAll();" onclick=""></div>
              <div class="float1"><p>tracking sex offenders</p></div>
              <div class="float2"><input type="radio" value="track" name="track" id="track" onmouseup="clearText();" onmousedown="optSelectAll();" onclick=""></div>
              <div class="float1"><p>stalking and sexual obsessions</p></div>
              <div class="float2"><input type="radio" value="stalk" name="stalk" id="stalk" onmouseup="clearText();" onmousedown="optSelectAll();" onclick=""></div>
              <div class="float1"><p>serial sex murders</p></div>
              <div class="float2"><input type="radio" value="serial" name="serial" id="serial" onmouseup="clearText();"  onmousedown="optSelectAll();" onclick=""></div>
              <div class="float1"><p>other</p></div>
              <div class="float2"><input type="radio" value="other" name="other" id="other" onmousedown="optSelectAll();" onclick="openText();"></div>
              <div class="float1"><textarea name="specify" id="specify" value="Specify other (200 characters max)" maxlength="200"></textarea></div>
            </div>
           </div>
     </div>
     <div class="putsWrap">
        <div class="puts1">
          <p>Best way to contact you?*</p>
         <div class="radio">
             <p>phone</p><input class="trans" onmousedown="optSelectB()" onclick="optSelect()" id="phoneContact" type="radio" name="contact" value="phoneContact">
         </div>
         <div class="radio">
            <p>email</p><input class="trans" onmousedown="optSelectB()" onclick="optSelect()" id="emailContact" type="radio" name="contact1" value="emailContact">
         </div>
       </div>
       <div class="puts1">
             <p>Best time to contact you?*</p>
          <select name="timeSelect" id="timeSelect1">
            <option value="select time">select time</option>
            <option value="7:00 AM">7:00 am</option>
            <option value="7:30 AM">7:30 am</option>
            <option value="8:00 AM">8:00 am</option>
            <option value="8:30 AM">8:30 am</option>
            <option value="9:00 AM">9:00 am</option>
            <option value="9:30 AM">9:30 am</option>
            <option value="10:00 AM">10:00 am</option>
            <option value="10:30 AM">10:30 am</option>
            <option value="11:00 AM">11:00 am</option>
            <option value="11:30 AM">11:30 am</option>
            <option value="12:00 PM">12:00 pm</option>
            <option value="12:30 PM">12:30 pm</option>
            <option value="1:00 PM">1:00 pm</option>
            <option value="1:30 PM">1:30 pm</option>
            <option value="2:00 PM">2:00 pm</option>
            <option value="2:30 PM">2:30 pm</option>
            <option value="3:00 PM">3:00 pm</option>
            <option value="3:30 PM">3:30 pm</option>
            <option value="4:00 PM">4:00 pm</option>
            <option value="4:30 PM">4:30 pm</option>
            <option value="5:00 PM">5:00 pm</option>
            <option value="5:30 PM">5:30 pm</option>
            <option value="6:00 PM">6:00 pm</option>
            <option value="6:30 PM">6:30 pm</option>
            <option value="7:00 PM">7:00 pm</option>
            <option value="7:30 PM">7:30 pm</option>
            <option value="8:00 PM">8:00 pm</option>
            <option value="8:30 PM">8:30 pm</option>
            <option value="9:00 PM">9:00 pm</option>
            <option value="9:30 PM">9:30 pm</option>
            <option value="10:00 PM">10:00 pm</option>
            <option value="10:30 PM">10:30 pm</option>
            <option value="11:00 PM">11:00 pm</option>
            <option value="11:30 PM">11:30 pm</option>
            <option value="12:00 AM">12:00 am</option>
            <option value="12:30 AM">12:30 am</option>
            <option value="1:00 AM">1:00 am</option>
            <option value="1:30 AM">1:30 am</option>
            <option value="2:00 AM">2:00 am</option>
            <option value="2:30 AM">2:30 am</option>
            <option value="3:00 AM">3:00 am</option>
            <option value="3:30 AM">3:30 am</option>
            <option value="4:00 AM">4:00 am</option>
            <option value="4:30 AM">4:30 am</option>
            <option value="5:00 AM">5:00 am</option>
            <option value="5:30 AM">5:30 am</option>
            <option value="6:00 AM">6:00 am</option>
            <option value="6:30 AM">6:30 am</option>
         </select>  
       </div>
       <div class="puts1">
          <p>Time Zone:*</p>
          <select name="timeZone" id="timeZone" onmousedown="boxWide(1)" onmouseout="">
               <option value="time zone"><span id="gray">select time zone</span></option>
                  <option value="(GMT -12:00) Eniwetok, Kwajalein">(GMT -12:00) Eniwetok, Kwajalein</option>
               <option value="(GMT -11:00) Midway Island, Samoa">(GMT -11:00) Midway Island, Samoa</option>
              <option value="(GMT -10:00) Hawaii">(GMT -10:00) Hawaii</option>
              <option value="(GMT -9:00) Alaska">(GMT -9:00) Alaska</option>
              <option value="(GMT -8:00) Pacific Time (US &amp; Canada)">(GMT -8:00) Pacific Time (US &amp; Canada)</option>
              <option value="(GMT -7:00) Mountain Time (US &amp; Canada)">(GMT -7:00) Mountain Time (US &amp; Canada)</option>
                 <option value="(GMT -6:00) Central Time (US &amp; Canada), Mexico City">(GMT -6:00) Central Time (US &amp; Canada), Mexico City</option>
                 <option value="(GMT -5:00) Eastern Time (US &amp; Canada), Bogota, Lima">(GMT -5:00) Eastern Time (US &amp; Canada), Bogota, Lima</option>
                 <option value="(GMT -5:00) Eastern Time (US &amp; Canada), Bogota, Lima">(GMT -5:00) Eastern Time (US &amp; Canada), Bogota, Lima</option>
                 <option value="(GMT -3:30) Newfoundland">(GMT -3:30) Newfoundland</option>
                 <option value="(GMT -3:00) Brazil, Buenos Aires, Georgetown">(GMT -3:00) Brazil, Buenos Aires, Georgetown</option>
                 <option value="(GMT -2:00) Mid-Atlantic">(GMT -2:00) Mid-Atlantic</option>
                 <option value="(GMT -1:00 hour) Azores, Cape Verde Islands">(GMT -1:00 hour) Azores, Cape Verde Islands</option>
                 <option value="(GMT) Western Europe Time, London, Lisbon, Casablanca">(GMT) Western Europe Time, London, Lisbon, Casablanca</option>
                 <option value="(GMT +1:00 hour) Brussels, Copenhagen, Madrid, Paris">(GMT +1:00 hour) Brussels, Copenhagen, Madrid, Paris</option>
                 <option value="(GMT +2:00) Kaliningrad, South Africa">(GMT +2:00) Kaliningrad, South Africa</option>
                 <option value="(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg">(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg</option>
                 <option value="(GMT +3:30) Tehran">(GMT +3:30) Tehran</option>
                 <option value="(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi">(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi</option>
                 <option value="(GMT +4:30) Kabul">(GMT +4:30) Kabul</option>
                 <option value="(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent">(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent</option>
                 <option value="(GMT +5:30) Bombay, Calcutta, Madras, New Delhi">(GMT +5:30) Bombay, Calcutta, Madras, New Delhi</option>
                 <option value="(GMT +5:45) Kathmandu">(GMT +5:45) Kathmandu</option>
                 <option value="(GMT +6:00) Almaty, Dhaka, Colombo">(GMT +6:00) Almaty, Dhaka, Colombo</option>
                 <option value="(GMT +7:00) Bangkok, Hanoi, Jakarta">(GMT +7:00) Bangkok, Hanoi, Jakarta</option>
                 <option value="(GMT +8:00) Beijing, Perth, Singapore, Hong Kong">(GMT +8:00) Beijing, Perth, Singapore, Hong Kong</option>
                 <option value="(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk">(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk</option>
                 <option value="(GMT +9:30) Adelaide, Darwin">(GMT +9:30) Adelaide, Darwin</option>
                 <option value="(GMT +10:00) Eastern Australia, Guam, Vladivostok">(GMT +10:00) Eastern Australia, Guam, Vladivostok</option>
                 <option value="(GMT +11:00) Magadan, Solomon Islands, New Caledonia">(GMT +11:00) Magadan, Solomon Islands, New Caledonia</option>
                 <option value="(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka">(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka</option>
            </select>
       </div>
       <div class="puts1">
          <p style="text-align:center;font-size:13px;margin-right:8px;">Are you a Security / Investigation company or an individual seeking to hire an investigator?*</p>
         <div class="radio">
            <p>company</p><input type="radio" value="company1" name="company1" id="company1" onmousedown="optSelect1B()" onclick="optSelect1()">
         </div>
         <div class="radio">
            <p>individual</p><input type="radio" value="private" name="private" id="private" onmousedown="optSelect1B()" onclick="optSelect1()">
         </div>
       </div>
       <div id="submits">
           <input onclick="popup();" id="formSubmit" type="submit" value="submit">
        </div>
     </div>
     </form>
   </div>
</body>
</html>
 
 
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <link rel="stylesheet" type="text/css" href="xxx.css">
  5. <script type="text/javascript"  src="xxx.js"></script>
  6. <title>Investator Request Form</title>
  7. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  8. <!--[if lt IE 9]>
  9. <link rel="stylesheet" type="text/css" href="xxxIE.css">
  10. <script type="text/javascript"  src="xxxIE.js"></script>
  11. <![endif]-->
  12. <!--[if IE 9]>
  13. <link rel="stylesheet" type="text/css" href="xxxIE.css">
  14. <script src="xxxIE.js"></script>
  15. <![endif]-->
  16. </head>
  17. <body id="stop" onload="onloadApp(4);" >
  18. <div id="cover"><div style="margin:auto;"><img src="logoBig.png" repeat="none" width="86.5%" height="90%"></div></div>
  19.    <div class="form" onclick="boxWide(2)" >
  20.       <h2 class="formHeadIE"><span class="xxx">XXX</span> Investigations Information Request Form</h2>
  21.      <hr>
  22.      <div><p class="headerIE" style="position:absolute;margin-left:50px;top:74px;">(required information*)</p></div>
  23.       <div class="putsWrap">
  24.       <div class="puts">
  25.                  <div id="popup">
  26.                    <div style="clear:both;width:100%;height:25px;margin:auto;margin-bottom:0;"><p style="padding-bottom:6px;
  27.                    font-size:18px;text-align:center;">thank you for contacting us!<p></div>
  28.                    <hr>
  29.                    <div class="fixPopup" style="padding-top:15px;"><p>Someone from our office will contact you, Monday through Friday, within 24 hours.</p></div>
  30.                    <button id="focus" onclick="closeBox()"><span>close</span></button>
  31.                    <div class="fixPopup"><p style="color:#E33;">If this is a life threatening emergency then click here to contact us using our 24-hour hotline.</p></div>
  32.                    <button id="hotline" onclick=""><span style="font-weight:bold;">hotline</span></button>
  33.                  </div>
  34.  
  35.          <form id="action" action="javascript&#058;void(0);" name="request" method="post">
  36.         <!--[if lt IE 9]>
  37.         </form>
  38.        <form action="FormIE.php" method="post" target="_blank" name="request">
  39.        <![endif]-->
  40.        
  41.               <p>First Name:*</p>
  42.                <input type="text" id="fName" name="fName"><br>
  43.          </div>
  44.         <div class="puts">
  45.           <p>Last Name:*</p>
  46.             <input type="text" id="lName" name="lName"><br>
  47.         </div>
  48.         <div class="puts">
  49.           <p>Company Name:</p>
  50.             <input type="text" id="coName" name="coName"><br>
  51.         </div>
  52.         <div class="puts">
  53.             <p>State or Territory:*</p>
  54.           <input type="text" id="location" name="location"><br>
  55.         </div>
  56.         <div class="puts">
  57.            <p>Email:*</p>
  58.           <input type="text" id="email" name="email"><br>
  59.         </div>
  60.         <div class="puts">
  61.            <p style="font-size:14px;" class="putsIEfont">Phone Number:*(xxx-xxx-xxxx)</p>
  62.          <input type="text" id="pNumber" name="pNumber" maxlength="14"><br>
  63.         </div>
  64.       </div>
  65.      <div style="width:370px;" class="putswrap">
  66.         <div id="intro1"><p>Please select the general topic of inquery.*</p></div>
  67.        <hr>
  68.          <div id="inquery" class="radio1">
  69.            <div class="radio1">
  70.                <div class="float1"><p id="fon">domestic/ cheating spouse</p></div>
  71.               <div class="float2"><input class="align" style="float:left;" type="radio" value="cheat" name="cheat" onmouseup="clearText();" id="cheat" onmousedown="optSelectAll();" onclick=""></div>
  72.               <div class="float1"><p>sexual abuse, or harrassment in the work place</p></div>
  73.               <div class="float2"><input type="radio" value="abuse" name="abuse" id="abuse" onmouseup="clearText();" onmousedown="optSelectAll();" onclick=""></div>
  74.               <div class="float1"><p>workers comp – disabled person working as exotic dancer, escort, masseuse, etc.</p></div>
  75.               <div class="float2"><input type="radio" value="disabled" name="disabled" id="disabled" onmouseup="clearText();" onmousedown="optSelectAll();" onclick=""></div>
  76.               <div class="float1"><p>illegal activities (prostitution, gambling, underage trafficking, etc) in strip clubs, massage parlors</p></div>
  77.                <div class="float2"><input type="radio" value="illegal" name="illegal" id="illegal" onmouseup="clearText();" onmousedown="optSelectAll();" onclick=""></div>
  78.               <div class="float1"><p>illegal immigrant sexual exploitation</p></div>
  79.               <div class="float2"><input type="radio" value="exploit" name="exploit" id="exploit" onmouseup="clearText();" onmousedown="optSelectAll();" onclick=""></div>
  80.               <div class="float1"><p>illegal human sex trafficking</p></div>
  81.               <div class="float2"><input type="radio" value="traffick" name="traffick" id="traffick" onmouseup="clearText();" onmousedown="optSelectAll();" onclick=""></div>
  82.               <div class="float1"><p>child pornography ring</p></div>
  83.               <div class="float2"><input type="radio" value="cp" name="cp" id="cp" onmouseup="clearText();" onmousedown="optSelectAll();" onclick=""></div>
  84.               <div class="float1"><p>cold case work involving sex crimes</p></div>
  85.               <div class="float2"><input type="radio" value="cold" name="cold" id="cold" onmouseup="clearText();" onmousedown="optSelectAll();" onclick=""></div>
  86.               <div class="float1"><p>rape case investigations</p></div>
  87.               <div class="float2"><input type="radio" value="rc" name="rc" id="rc" onmouseup="clearText();" onmousedown="optSelectAll();" onclick=""></div>
  88.               <div class="float1"><p>missing, kidnapped or exploited children</p></div>
  89.               <div class="float2"><input type="radio" value="missing" name="missing" id="missing" onmouseup="clearText();" onmousedown="optSelectAll();" onclick=""></div>
  90.               <div class="float1"><p>tracking sex offenders</p></div>
  91.               <div class="float2"><input type="radio" value="track" name="track" id="track" onmouseup="clearText();" onmousedown="optSelectAll();" onclick=""></div>
  92.               <div class="float1"><p>stalking and sexual obsessions</p></div>
  93.               <div class="float2"><input type="radio" value="stalk" name="stalk" id="stalk" onmouseup="clearText();" onmousedown="optSelectAll();" onclick=""></div>
  94.               <div class="float1"><p>serial sex murders</p></div>
  95.               <div class="float2"><input type="radio" value="serial" name="serial" id="serial" onmouseup="clearText();"  onmousedown="optSelectAll();" onclick=""></div>
  96.               <div class="float1"><p>other</p></div>
  97.               <div class="float2"><input type="radio" value="other" name="other" id="other" onmousedown="optSelectAll();" onclick="openText();"></div>
  98.               <div class="float1"><textarea name="specify" id="specify" value="Specify other (200 characters max)" maxlength="200"></textarea></div>
  99.             </div>
  100.            </div>
  101.      </div>
  102.      <div class="putsWrap">
  103.         <div class="puts1">
  104.           <p>Best way to contact you?*</p>
  105.          <div class="radio">
  106.              <p>phone</p><input class="trans" onmousedown="optSelectB()" onclick="optSelect()" id="phoneContact" type="radio" name="contact" value="phoneContact">
  107.          </div>
  108.          <div class="radio">
  109.             <p>email</p><input class="trans" onmousedown="optSelectB()" onclick="optSelect()" id="emailContact" type="radio" name="contact1" value="emailContact">
  110.          </div>
  111.        </div>
  112.        <div class="puts1">
  113.              <p>Best time to contact you?*</p>
  114.           <select name="timeSelect" id="timeSelect1">
  115.             <option value="select time">select time</option>
  116.             <option value="7:00 AM">7:00 am</option>
  117.             <option value="7:30 AM">7:30 am</option>
  118.             <option value="8:00 AM">8:00 am</option>
  119.             <option value="8:30 AM">8:30 am</option>
  120.             <option value="9:00 AM">9:00 am</option>
  121.             <option value="9:30 AM">9:30 am</option>
  122.             <option value="10:00 AM">10:00 am</option>
  123.             <option value="10:30 AM">10:30 am</option>
  124.             <option value="11:00 AM">11:00 am</option>
  125.             <option value="11:30 AM">11:30 am</option>
  126.             <option value="12:00 PM">12:00 pm</option>
  127.             <option value="12:30 PM">12:30 pm</option>
  128.             <option value="1:00 PM">1:00 pm</option>
  129.             <option value="1:30 PM">1:30 pm</option>
  130.             <option value="2:00 PM">2:00 pm</option>
  131.             <option value="2:30 PM">2:30 pm</option>
  132.             <option value="3:00 PM">3:00 pm</option>
  133.             <option value="3:30 PM">3:30 pm</option>
  134.             <option value="4:00 PM">4:00 pm</option>
  135.             <option value="4:30 PM">4:30 pm</option>
  136.             <option value="5:00 PM">5:00 pm</option>
  137.             <option value="5:30 PM">5:30 pm</option>
  138.             <option value="6:00 PM">6:00 pm</option>
  139.             <option value="6:30 PM">6:30 pm</option>
  140.             <option value="7:00 PM">7:00 pm</option>
  141.             <option value="7:30 PM">7:30 pm</option>
  142.             <option value="8:00 PM">8:00 pm</option>
  143.             <option value="8:30 PM">8:30 pm</option>
  144.             <option value="9:00 PM">9:00 pm</option>
  145.             <option value="9:30 PM">9:30 pm</option>
  146.             <option value="10:00 PM">10:00 pm</option>
  147.             <option value="10:30 PM">10:30 pm</option>
  148.             <option value="11:00 PM">11:00 pm</option>
  149.             <option value="11:30 PM">11:30 pm</option>
  150.             <option value="12:00 AM">12:00 am</option>
  151.             <option value="12:30 AM">12:30 am</option>
  152.             <option value="1:00 AM">1:00 am</option>
  153.             <option value="1:30 AM">1:30 am</option>
  154.             <option value="2:00 AM">2:00 am</option>
  155.             <option value="2:30 AM">2:30 am</option>
  156.             <option value="3:00 AM">3:00 am</option>
  157.             <option value="3:30 AM">3:30 am</option>
  158.             <option value="4:00 AM">4:00 am</option>
  159.             <option value="4:30 AM">4:30 am</option>
  160.             <option value="5:00 AM">5:00 am</option>
  161.             <option value="5:30 AM">5:30 am</option>
  162.             <option value="6:00 AM">6:00 am</option>
  163.             <option value="6:30 AM">6:30 am</option>
  164.          </select>  
  165.        </div>
  166.        <div class="puts1">
  167.           <p>Time Zone:*</p>
  168.           <select name="timeZone" id="timeZone" onmousedown="boxWide(1)" onmouseout="">
  169.                <option value="time zone"><span id="gray">select time zone</span></option>
  170.                   <option value="(GMT -12:00) Eniwetok, Kwajalein">(GMT -12:00) Eniwetok, Kwajalein</option>
  171.                <option value="(GMT -11:00) Midway Island, Samoa">(GMT -11:00) Midway Island, Samoa</option>
  172.               <option value="(GMT -10:00) Hawaii">(GMT -10:00) Hawaii</option>
  173.               <option value="(GMT -9:00) Alaska">(GMT -9:00) Alaska</option>
  174.               <option value="(GMT -8:00) Pacific Time (US &amp; Canada)">(GMT -8:00) Pacific Time (US &amp; Canada)</option>
  175.               <option value="(GMT -7:00) Mountain Time (US &amp; Canada)">(GMT -7:00) Mountain Time (US &amp; Canada)</option>
  176.                  <option value="(GMT -6:00) Central Time (US &amp; Canada), Mexico City">(GMT -6:00) Central Time (US &amp; Canada), Mexico City</option>
  177.                  <option value="(GMT -5:00) Eastern Time (US &amp; Canada), Bogota, Lima">(GMT -5:00) Eastern Time (US &amp; Canada), Bogota, Lima</option>
  178.                  <option value="(GMT -5:00) Eastern Time (US &amp; Canada), Bogota, Lima">(GMT -5:00) Eastern Time (US &amp; Canada), Bogota, Lima</option>
  179.                  <option value="(GMT -3:30) Newfoundland">(GMT -3:30) Newfoundland</option>
  180.                  <option value="(GMT -3:00) Brazil, Buenos Aires, Georgetown">(GMT -3:00) Brazil, Buenos Aires, Georgetown</option>
  181.                  <option value="(GMT -2:00) Mid-Atlantic">(GMT -2:00) Mid-Atlantic</option>
  182.                  <option value="(GMT -1:00 hour) Azores, Cape Verde Islands">(GMT -1:00 hour) Azores, Cape Verde Islands</option>
  183.                  <option value="(GMT) Western Europe Time, London, Lisbon, Casablanca">(GMT) Western Europe Time, London, Lisbon, Casablanca</option>
  184.                  <option value="(GMT +1:00 hour) Brussels, Copenhagen, Madrid, Paris">(GMT +1:00 hour) Brussels, Copenhagen, Madrid, Paris</option>
  185.                  <option value="(GMT +2:00) Kaliningrad, South Africa">(GMT +2:00) Kaliningrad, South Africa</option>
  186.                  <option value="(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg">(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg</option>
  187.                  <option value="(GMT +3:30) Tehran">(GMT +3:30) Tehran</option>
  188.                  <option value="(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi">(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi</option>
  189.                  <option value="(GMT +4:30) Kabul">(GMT +4:30) Kabul</option>
  190.                  <option value="(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent">(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent</option>
  191.                  <option value="(GMT +5:30) Bombay, Calcutta, Madras, New Delhi">(GMT +5:30) Bombay, Calcutta, Madras, New Delhi</option>
  192.                  <option value="(GMT +5:45) Kathmandu">(GMT +5:45) Kathmandu</option>
  193.                  <option value="(GMT +6:00) Almaty, Dhaka, Colombo">(GMT +6:00) Almaty, Dhaka, Colombo</option>
  194.                  <option value="(GMT +7:00) Bangkok, Hanoi, Jakarta">(GMT +7:00) Bangkok, Hanoi, Jakarta</option>
  195.                  <option value="(GMT +8:00) Beijing, Perth, Singapore, Hong Kong">(GMT +8:00) Beijing, Perth, Singapore, Hong Kong</option>
  196.                  <option value="(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk">(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk</option>
  197.                  <option value="(GMT +9:30) Adelaide, Darwin">(GMT +9:30) Adelaide, Darwin</option>
  198.                  <option value="(GMT +10:00) Eastern Australia, Guam, Vladivostok">(GMT +10:00) Eastern Australia, Guam, Vladivostok</option>
  199.                  <option value="(GMT +11:00) Magadan, Solomon Islands, New Caledonia">(GMT +11:00) Magadan, Solomon Islands, New Caledonia</option>
  200.                  <option value="(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka">(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka</option>
  201.             </select>
  202.        </div>
  203.        <div class="puts1">
  204.           <p style="text-align:center;font-size:13px;margin-right:8px;">Are you a Security / Investigation company or an individual seeking to hire an investigator?*</p>
  205.          <div class="radio">
  206.             <p>company</p><input type="radio" value="company1" name="company1" id="company1" onmousedown="optSelect1B()" onclick="optSelect1()">
  207.          </div>
  208.          <div class="radio">
  209.             <p>individual</p><input type="radio" value="private" name="private" id="private" onmousedown="optSelect1B()" onclick="optSelect1()">
  210.          </div>
  211.        </div>
  212.        <div id="submits">
  213.            <input onclick="popup();" id="formSubmit" type="submit" value="submit">
  214.         </div>
  215.      </div>
  216.      </form>
  217.    </div>
  218. </body>
  219. </html>
  220.  
  221.  
  • ScottG
  • Proficient
  • Proficient
  • ScottG
  • Posts: 477

Post 3+ Months Ago

Why would you not submit the info to the same php page?
HTML Code: [ Select ]
<form action="Form.php" method="post" target="_blank" name="request">
 
  1. <form action="Form.php" method="post" target="_blank" name="request">
  2.  
  • Kurthead+1
  • Graduate
  • Graduate
  • Kurthead+1
  • Posts: 131

Post 3+ Months Ago

I had it that way at first, but there was an issue with the javascript:void(0) and it wouldn't run the page. So setting it up on a separate form action, so I could leave the other browsers to run it the way I wanted to, just happened to give me the means to create a different .php page to test different things until I could fix this IE issue.

i.e. the code is pretty much identical on both pages. But, I've tried it with just the Form.php page and it still gives blank $_POST values.

And keep in mind, all of this works perfectly in IE10, FireFox, Chrome and Opera.
  • ScottG
  • Proficient
  • Proficient
  • ScottG
  • Posts: 477

Post 3+ Months Ago

Is there a reason your using javascript:void instead of an actual page in the action?
  • Kurthead+1
  • Graduate
  • Graduate
  • Kurthead+1
  • Posts: 131

Post 3+ Months Ago

So I could run a JavaScript funtion when the submit button is pushed to test some conditions before the submission is allowed. If the conditions are met, then the JavaScript code implements the form action. I'm not sure if this matters, but if I run compatibility mode on IE10, which basically runs it as if it were in IE8 or whatever, the $_POST works correctly, returning the proper information. In the IE tester, running it on IE8, the information doesn't post as it is supposed to. Think it could be a problem with the tester? Rather than the code or the browser?
  • ScottG
  • Proficient
  • Proficient
  • ScottG
  • Posts: 477

Post 3+ Months Ago

I would do something like this instead

JAVASCRIPT Code: [ Select ]
 
// Validation function
function validate() {
   
    // Get form
    var form = document.forms['some_form'];
 
    // Get form Values
    var the_meaning_of_life = form['MoL'].value;
 
    // Validate form (Your validation code here)
    if(the_meaning_of_life == 42) {
   
        // If the form has been validated and is all correct
        return true;
 
    }
   
    // If we are at this point it means something was not validated so keep the form from submitting by
    return false;
 
}
 
 
  1.  
  2. // Validation function
  3. function validate() {
  4.    
  5.     // Get form
  6.     var form = document.forms['some_form'];
  7.  
  8.     // Get form Values
  9.     var the_meaning_of_life = form['MoL'].value;
  10.  
  11.     // Validate form (Your validation code here)
  12.     if(the_meaning_of_life == 42) {
  13.    
  14.         // If the form has been validated and is all correct
  15.         return true;
  16.  
  17.     }
  18.    
  19.     // If we are at this point it means something was not validated so keep the form from submitting by
  20.     return false;
  21.  
  22. }
  23.  
  24.  



HTML Code: [ Select ]
<!-- Notice the onSubmit -->
<form name="some_form" id="some_form" action="test.php" method="post" onSubmit="return validate();">
    <!-- Your form stuff here -->
    <input type="text" name="MoL" id="MoL"  value="42" />
    <input type="submit" value="Go!" />
</form>
 
  1. <!-- Notice the onSubmit -->
  2. <form name="some_form" id="some_form" action="test.php" method="post" onSubmit="return validate();">
  3.     <!-- Your form stuff here -->
  4.     <input type="text" name="MoL" id="MoL"  value="42" />
  5.     <input type="submit" value="Go!" />
  6. </form>
  7.  
  • Kurthead+1
  • Graduate
  • Graduate
  • Kurthead+1
  • Posts: 131

Post 3+ Months Ago

Will that onSubmit keep it from automatically opening the php page, when a button is pressed? Because I didn't know of that attribute in the form tag, but everything else I tried didn't work. I'll try it out.
  • Kurthead+1
  • Graduate
  • Graduate
  • Kurthead+1
  • Posts: 131

Post 3+ Months Ago

Ahh this was another reason I had the javascript:void on there. I have other buttons on my form. If I don't use the void, the buttons automatically become form submissions. Is there anyway to stop that? btw. Doing the onSubmit like that worked to validate the form.

This was kind of an aspect of JavaScript that I didn't know about so I'm glad you went through this.

There are still a lot of things I don't know, so I have to create loopholes and figure out how to use the tools I possess. Sometimes it's less than ideal though, like using pliers to loosen a nut or a wrench as a hammer.

Edit: Lol. I figured out how to get other buttons to not submit a form. You just specify type="button".

Edit: FYI, I took your advice on learning jQuery and I loved it about 20 minutes into it. Thanks.
  • Kurthead+1
  • Graduate
  • Graduate
  • Kurthead+1
  • Posts: 131

Post 3+ Months Ago

For some reason alert(' '); isn't working in IE8. Is it supposed to work?

I would like to have a compatibility warning popup for IE8 and lower users.
  • ScottG
  • Proficient
  • Proficient
  • ScottG
  • Posts: 477

Post 3+ Months Ago

The onSubmit being used in this context will run the validation function

within this function if you return a true the form will submit but if you return a false the form will not submit.

It took me a long time to take the plunge into jQuery since I don't like using other peoples code and i like to write my own stuff BWM praised it and said i should look into it. I haven't looked back since. It angers me that I didn't start using it sooner.

As far as the alert there should be no reason it doesn't work in IE8
try a very simple test to rule out anything else that could be causing issues

HTML Code: [ Select ]
<html>
<head>
<title>Alert Test</title>
<script type="text/javascript">
    alert('Alert 1 with single quotes');
    alert("Alert 2 with double quotes");
    var test1 = 'Alert 3 with variable and single quotes';
    var test2 = "Alert 4 with variable and double quotes";
    alert(test1);
    alert(test2);
</script>
</head>
<body>
Yay! the page loaded
</body>
</html>
 
  1. <html>
  2. <head>
  3. <title>Alert Test</title>
  4. <script type="text/javascript">
  5.     alert('Alert 1 with single quotes');
  6.     alert("Alert 2 with double quotes");
  7.     var test1 = 'Alert 3 with variable and single quotes';
  8.     var test2 = "Alert 4 with variable and double quotes";
  9.     alert(test1);
  10.     alert(test2);
  11. </script>
  12. </head>
  13. <body>
  14. Yay! the page loaded
  15. </body>
  16. </html>
  17.  
  • Kurthead+1
  • Graduate
  • Graduate
  • Kurthead+1
  • Posts: 131

Post 3+ Months Ago

Thanks for the help. Yeah I felt the same way about using jQuery as well. I like my own creations. But it doesn't oversimplify things as in a CMS. To me it's just like using a complete other coding language now. And yeah, it's really great. I'm going to delve into it pretty deep.
  • ScottG
  • Proficient
  • Proficient
  • ScottG
  • Posts: 477

Post 3+ Months Ago

Your welcome. If the warning message is the only thing your needing you could just make a jQuery dialog for that.

Dose the alert not work at the simplest level?
  • Kurthead+1
  • Graduate
  • Graduate
  • Kurthead+1
  • Posts: 131

Post 3+ Months Ago

In IE9 (compatibility mode on IE10) it does work in simplistic form. And it didn't work in my code on compatibility mode, so I'll start debugging for that. But in IE8 (on IE tester), it doesn't work at all.

Edit: And the alerts that let people know that required fields were missing from the form did work in IE9 but not IE8. So basically all problems are in IE8 Tester.

Post Information

  • Total Posts in this topic: 15 posts
  • Users browsing this forum: No registered users and 42 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.