What I am trying to do is show is the 1st docwrite (below) if date is <= than the deadline (yyyy-mm-dd) and then if “CartFile” = Cancled, another cancelation opage telling customer what to do.
Obviously this don’t work, can someone point me in the right direction or
a sample bit of code that does something similar. I would really appreciate any help I can get here. (text enclosed in [[ ]] is template data from a flat file database.)
<script>
var name = “[[Deadline2]]”
var name2= “[[CartFile]]”
name=name.split(/D/); if (new Date(name[0],name[1]-1,name[2])<= new Date())
{
{
document.write(“<tr><td><a
href=’[S]’ && onClick=’LinkAlert()’>[[Title]]</a> </td>”)
tartDate]
}
else if {
document.write(“<tr><td><a
href=’[S]’ && onClick=’LinkAlert()’>[[Title]]</a> </td>”)
tartDate]
}
name2= “Canceled”
else if name2= “Canceled” {
document.write(“<tr><td><a
href=’[S]’ && onClick=’LinkAlert()’>[[Title]]</a> </td>”)
tartDate]
}
</script>
</tr>
Thanks,
Tom Rector