View Single Post
 
Old March 22nd, 2005, 08:06 AM
crmpicco crmpicco is offline
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default null or not a object

I have this javascript code:
Code:
function shodt(flpth,pth,pth1,infld,crdate,seldate,fld) //to display the date window
{
if(fld=="retdt")
    {
        if(document.fexp.depdt.value!="")
        {
            document.fexp.retdt.value="";
            document.fexp.retdt1.value="";
            glbdate="true";
            checkdate(flpth,pth,pth1,infld,crdate,seldate,fld)
        }
    }
    else if(fld=="depdt")
    {
        if(document.fexp.depdt.value=="")
        {
            document.fexp.seldate.value="";
            document.fexp.depdt1.value="";
            seldate="";
        }
        glbdate="true";
        checkdate(flpth,pth,pth1,infld,crdate,seldate,fld)
    }
}


with this image i am sending these parameters to the function:
Code:
<img src="asp/images/hd_icon_calender.gif" align="middle" alt="Calendar" width="21" height="15" border="0" onClick="shodt('calendar.html','document.fexp.depDay.value','document.fexp.depMonth.value','document.fexp.crdate.value','document.fexp.seldate.value','depDay','depDay')">
i get the errror:

document.fexp.retdt.value is null or not a object.

confused


www.crmpicco.co.uk
www.crmpicco.co.uk.tt
www.milklemonadechocolate.uk.tt
www.griswolds.uk.tt
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk