SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
-
Feb 13, 2007, 09:37 #1
- Join Date
- Mar 2005
- Location
- Tennessee
- Posts
- 797
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Issue With Script In Safari Browser
I have a site linked below where, when a visitor clicks on a specific doctors image or name a pop-up appears for that specific doctor. In the pop-up window there is a "Make An Appointment" button that, when clicked, goes to the Make An Appointment page. This page uses Javascript to determine whether or not a individual doctors bio page was refferred or not. If yes, then the Doctors pull down is filled in with the doctors name respectively. It seems to work perfectly in Explorer (Mac and PC), Firefox (Mac and PC), Opera (Mac and PC), Netscape (Mac and PC)... but not Safari. I was wondering if anyone knew why it doesn't like Safari. Or could it be just my Safari browser? I am running the Mac OSX 10.4.8 platform. In advance I appreciate any and all input. Thanks so much!
Todd Temple
LINK-
http://www.tocdocs.com/test/ourDoctors.htmlTodd Temple > T2 Design
-
Feb 13, 2007, 16:24 #2
- Join Date
- Mar 2001
- Posts
- 3,537
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
This page uses Javascript to determine whether or not a individual doctors bio page was refferred or not.
-
Feb 13, 2007, 17:16 #3
- Join Date
- Mar 2005
- Location
- Tennessee
- Posts
- 797
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Here is the javascript code for the individual doctors page (Dr. Brady shown) that should fill the fillCategory() function.
HTML Code:function fillCategory(){ // this function is used to fill the category list on loadaddOption(document.drop_list.Category, "Fort Sanders Regional Medical Center", "Fort Sanders Regional Medical Center", ""); addOption(document.drop_list.Category, "The Tower At Parkwest", "The Tower At Parkwest", ""); addOption(document.drop_list.Category, "Lenoir City", "Lenoir City", ""); addOption(document.drop_list.SubCat,"Dr. Paul C. Brady", "Dr. Paul C. Brady"); } function SelectSubCat(){ // ON selection of category this function will work } function removeAllOptions(selectbox) { var i; for(i=selectbox.options.length-1;i>=0;i--) { //selectbox.options.remove(i); selectbox.remove(i); } } function addOption(selectbox, value, text ) { var optn = document.createElement("OPTION"); optn.text = text; optn.value = value; selectbox.options.add(optn); }
HTML Code:function fillCategory(){ // this function is used to fill the category list on load addOption(document.drop_list.Category, "No preference...", "No preference...", ""); addOption(document.drop_list.Category, "Fort Sanders Regional Medical Center", "Fort Sanders Regional Medical Center", ""); addOption(document.drop_list.Category, "The Tower At Parkwest", "The Tower At Parkwest", ""); addOption(document.drop_list.Category, "Oak Ridge Physician Plaza", "Oak Ridge Physician Plaza", ""); addOption(document.drop_list.Category, "Lenoir City", "Lenoir City", ""); addOption(document.drop_list.Category, "Seymour", "Seymour", ""); addOption(document.drop_list.Category, "SPINEKnoxville", "SPINEKnoxville", ""); addOption(document.drop_list.Category, "Podiatry Parkwest", "Podiatry Parkwest", ""); addOption(document.drop_list.Category, "Podiatry Oak Ridge", "Podiatry Oak Ridge", ""); addOption(document.drop_list.SubCat, "No preference... ", "No preference... ", ""); } function SelectSubCat(){ // ON selection of category this function will work removeAllOptions(document.drop_list.SubCat); addOption(document.drop_list.SubCat, "", "Doctor", ""); if(document.drop_list.Category.value == 'No preference...'){ addOption(document.drop_list.SubCat,"Dr. Paul C. Brady", "Dr. Paul C. Brady"); addOption(document.drop_list.SubCat,"Dr. E. Brantley Burns", "Dr. E. Brantley Burns"); addOption(document.drop_list.SubCat,"Dr. Michael T. Casey, Jr.", "Dr. Michael T. Casey, Jr."); addOption(document.drop_list.SubCat,"Dr. Harold E. Cates", "Dr. Harold E. Cates"); addOption(document.drop_list.SubCat,"Dr. Richard B. Cunningham", "Dr. Richard B. Cunningham"); addOption(document.drop_list.SubCat,"Dr. James A. Engblom", "Dr. James A. Engblom"); addOption(document.drop_list.SubCat,"Dr. R. Jay French, Jr.", "Dr. R. Jay French, Jr."); addOption(document.drop_list.SubCat,"Dr. Charles A. Gouffon", "Dr. Charles A. Gouffon"); addOption(document.drop_list.SubCat,"Dr. John E. B. Harrison", "Dr. John E. B. Harrison"); addOption(document.drop_list.SubCat,"Dr. Robert C. Jackson", "Dr. Robert C. Jackson"); addOption(document.drop_list.SubCat,"Dr. Edward K. Kahn", "Dr. Edward K. Kahn"); addOption(document.drop_list.SubCat,"Dr. Duncan L. McKellar, Jr.", "Dr. Duncan L. McKellar, Jr."); addOption(document.drop_list.SubCat,"Dr. Paul T. Naylor", "Dr. Paul T. Naylor"); addOption(document.drop_list.SubCat,"Dr. Rick E. Parsons", "Dr. Rick E. Parsons"); addOption(document.drop_list.SubCat,"Dr. Tracy A. Pesut", "Dr. Tracy A. Pesut"); addOption(document.drop_list.SubCat,"Dr. Al Pinzon", "Dr. Al Pinzon"); addOption(document.drop_list.SubCat,"Dr. Jean-Francois P. Reat", "Dr. Jean-Francois P. Reat"); addOption(document.drop_list.SubCat,"Dr. Timothy J. Renfree", "Dr. Timothy J. Renfree"); addOption(document.drop_list.SubCat,"Dr. John M. Reynolds", "Dr. John M. Reynolds"); addOption(document.drop_list.SubCat,"Dr. Kendale L. Ritchey", "Dr. Kendale L. Ritchey"); addOption(document.drop_list.SubCat,"Dr. Jeffrey A. Uzzle", "Dr. Jeffrey A. Uzzle"); addOption(document.drop_list.SubCat,"Dr. P. Merrill White, III", "Dr. P. Merrill White, III"); } if(document.drop_list.Category.value == 'Fort Sanders Regional Medical Center'){ addOption(document.drop_list.SubCat,"Dr. E. Brantley Burns", "Dr. E. Brantley Burns"); addOption(document.drop_list.SubCat,"Dr. Michael T. Casey, Jr.", "Dr. Michael T. Casey, Jr."); addOption(document.drop_list.SubCat,"Dr. John E. B. Harrison", "Dr. John E. B. Harrison"); addOption(document.drop_list.SubCat,"Dr. John M. Reynolds", "Dr. John M. Reynolds"); addOption(document.drop_list.SubCat,"Dr. Al Pinzon", "Dr. Al Pinzon"); } if(document.drop_list.Category.value == 'The Tower At Parkwest'){ addOption(document.drop_list.SubCat,"Dr. Paul C. Brady", "Dr. Paul C. Brady"); addOption(document.drop_list.SubCat,"Dr. Michael T. Casey, Jr.", "Dr. Michael T. Casey, Jr."); addOption(document.drop_list.SubCat,"Dr. Harold E. Cates", "Dr. Harold E. Cates"); addOption(document.drop_list.SubCat,"Dr. Richard B. Cunningham", "Dr. Richard B. Cunningham"); addOption(document.drop_list.SubCat,"Dr. R. Jay French, Jr.", "Dr. R. Jay French, Jr."); addOption(document.drop_list.SubCat,"Dr. John E. B. Harrison", "Dr. John E. B. Harrison"); addOption(document.drop_list.SubCat,"Dr. Robert C. Jackson", "Dr. Robert C. Jackson"); addOption(document.drop_list.SubCat,"Dr. Paul T. Naylor", "Dr. Paul T. Naylor"); addOption(document.drop_list.SubCat,"Dr. Rick E. Parsons", "Dr. Rick E. Parsons"); addOption(document.drop_list.SubCat,"Dr. Tracy A. Pesut", "Dr. Tracy A. Pesut"); addOption(document.drop_list.SubCat,"Dr. Timothy J. Renfree", "Dr. Timothy J. Renfree"); } if(document.drop_list.Category.value == 'Oak Ridge Physician Plaza'){ addOption(document.drop_list.SubCat,"Dr. R. Jay French, Jr.", "Dr. R. Jay French, Jr."); addOption(document.drop_list.SubCat,"Dr. Edward K. Kahn", "Dr. Edward K. Kahn"); addOption(document.drop_list.SubCat,"Dr. Duncan L. McKellar, Jr.", "Dr. Duncan L. McKellar, Jr."); addOption(document.drop_list.SubCat,"Dr. Jean-Francois P. Reat", "Dr. Jean-Francois P. Reat"); addOption(document.drop_list.SubCat,"Dr. Timothy J. Renfree", "Dr. Timothy J. Renfree"); addOption(document.drop_list.SubCat,"Dr. Jeffrey A. Uzzle", "Dr. Jeffrey A. Uzzle"); } if(document.drop_list.Category.value == 'Lenoir City'){ addOption(document.drop_list.SubCat,"Dr. Paul C. Brady", "Dr. Paul C. Brady"); addOption(document.drop_list.SubCat,"Dr. Robert C. Jackson", "Dr. Robert C. Jackson"); addOption(document.drop_list.SubCat,"Dr. Paul T. Naylor", "Dr. Paul T. Naylor"); addOption(document.drop_list.SubCat,"Dr. Rick E. Parsons", "Dr. Rick E. Parsons"); addOption(document.drop_list.SubCat,"Dr. Tracy A. Pesut", "Dr. Tracy A. Pesut"); addOption(document.drop_list.SubCat,"Dr. Jean-Francois P. Reat", "Dr. Jean-Francois P. Reat"); } if(document.drop_list.Category.value == 'Seymour'){ addOption(document.drop_list.SubCat,"Dr. E. Brantley Burns", "Dr. E. Brantley Burns"); addOption(document.drop_list.SubCat,"Dr. Michael T. Casey, Jr.", "Dr. Michael T. Casey, Jr."); addOption(document.drop_list.SubCat,"Dr. John E. B. Harrison", "Dr. John E. B. Harrison"); addOption(document.drop_list.SubCat,"Dr. John M. Reynolds", "Dr. John M. Reynolds"); } if(document.drop_list.Category.value == 'SPINEKnoxville'){ addOption(document.drop_list.SubCat,"Dr. Edward K. Kahn", "Dr. Edward K. Kahn"); addOption(document.drop_list.SubCat,"Dr. Al Pinzon", "Dr. Al Pinzon"); addOption(document.drop_list.SubCat,"Dr. Jeffrey A. Uzzle", "Dr. Jeffrey A. Uzzle"); addOption(document.drop_list.SubCat,"Dr. P. Merrill White, III", "Dr. P. Merrill White, III"); } if(document.drop_list.Category.value == 'Podiatry Parkwest'){ addOption(document.drop_list.SubCat,"Dr. Kendale L. Ritchey", "Dr. Kendale L. Ritchey"); } if(document.drop_list.Category.value == 'Podiatry Oak Ridge'){ addOption(document.drop_list.SubCat,"Dr. James A. Engblom", "Dr. James A. Engblom"); } } ////////////////// function removeAllOptions(selectbox) { var i; for(i=selectbox.options.length-1;i>=0;i--) { //selectbox.options.remove(i); selectbox.remove(i); } } function addOption(selectbox, value, text ) { var optn = document.createElement("OPTION"); optn.text = text; optn.value = value; selectbox.options.add(optn); }
And here is the PHP code from the Make An Appointment page.
PHP Code:<?php
function substring_between($haystack,$start,$end) {
if (strpos($haystack,$start) === false || strpos($haystack,$end) === false) {
return false;
} else {
$start_position = strpos($haystack,$start)+strlen($start);
$end_position = strpos($haystack,$end);
return substr($haystack,$start_position,$end_position-$start_position);
}
}
if(isset($_REQUEST['submit']))
{
$contact_firstName = $_REQUEST['contact_firstName'];
$contact_lastName = $_REQUEST['contact_lastName'];
$contact_dayphone = $_REQUEST['contact_dayphone'];
$contact_eveningphone = $_REQUEST['contact_eveningphone'];
$contact_email = $_REQUEST['contact_email'];
$Category = $_REQUEST['Category'];
$SubCat = $_REQUEST['SubCat'];
$contact_day = $_REQUEST['contact_day'];
$contact_timeframe = $_REQUEST['contact_timeframe'];
$contact_comments = $_REQUEST['contact_comments'];
$subject = "Appoinment Application";
$message = "<table align=center><tr><td colspan=2>";
$message .= "<strong>Appoinment Application Form Details</strong></td></tr>";
$message .= "<tr><td colspan=2> </td><td>";
$message .= "<tr><td>First Name : </td><td>";
$message .= $contact_firstName."</td></tr>";
$message .= "<tr><td>Last Name : </td><td>";
$message .= $contact_lastName."</td></tr>";
$message .= "<tr><td>Day Phone Number : </td><td>";
$message .= $contact_dayphone."</td></tr>";
$message .= "<tr><td>Evening Phone Number : </td><td>";
$message .= $contact_eveningphone."</td></tr>";
$message .= "<tr><td>Contact Email : </td><td>";
$message .= $contact_email."</td></tr>";
$message .= "<tr><td>Clinic : </td><td>";
$message .= $Category."</td></tr>";
$message .= "<tr><td>Doctor : </td><td>";
$message .= $SubCat."</td></tr>";
$message .= "<tr><td>Day : </td><td>";
$message .= $contact_day."</td></tr>";
$message .= "<tr><td>Time Frame : </td><td>";
$message .= $contact_timeframe."</td></tr>";
$message .= "<tr><td>Comments : </td><td>";
$message .= $contact_comments."</td></tr>";
$message .= "</table>";
if($Category=='Fort Sanders Regional Medical Center')
{
$to = "TOC-RegApp@tocdocs.com";
}
else if($Category=='The Tower At Parkwest')
{
$to = "TOC-PWApp@tocdocs.com";
}
else if($Category=='Oak Ridge Physician Plaza')
{
$to = "TOC-ORApp@tocdocs.com";
}
else if($Category=='SPINEKnoxville')
{
$to = "TOC-SKApp@tocdocs.com";
}
else if($Category=='Lenoir City')
{
$to = "TOC-LCApp@tocdocs.com";
}
else if($Category=='Seymour')
{
$to = "TOC-RegApp@tocdocs.com";
}
else if($Category=='Podiatry Parkwest')
{
$to = "TOC-PWPodApp@tocdocs.com";
}
else if($Category=='Podiatry Oak Ridge')
{
$to = "TOC-ORPodApp@tocdocs.com";
}
$from = "Tennessee Orthopaedic";
@mail($to,$subject,$message,"From: $from\nContent-Type: text/html; charset=iso-8859-1");
echo "<script>window.location='makeAnAppointment.php?sent=1';</script>";
}
?>
<!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>
<title>Tennessee Orthopaedic Clinics - Life or Sports, We Get You Back In The
Game.</title>
<link href="c/toc_styles.css" rel="stylesheet" type="text/css" />
<?
$referer = strtolower($_SERVER["HTTP_REFERER"]);
$phys_last_name = substring_between($referer, 'bio_', '.html');
$external_script = $phys_last_name.'DropDownList.js';
print "phys_last_name is $phys_last_name \n";
print "external_script is $external_script \n";
if (empty($phys_last_name))
{ print "<script language=\"javascript\" src=\"dropDownList.js\" type=\"text/javascript\"></script>"; }
else
{ print "<script language=\"javascript\" src=\"$external_script\" type=\"text/javascript\"></script>"; }
?>
<script language="JavaScript" src="global.js" type="text/javascript"></script>
<script>
function check()
{
if(document.drop_list.contact_firstName.value=='')
{
alert("Please enter your first name");
document.drop_list.contact_firstName.focus();
return false;
}
if(document.drop_list.contact_lastName.value=='')
{
alert("Please enter your last name");
document.drop_list.contact_lastName.focus();
return false;
}
if(document.drop_list.contact_dayphone.value=='')
{
alert("Please enter your day phone");
document.drop_list.contact_dayphone.focus();
return false;
}
if(document.drop_list.contact_eveningphone.value=='')
{
alert("Please enter your evening phone");
document.drop_list.contact_eveningphone.focus();
return false;
}
if(document.drop_list.Category.value=='No preference...')
{
alert("Please select a clinic");
document.drop_list.Category.focus();
return false;
}
}
</script>
</head>
<body onload="fillCategory();preloadImages();" style="background-color:#FFFFFF;">
<div id="Table_01">
<div id="gfx-masthead-top_">
<img id="gfx_masthead_top" src="i/gfx_masthead_top.gif" width="750" height="30" alt="Life Or Sports, We Get You Back In The Game. SM" />
</div>
<div id="gfx-toc-logo_">
<a href="index.php">
<img src="i/gfx_toc_logo.gif" alt="Tennessee Orthopaedic Clinics - Life Or Sports, We Get You Back In The Game. SM" name="gfx_toc_logo" width="326" height="95" border="0" id="gfx_toc_logo" /></a>
</div>
<div id="gfx-masthead-left_">
<img id="gfx_masthead_left" src="i/gfx_masthead_left.gif" width="61" height="95" alt="" />
</div>
<div id="gfx-masthead-btm_">
<img id="gfx_masthead_btm" src="i/gfx_masthead_btm.gif" width="255" height="38" alt="" />
</div>
<div id="btn-webMail_">
<a href="http://gateway.tocdocs.com/exchange/logon.asp" target="_blank"
onmouseover="changeImages('btn_webMail', 'i/btn_webMail-over.gif'); return true;"
onmouseout="changeImages('btn_webMail', 'i/btn_webMail.gif'); return true;">
<img name="btn_webMail" id="btn_webMail" src="i/btn_webMail.gif" width="108" height="38" border="0" alt="Web Mail" /></a>
</div>
<div id="btn-ourDoctors_">
<a href="ourDoctors.html"
onmouseover="changeImages('btn_ourDoctors', 'i/btn_ourDoctors-over.gif'); return true;"
onmouseout="changeImages('btn_ourDoctors', 'i/btn_ourDoctors.gif'); return true;">
<img name="btn_ourDoctors" id="btn_ourDoctors" src="i/btn_ourDoctors.gif" width="110" height="57" border="0" alt="Our Doctors" /></a>
</div>
<div id="btn-ourServices_">
<a href="ourServices.html"
onmouseover="changeImages('btn_ourServices', 'i/btn_ourServices-over.gif'); return true;"
onmouseout="changeImages('btn_ourServices', 'i/btn_ourServices.gif'); return true;">
<img name="btn_ourServices" id="btn_ourServices" src="i/btn_ourServices.gif" width="110" height="57" border="0" alt="Our Services" /></a>
</div>
<div id="btn-ourLocations_">
<a href="ourLocations.html"
onmouseover="changeImages('btn_ourLocations', 'i/btn_ourLocations-over.gif'); return true;"
onmouseout="changeImages('btn_ourLocations', 'i/btn_ourLocations.gif'); return true;">
<img name="btn_ourLocations" id="btn_ourLocations" src="i/btn_ourLocations.gif" width="143" height="57" border="0" alt="Our Locations" /></a>
</div> <div id="btn-makeAnAppointment_">
<a href="makeAnAppointment.php"
onmouseover="changeImages('btn_makeAnAppointment', 'i/btn_makeAnAppointment-over.gif'); return true;"
onmouseout="changeImages('btn_makeAnAppointment', 'i/btn_makeAnAppointment.gif'); return true;">
<img id="btn_makeAnAppointment" src="i/btn_makeAnAppointment.gif" width="133" height="61" border="0" alt="Make An Appointment" /></a>
</div> <div id="btn-askOurNurse_">
<a href="askOurNurse.php"
onmouseover="changeImages('btn_askOurNurse', 'i/btn_askOurNurse-over.gif'); return true;"
onmouseout="changeImages('btn_askOurNurse', 'i/btn_askOurNurse.gif'); return true;">
<img id="btn_askOurNurse" src="i/btn_askOurNurse.gif" width="95" height="61" border="0" alt="Ask Our Nurse" /></a>
</div>
<div id="btn-findAdoctor_">
<a href="findAdoctor.html"
onmouseover="changeImages('btn_findAdoctor', 'i/btn_findAdoctor-over.gif'); return true;"
onmouseout="changeImages('btn_findAdoctor', 'i/btn_findAdoctor.gif'); return true;">
<img name="btn_findAdoctor" id="btn_findAdoctor" src="i/btn_findAdoctor.gif" width="84" height="61" border="0" alt="Find A Doctor" /></a>
</div> <div id="btn-sportsMedicine_">
<a href="sportsMedicine.php"
onmouseover="changeImages('btn_sportsMedicine', 'i/btn_sportsMedicine-over.gif'); return true;"
onmouseout="changeImages('btn_sportsMedicine', 'i/btn_sportsMedicine.gif'); return true;">
<img name="btn_sportsMedicine" id="btn_sportsMedicine" src="i/btn_sportsMedicine.gif" width="112" height="61" border="0" alt="Sports Medicine" /></a>
</div>
<div id="gfx-nav-topLeft_">
<img id="gfx_nav_topLeft" src="i/gfx_nav_topLeft.gif" width="35" height="27" alt="" />
</div>
<div id="btn-onlineForms_">
<a href="onlineForms.html"
onmouseover="changeImages('btn_onlineForms', 'i/btn_onlineForms-over.gif'); return true;"
onmouseout="changeImages('btn_onlineForms', 'i/btn_onlineForms.gif'); return true;">
<img name="btn_onlineForms" id="btn_onlineForms" src="i/btn_onlineForms.gif" width="195" height="27" border="0" alt="Patient Information & Online Forms" /></a>
</div>
<div id="btn-spineKnoxville_">
<a href="spineKnoxville.html"
onmouseover="changeImages('btn_spineKnoxville', 'i/btn_spineKnoxville-over.gif'); return true;"
onmouseout="changeImages('btn_spineKnoxville', 'i/btn_spineKnoxville.gif'); return true;">
<img name="btn_spineKnoxville" id="btn_spineKnoxville" src="i/btn_spineKnoxville.gif" width="95" height="27" border="0" alt="SPINEKnoxville" /></a>
</div>
<div id="btn-tocPodiatry_">
<a href="tocPodiatry.html"
onmouseover="changeImages('btn_tocPodiatry', 'i/btn_tocPodiatry-over.gif'); return true;"
onmouseout="changeImages('btn_tocPodiatry', 'i/btn_tocPodiatry.gif'); return true;">
<img name="btn_tocPodiatry" id="btn_tocPodiatry" src="i/btn_tocPodiatry.gif" width="99" height="27" border="0" alt="TOC Podiatry" /></a>
</div>
<div id="btn-forEmployers_">
<a href="forEmployers.html"
onmouseover="changeImages('btn_forEmployers', 'i/btn_forEmployers-over.gif'); return true;"
onmouseout="changeImages('btn_forEmployers', 'i/btn_forEmployers.gif'); return true;">
<img name="btn_forEmployers" id="btn_forEmployers" src="i/btn_forEmployers.gif" width="95" height="27" border="0" alt="For Employers" /></a>
</div>
<div id="btn-acceptedInsurance_">
<a href="acceptedInsurance.html"
onmouseover="changeImages('btn_acceptedInsurance', 'i/btn_acceptedInsurance-over.gif'); return true;"
onmouseout="changeImages('btn_acceptedInsurance', 'i/btn_acceptedInsurance.gif'); return true;">
<img name="btn_acceptedInsurance" id="btn_acceptedInsurance" src="i/btn_acceptedInsurance.gif" width="113" height="27" border="0" alt="Accepted Insurance" /></a>
</div> <div id="btn-infoRx_">
<a href="http://inforx.ortholink.net/" target="_blank"
onmouseover="changeImages('btn_infoRx', 'i/btn_infoRx-over.gif'); return true;"
onmouseout="changeImages('btn_infoRx', 'i/btn_infoRx.gif'); return true;">
<img name="btn_infoRx" id="btn_infoRx" src="i/btn_infoRx.gif" width="53" height="27" border="0" alt="Info RX" /></a>
</div>
<div id="btn-links_">
<a href="links.html"
onmouseover="changeImages('btn_links', 'i/btn_links-over.gif'); return true;"
onmouseout="changeImages('btn_links', 'i/btn_links.gif'); return true;">
<img name="btn_links" id="btn_links" src="i/btn_links.gif" width="43" height="27" border="0" alt="Links" /></a>
</div>
<div id="btn-quickCareClinic_">
<a href="quickCareClinic.html"
onmouseover="changeImages('btn_quickCareClinic', 'i/btn_quickCareClinic-over.gif'); return true;"
onmouseout="changeImages('btn_quickCareClinic', 'i/btn_quickCareClinic.gif'); return true;">
<img name="btn_quickCareClinic" id="btn_quickCareClinic" src="i/btn_quickCareClinic.gif" width="120" height="27" border="0" alt="Quick Care Clinic" /></a>
</div>
<div id="gfx-currentEvents-top_">
<img id="gfx_currentEvents_top" src="i/gfx_currentEvents_top.gif" width="424" height="30" alt="" />
</div>
</div>
<div id="masthead" style="position:absolute; left:514px; top:16px; width:224px; height:13px; z-index:103" class="masthead">| <a href="index.php">HOME</a> | <a href="aboutUs.html">ABOUT
US</a> | <a href="siteMap.html">SITE
MAP</a> | <a href="contactUs.html">CONTACT
US</a> |</div>
<div id="footer" style="position:absolute; left:0px; top:869px; width:750px; height:29px; z-index:106" class="footer">| <a href="index.php">HOME</a> | <a href="aboutUs.html">ABOUT
US</a> | <a href="siteMap.html">SITE MAP</a> | <a href="contactUs.html">CONTACT US</a> | <a href="#">WEB
MAIL</a> |
<a href="ourDoctors.html">OUR DOCTORS</a> | <a href="ourServices.html">OUR
SERVICES</a> | <a href="ourLocations.html">OUR LOCATIONS</a> | <a href="makeAnAppointment.php">MAKE
AN APPOINTMENT</a> |<br />
| <a href="askOurNurse.php">ASK OUR NURSE</a> | <a href="findAdoctor.html">FIND
A DOCTOR</a> | <a href="sportsMedicine.php">SPORTS
MEDICINE</a> | <a href="onlineForms.html">PATIENT INFORMATION & ONLINE FORMS</a> | <a href="spineKnoxville.html">SPINE
KNOXVILLE</a> | <a href="tocPodiatry.html">TOC PODIATRY</a> |<br />
|
<a href="forEmployers.html">FOR EMPLOYERS</a> | <a href="acceptedInsurance.html">ACCEPTED
INSURANCE</a> | <a href="http://inforx.ortholink.net/" target="_blank">INFO
RX</a> | <a href="links.html">LINKS</a> | <a href="quickCareClinic.html">QUICK
CARE CLINIC</a> | <a href="comingSoon.html">COMING SOON</a> | <a href="disclaimer.html">DISCLAIMER</a> | <a href="hipaa1.html">PRIVACY
POLICY</a> |</div>
<div id="footerBkg" style="position:absolute; left:0px; top:850px; width:750px; height:75px; z-index:105; background-image: url(i/gfx_footer_bkg.gif); layer-background-image: url(i/gfx_footer_bkg.gif); border: 1px none #000000;"></div>
<div id="copyright" style="position:absolute; left:0px; top:930px; width:750px; height:20px; z-index:107" class="footer">
<p>© COPYRIGHT
2006. ALL RIGHTS RESERVED BY TENNESSEE ORTHOPAEDIC CLINICS. </p>
<p> </p>
</div>
<div id="gfx-slogan_">
<img id="gfx_slogan" src="i/gfx_slogan.gif" width="326" height="165" alt="Life Or Sports, We Get You Back In The Game. SM" />
</div>
<div id="gfx-nav-btm_">
<img id="gfx_nav_btm" src="i/gfx_nav_btm.gif" width="424" height="50" alt="" />
</div>
<div id="gfx-header_">
<img src="i/gfx_header_makeAnAppointmen.gif" alt="Make An Appointment" name="gfx_header_makeAnAppointment" width="750" height="67" id="gfx_header_makeAnAppointment" />
</div>
<div id="gfx-col-sm_">
<img id="gfx_col_sm" src="i/gfx_col_sm.gif" width="750" height="433" alt="" />
</div>
<div id="Layer3" style="position:absolute; left:95px; top:365px; width:525px; height:401px; z-index:104">
<!-- START APPOINTMENT FORM -->
<form action="<?php print($PHP_SELF); ?>" name="drop_list" method="post">
<table width="500" border="0" cellpadding="2" cellspacing="0">
<tr class="content">
<td align="right" valign="top" class="content">First Name:</td>
<td align="left" valign="top" class="content"><input type="text" name="contact_firstName" value="<?php echo $_POST['contact_firstName'] ?>" size="30" tabindex="1" />
<span class="masthead">* Denotes Required Fields.</span></td>
</tr>
<tr class="content">
<td width="124" align="right" valign="top" class="content">Last Name:</td>
<td width="368" align="left" valign="top" class="content"><input type="text" name="contact_lastName" value="<?php echo $_POST['contact_lastName'] ?>" size="30" tabindex="1" />
<span class="masthead">*</span></td>
</tr>
<tr class="content">
<td width="124" align="right" valign="top" class="content">Day Phone #:</td>
<td width="368" align="left" valign="top" class="content"><input name="contact_dayphone" type="text" value="<?php echo $_POST['contact_dayphone'] ?>" size="30" tabindex="1" />
<span class="masthead">*</span></td>
</tr>
<tr class="content">
<td width="124" align="right" valign="top" class="content">Evening Phone #:</td>
<td width="368" align="left" valign="top" class="content"><input name="contact_eveningphone" type="text" value="<?php echo $_POST['contact_eveningphone'] ?>" size="30" tabindex="1" />
<span class="masthead">*</span></td>
</tr>
<tr class="content">
<td width="124" align="right" valign="top" class="content">Email Address: <br />
</td>
<td width="368" align="left" valign="top" class="content"><input name="contact_email" type="text" value="<?php echo $_POST['contact_email'] ?>" size="30" tabindex="1" />
</td>
</tr>
<tr>
<td width="124" align="right" valign="top" class="content">Clinic: </td>
<td width="368" align="left" valign="top" class="content">
<select name="Category" onchange="SelectSubCat();" value="<?php echo $_POST['contact_clinic'] ?>">
</select> <span class="masthead">*</span> </td>
</tr>
<tr>
<td width="124" align="right" valign="top" class="content">Doctor: </td>
<td width="368" align="left" valign="top" class="content"><select id="SubCat" name="SubCat" value="<?php echo $_POST['contact_doctor'] ?>">
</select>
</td>
</tr>
<tr>
<td width="124" align="right" valign="top" class="content">Day: </td>
<td width="368" align="left" valign="top" class="content"><select name="contact_day" id="day" value="<?php echo $_POST['contact_day'] ?>">
<option value="Monday" selected="selected">Monday</option>
<option value="Tuesday">Tuesday</option>
<option value="Wednesday">Wednesday</option>
<option value="Thursday">Thursday</option>
<option value="Friday">Friday</option>
</select>
</td>
</tr>
<tr>
<td width="124" align="right" valign="top" class="content">Time-frame: </td>
<td width="368" align="left" valign="top" class="content"><select name="contact_timeframe" id="timeframe" value="<?php echo $_POST['contact_timeframe'] ?>">
<option value="Morning" selected="selected">Morning</option>
<option value="Mid-Day">Mid-Day</option>
<option value="Afternoon">Afternoon</option>
</select>
</td>
</tr>
<tr class="content">
<td width="124" align="right" valign="top" class="content">Comments: </td>
<td width="368" align="left" valign="top" class="content"><textarea name="contact_comments" cols="30" rows="4" wrap="VIRTUAL" tabindex="1"><?php echo $_POST['contact_comments'] ?></textarea>
</td>
</tr>
<tr class="content">
<td align="right" valign="top" class="content"> </td>
<td align="left" valign="top" class="content"><input type="submit" name="submit" value="Make An Appointment" onclick="javascript: return check();"></td>
</tr>
</table>
</form>
<!-- END APPOINTMENT FORM -->
</div>
<div id="admin" style="position:absolute; left:572px; top:40px; width:81px; height:16px; z-index:119">
<a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('btn_admin','','i/btn_admin-over.gif',1)"><img src="i/btn_admin.gif" alt="Admin Login" name="btn_admin" width="81" height="16" border="0" id="btn_admin" onclick="MM_openBrWindow('login.html','','status=yes,scrollbars=yes,resizable=yes,width=400,height=230')" /></a></div>
<script src="http://www.google-analytics.com/urchin.js"
type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1162113-1";
urchinTracker();
</script>
</body>
</html>
<?
if($sent=='')
{
$sent = $_REQUEST['sent'];
}
if($sent==1)
{
echo "<script>alert('Your appoinment information has been sent.');</script>";
}
?>
Does this help?Todd Temple > T2 Design
-
Feb 14, 2007, 02:22 #4
- Join Date
- Mar 2001
- Posts
- 3,537
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
It seems to work perfectly in Explorer
The following is the opposite of cross-browser code:
Code:function addOption(selectbox, value, text ) { var optn = document.createElement("OPTION"); optn.text = text; optn.value = value; selectbox.options.add(optn); }
2) Don't use add().
Try this:
Code:function addOption(selectbox, value, text ) { var optn = new Option(text, value); selectbox.options[selectbox.options.length] = optn; }
Bookmarks