# Using "Include" files with Javascript

**URL:** <https://forum.kirupa.com/t/using-include-files-with-javascript/141750>\
**Category:** Uncategorized\
**Created:** [March 22, 2005, 9:06pm UTC](https://forum.kirupa.com/t/using-include-files-with-javascript/141750 "2005-03-22T21:06:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pup\_100](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@Pup\_100](https://forum.kirupa.com/u/Pup_100)\
**Post date:** [March 22, 2005, 9:06pm UTC](https://forum.kirupa.com/t/using-include-files-with-javascript/141750/1 "2005-03-22T21:06:59Z")

</div>

[font=verdana, arial, helvetica][size=2][color=#4f5044]Anyone know how I can adapt the Flash deployment kit’s “MM\_FlashDispatch” function to use a file “include” as opposed to a URL?

I need to keep a site on one page. At present we have something like this:

MM\_FlashDispatch(  
" [[color=#4f5044]http://www.mydomain[/color]](http://www.mydomain/) /phil/home.html ",  
“6.0”,  
false,// don’t require latest rev. of plug-in  
“[http://www.mydomain](http://www.mydomain) /phil/upgrade\_flash/upgradeFlash.html”,  
!MM\_FlashUserDemurred(), // don’t install if user said no once  
“http:// [mydomain.com/phil/install\_flash/installFlash.html](http://mydomain.com/phil/install_flash/installFlash.html)”,  
“alt\_content/index.html”,  
false,  
true // disable auto-install  
);

\</SCRIPT\>

But I need to get something like this. [color=blue](To my shame I don’t know how to use “includes” in Javascript![/color])

\<SCRIPT LANGUAGE=“JavaScript”\>

MM\_FlashDispatch(  
“include (siteHTML.txt)”, - [color=orangered]This is in “dummy code” correct Javascript syntax please.[/color]  
“6.0”,  
false, // don’t require latest rev. of plug-in  
“[http://www.mydomain](http://www.mydomain) /phil/upgrade\_flash/upgradeFlash.html”,  
!MM\_FlashUserDemurred(), // don’t install if user said no once  
“http:// [mydomain.com/phil/install\_flash/installFlash.html](http://mydomain.com/phil/install_flash/installFlash.html)”,  
“alt\_content/index.html”,  
false,  
true // disable auto-install  
);

\</SCRIPT\>

Thank you for any help.[/color][/size][/font]
