Thx.. I changed the script to script language="JavaScript" src="http://192.200.1.37/Voyager50/Forms/LateCount.asp?tenant="+document ..Resident.HTENANT.value);></script
All is fine now... Thx for your help! -----Original Message----- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] Sent: Friday, May 20, 2005 9:33 AM To: CF-Talk Subject: Re: OT: using js to include files > Hi All, > I'm trying to use js inside an html file to include an asp file. This > is what I have so far: > script language="JavaScript" type="text/javascript"> > // must be a fully qualified URL -- can be any > type of file > (html,jsp,asp,etc) > include("http://192.200.1.37/Voyager50/Forms/LateCount.asp > ?tenant="+docu > ment.Resident.HTENANT.value); > </script > I'm getting document.Resident.HTENANT.value is null or not > an object > error. Strange thing is, I'm using the same value > elsewhere on this > html file and not getting errors in those areas. Can somebody tell me > what is wrong with this or is there another way to include > files using > js? I don't think it's a problem with the include() function (although it's not one I'm familiar with -- or likely to use). Although it looks like you want a form field value, in which case you should always use the forms collection when attempting to fetch the form, i.e. document.forms.Resident.HTENANT.value also make sure your form and input names are the same case and not name="resident" or name="htENaNt". :) s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.fusiontap.com http://coldfusion.sys-con.com/author/4806Dealey.htm ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:207301 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