V
vincent.s.jones
I keep getting this error message with my Javascript posted below.
The values are all nvarchar, with my database.
Thanks,
var curr_date = document.formevents.select.Dy.value;
var curr_month = document.formevents.select.Mh.value;
var curr_year = document.formevents.select.Yr.value;
function showEvents(v)
{
xmlHttp=GetXmlHttpObject()
if(xmlHttp==null)
{
alert("Browser does not support HHTP Request")
return
}
if(v=="t")
{
var url="cftime.cfm?Mh="+curr_month+"&Dy="+curr_date
+"&Yr="+curr_year;
}
if(v=="c")
{
var url="cfcompany.cfm?Mh="+curr_month+"&Dy="+curr_date
+"&Yr="+curr_year;
}
if(v=="l")
{
var url="cflocation.cfm?Mh="+curr_month+"&Dy="+curr_date
+"&Yr="+curr_year;
}
xmlHttp.onreadystatechange=eventsChanged;
xmlHttp.open("GET", url, true)
xmlHttp.send(null)
}
function eventsChanged()
{
if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
document.getElementById
("event_body").innerHTML=xmlHttp.responseText;
}
}
The values are all nvarchar, with my database.
Thanks,
var curr_date = document.formevents.select.Dy.value;
var curr_month = document.formevents.select.Mh.value;
var curr_year = document.formevents.select.Yr.value;
function showEvents(v)
{
xmlHttp=GetXmlHttpObject()
if(xmlHttp==null)
{
alert("Browser does not support HHTP Request")
return
}
if(v=="t")
{
var url="cftime.cfm?Mh="+curr_month+"&Dy="+curr_date
+"&Yr="+curr_year;
}
if(v=="c")
{
var url="cfcompany.cfm?Mh="+curr_month+"&Dy="+curr_date
+"&Yr="+curr_year;
}
if(v=="l")
{
var url="cflocation.cfm?Mh="+curr_month+"&Dy="+curr_date
+"&Yr="+curr_year;
}
xmlHttp.onreadystatechange=eventsChanged;
xmlHttp.open("GET", url, true)
xmlHttp.send(null)
}
function eventsChanged()
{
if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
document.getElementById
("event_body").innerHTML=xmlHttp.responseText;
}
}