I don't think there's such a thing as a Javascript include function or 
method.

I've been wanting one for a LONG LONG time and never seen such a beast.

Am I wrong?  Please tell me I'm wrong and that there IS a standard, 
cross browser way of including a javascript file that can reference 
other javascript files.

(ps. I know about using @import for CSS.  Wish JS had the same)

Tim Do wrote:

>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?
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207822
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