Jump to content

AJAX Call not working in Safari


zacharyawalker

Recommended Posts

Can anyone figure out why this works in IE and Firefox but not Safari?  Any help would be great.

 


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Concept Builders</title> <link href="_css/main.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" href="_css/megamenu.css" type="text/css" media="screen" />

<script src="_scripts/pagebuilder.js" type="text/javascript"></script> <script src="_scripts/jquery-1.7.1.min.js" type="text/javascript"></script> <script src="_scripts/jquery.nivo.slider.pack.js" type="text/javascript"></script> <script src="_scripts/jquery.easing.1.3.js" type="text/javascript"></script> <script src="js/megamenu.js" type="text/javascript"></script>


<?php

include 'dbconfig.php';
include 'dbopen.php';

$plan=$_GET["plan"];

$sql = "SELECT * FROM homes WHERE plan_id= '".$plan."'";

$result = mysql_query($sql);

while ($row = mysql_fetch_array($result)) {
$price=$row['price'];
$sqft=$row['sqft'];
$beds=$row['bedrooms'];
$baths=$row['baths'];
$amenities=$row['amenity_1'].", ".$row['amenity_2']; }

setlocale(LC_MONETARY, 'en_US');
$price=money_format('%(#6.0n', $price);


$plan_details= "<table>
   
        <tr>
      <td width='182' class='propDetailsHeadings'>Price:</td>
      <td width='75'>".$price."</td>
        </tr>
    <tr>
      <td class='propDetailsHeadings'>SQ Feet:</td>
      <td>".$sqft."</td>
        </tr>
	 <tr>
      <td class='propDetailsHeadings'>Amenities:</td>
      <td></td>
        </tr>
	<tr>
    <td>".$amenities."</td>
      <td></td>
        </tr>
	</table>";?>

<script language="javascript" type="text/javascript">


function loadPage()
{
    var ajaxDisplay = document.getElementById("plan_details");
	ajaxDisplay.innerHTML = <?PHP echo $plan_details;?>;
    
}

</script>

</head>

<body onload="loadPage()">

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.