Click to See Complete Forum and Search --> : Include Txt File?


96turnerri
10-26-2003, 07:46 AM
i want to inlcude this on several pages

its saved in a text file atm

<a href="#"><p>Offer 1</p></a>
<a href="#"><p>Offer 2</p></a>
<a href="#"><p>Offer 3</p></a>

but i cant seem to get it to be displayed on the pages (html)
can someone help me please

Thanks
Rich

Khalid Ali
10-26-2003, 07:52 AM
You can not read /write files using "only" javascript,You will need some signed applet or an activexcontrol.
Better solution will be use serverside coding to read file and create the page.

96turnerri
10-26-2003, 07:59 AM
but would i be able to read it if it was html file

i tried <object data="####.htm"></object>

but that displayed it in a weird box/frame

Khalid Ali
10-26-2003, 08:04 AM
No....th eonly possibility will be in IE only you can read an XML file.

96turnerri
10-26-2003, 08:12 AM
ok thanks anyway

pyro
10-26-2003, 09:46 AM
See if this helps: http://www.webdevfaqs.com/php.php#include