can i use a webbot in this way?

C

Chris

Hi,

I need to include a file depending of the browser.
I tried this but it doesn't work:

<script language=javascript>
var a = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
if a="true" then
document.write('<!--webbot bot="Include" tag="BODY" u-include='+
'"indIE.htm"' + ' startspan -->')
else
document.write('<!--webbot bot="Include" tag="BODY" u-include='+
'"indNS.htm"' + ' startspan -->')
</script>

Any idea?
Thanks
chris
 
S

Steve Easton

No.

Include pages are design time includes. Which means they are added to the page that uses
them when you edit and save the include or the page.

To do what you want would require a server side include. ( SSI ) Written in .asp or .php

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer.
 
C

Chris

thanks

Steve Easton said:
No.

Include pages are design time includes. Which means they are added to the page that uses
them when you edit and save the include or the page.

To do what you want would require a server side include. ( SSI ) Written in .asp or .php

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
..............................with a computer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top