Topic: ajax/php problem with the viewer

Hello,

when i go to my gallery : phil.nicop.net/vieillesse_divers.html it's work great
but when i go to : phil.nicop.net/index3.php, and if i click on "bhbhbh" the page vieillesse_divers.html doesn't load into the DIV

ajax.php link the 2 others pages : phil.nicop.net/ajax.php

if u can help me, please !!

Re: ajax/php problem with the viewer

In phil.nicop.net/index3.php you have the SWFObjects JavaScript doc inserted 3 times, but I do not see the actual embed code. Try removing 2 of the SWFObject insert tags and adding the embed code to your HTML.

<!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>Untitled Document</title>
<script src="../Scripts/swfobject_modified.js" type="text/javascript"></script>
<script type='text/JavaScript'>
var xhr = null; 
function getXhr()
{
     if(window.XMLHttpRequest)xhr = new XMLHttpRequest(); 
else if(window.ActiveXObject)
  { 
  try{
     xhr = new ActiveXObject("Msxml2.XMLHTTP");
     } catch (e) 
     {
     xhr = new ActiveXObject("Microsoft.XMLHTTP");
     }
  }
else 
  {
  alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
  xhr = false; 
  } 
}
 
function ShowPage(page)
{
getXhr();
xhr.onreadystatechange = function()
    {
     if(xhr.readyState == 4 && xhr.status == 200)
     {
     document.getElementById('page').innerHTML=xhr.responseText;
     }
    }
xhr.open("GET","ajax.php?page="+page,true);
xhr.send(null);
}
 
</script>
<style type="text/css">
<!--
body {
    background-color: #000;
}
#page {
    position:absolute;
    left:194px;
    top:80px;
    width:872px;
    height:489px;
    z-index:1;
}
-->
</style></head>


<body onload="ShowPage(1)">
<div id="page"></div>
<table width="986" border="0">

<tr>
    <td width="200"><table id="Tableau_01" width="168" height="500" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td colspan="4"><img src="images/Sans-titre-1_01.gif" width="168" height="61" alt="" /></td>
      </tr>
      <tr>
        <td rowspan="12"><img src="images/Sans-titre-1_02.gif" width="52" height="438" alt="" /></td>
        <td><img src="images/Sans-titre-1_03.gif" width="78" height="32" alt="" /></td>
        <td colspan="2" rowspan="2"><img src="images/Sans-titre-1_04.gif" width="38" height="43" alt="" /></td>

      </tr>
      <tr>
        <td><img src="images/Sans-titre-1_05.gif" width="78" height="11" alt="" /></td>
      </tr>
      <tr>
        <td colspan="2"><a href="#" onClick="ShowPage(1)">reportage</a><img src="images/Sans-titre-1_06.gif" width="92" height="32" alt="" /></a></td>
        <td rowspan="10"><img src="images/Sans-titre-1_07.gif" width="24" height="395" alt="" /></td>
      </tr>

      <tr>
        <td colspan="2"><img src="images/Sans-titre-1_08.gif" width="92" height="17" alt="" /></td>
      </tr>
      <tr>
        <td colspan="2"><a href="#" onClick="ShowPage(3)">bhbhbh</a><img src="images/Sans-titre-1_09.gif" width="92" height="26" alt="" /></a></td>
      </tr>
      <tr>
        <td colspan="2"><img src="images/Sans-titre-1_10.gif" width="92" height="19" alt="" /></td>

      </tr>
      <tr>
        <td colspan="2"><img src="images/Sans-titre-1_11.gif" width="92" height="31" alt="" /></td>
      </tr>
      <tr>
        <td colspan="2"><img src="images/Sans-titre-1_12.gif" width="92" height="16" alt="" /></td>
      </tr>
      <tr>
        <td colspan="2"><a href="#" onClick="ShowPage(2)">divers</a><img src="images/Sans-titre-1_13.gif" width="92" height="31" alt="" /></a></td>

      </tr>
      <tr>
        <td colspan="2"><img src="images/Sans-titre-1_14.gif" width="92" height="16" alt="" /></td>
      </tr>
      <tr>
        <td colspan="2"><img src="images/Sans-titre-1_15.gif" width="92" height="32" alt="" /></td>
      </tr>
      <tr>
        <td colspan="2"><img src="images/Sans-titre-1_16.gif" width="92" height="175" alt="" /></td>

      </tr>
      <tr>
        <td><img src="images/spacer.gif" width="52" height="1" alt="" /></td>
        <td><img src="images/spacer.gif" width="78" height="1" alt="" /></td>
        <td><img src="images/spacer.gif" width="14" height="1" alt="" /></td>
        <td><img src="images/spacer.gif" width="24" height="1" alt="" /></td>
      </tr>
  </table></td>
    <td width="76"></td>

  <td width="696">  <script src="../Scripts/swfobject_modified.js" type="text/javascript"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<TABLE WIDTH=945 BORDER=0 CELLPADDING=0 CELLSPACING=0>
    <TR>
        <TD COLSPAN=3>
            <IMG SRC="images/HOMEPAGE_01.gif" WIDTH=945 HEIGHT=68 ALT=""></TD>
    </TR>
    <TR>

        <TD ROWSPAN=2>
            <IMG SRC="images/HOMEPAGE_02.gif" WIDTH=8 HEIGHT=559 ALT=""></TD>
        <TD width="870" height="489">&nbsp;</TD>
        <TD ROWSPAN=2>
            <IMG SRC="images/HOMEPAGE_04.gif" WIDTH=67 HEIGHT=559 ALT=""></TD>
    </TR>
    <TR>
        <TD>
            <IMG SRC="images/HOMEPAGE_05.gif" WIDTH=870 HEIGHT=70 ALT=""></TD>

    </TR>
</TABLE>
<!-- End ImageReady Slices -->
</head>
<body>
</body>
</html>
Mike Richards
SimpleViewer Support Team.