вот вставил аякс запрос но страница не загружается
пишет:
Warning: require_once(start.php) [function.require-once]: failed to open stream: No such file or directory in Z:\home\olaf-a.local\www\blocks\job_g1.php on line 3
Fatal error: require_once() [function.require]: Failed opening required 'start.php' (include_path='.;C:\php\pear') in Z:\home\olaf-a.local\www\blocks\job_g1.php on line 3
или загружает в другом окне поломанную галерею
код такой:
<div id="menu2">
<?php
$job_p = getAllJob();
for ($i = 0; $i <count($job_p); $i++) {
$id = $job_p[$i]["id"];
$poyasneniya = $job_p[$i]["poyasneniya"];
$opisanie_txt = $job_p[$i]["opisanie_txt"];
include "intro_job_p.php";
}
?>
<div class="clear"></div>
<script type="text/javascript" src="scripts/jquery.min.js"></script>
<script type="text/javascript" src="scripts/menu2.js"></script>
</div>
<div id="wind">
<img title="close" src="image/close.png" width="24px" height="24px" onclick="document.getElementById('wind').style.display='none'; return false;" align="right"/>
<script type="text/javascript">
function getXmlHttp()
{
var xmlhttp;
try
{
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
try
{
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
catch (E)
{
xmlhttp = false;
}
}
if(!xmlhttp && typeof XMLHttpRequest!='undefined')
{
xmlhttp = new XMLHttpRequest();
}
return xmlhttp;
}
function goajax(page)
{
var myrequest = getXmlHttp()
var docum = page+'?rnd='+Math.random();
var contentElem = document.getElementById('inccontent');
myrequest.open('POST', docum, true);
myrequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
myrequest.onreadystatechange = function()
{
if (myrequest.readyState == 4)
{
if(myrequest.status == 200)
{
var resText = myrequest.responseText;
var ua = navigator.userAgent.toLowerCase();
if (ua.indexOf('gecko') != -1)
{
var range = contentElem.ownerDocument.createRange();
range.selectNodeContents(contentElem);
range.deleteContents();
var fragment = range.createContextualFragment(resText);
contentElem.appendChild(fragment);
}
else
{
contentElem.innerHTML = resText;
}
}
else
{
contentElem.innerHTML = 'Ошибка';
}
}
}
myrequest.send();
}
</script>
</div>