HELP ASAP
Posted: Thu Nov 13, 2003 5:07 pm
I am trying to call a PHP function from javascript and am having NO luck... has anyone solved this before??
Code: Select all
//This is javascript
function changeTab(mgObj){
// Making all background colors blue
for(i=0; i<tabs.length; i++){
tabsїi].style.backgroundColor = 'blue';
rightїi].style.backgroundColor = 'blue';
leftїi].style.backgroundColor = 'blue';
}
// Making the selected cells background black
rightїmgObj.name-1].style.backgroundColor = 'black';
leftїmgObj.name-1].style.backgroundColor = 'black';
mgObj.style.backgroundColor='black';
switch (mgObj.name){
case "1":
exercises.style.display="none";
chest.style.display="";
break;
default:
exercises.style.display="";
chest.style.display="none";
break;
}
// here is where the div refresh should occur
tabs.innerHTML = //PHP FUNCTION GOES HERE
}