View Single Post
Old 06-06-2012, 01:25 PM   PM User | #4
Will Bontrager
Regular Coder

 
Join Date: Jun 2012
Location: Near Chicago, USA
Posts: 123
Thanks: 7
Thanked 19 Times in 19 Posts
Will Bontrager is an unknown quantity at this point
Quote:
Originally Posted by milesdriven View Post
Code:
              //if(request.responseText == "available")
              //{ 
                        SchdCan.innerHTML = '' 
                        NtAvail.innerHTML = '' 
                        Avail.innerHTML = "Available <button id='May120128AM_Click_To_Sch' name='apt_time' value='May120128AM' onClick='clickToSchedule(); return false'>Click Here To Schedule</button>"
             //} 
Suggestion. Put
Code:
alert(request.responseText);
or
Code:
Avail.innerHTML += "(" + responseText + ")";
immediately below the if(...) statement so see what the PHP script is returning. Perhaps it returns something other than "available" when "Scheduled - Click To Cancel" is clicked.

Will
Will Bontrager is offline   Reply With Quote