Most probably the error occurs because no any forms are included in
the document at a stage you are trying to use their values.
Seems you are trying to use it in the very beginning in a HEAD
section while document.forms will be ready to use on page load.



TD> Hi All,
 
TD> I'm trying to use js inside an html file to include an asp file.  This
TD> is what I have so far:
 
TD> script language="JavaScript" type="text/javascript">
TD>         // must be a fully qualified URL -- can be any type of file
TD> (html,jsp,asp,etc)
 
TD> include("http://192.200.1.37/Voyager50/Forms/LateCount.asp?tenant="+docu
TD> ment.Resident.HTENANT.value);
TD> </script
 
TD> I'm getting document.Resident.HTENANT.value is null or not an object
TD> error.  Strange thing is, I'm using the same value elsewhere on this
TD> html file and not getting errors in those areas.  Can somebody tell me
TD> what is wrong with this or is there another way to include files using
TD> js?


-- 
 Sergey


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207293
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to