View Single Post
ישן 01-09-08, 18:14   # 1
kfir91
חסום
 
מיני פרופיל
תאריך הצטרפות: Apr 2007
הודעות: 220

kfir91 לא מחובר  

צריך עזרה עם קוד AJAX

הקוד :
קוד:
function set_day(day_id)
{
var xmlHttp;
try
  {  // Firefox, Opera 8.0+, Safari  xmlHttp=new XMLHttpRequest();  }
catch (e)
  {  // Internet Explorer  try
    {    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");    }
  catch (e)
    {    try
      {      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");      }
    catch (e)
      {      alert("Your browser does not support AJAX!");      return false;      }    }  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      document.myForm.time.value=xmlHttp.responseText;
      }
    }
  var url="index.php"
  url=url+"?day="+day_id
  url=url+"&sid="+Math.random()
  xmlHttp.open("GET",url,true)
  xmlHttp.send(null);
כנסו לפה http://depsport.freehost.co.il/update/admin/index.php
תראו אני רוצה שברגע שילחצו על א' נגיד זה יקבל ID יריץ תפונקציה ויציג בטבלה למטה את ה index.php?day=1 המספר הוא ה ID שנקלט. עכשיו עשיתי שככה זה יהיה אבל משום מה זה לא עובד
מה הבעיה ?
  Reply With Quote