Put a variable in the <!-- --> directive

B

Baffin Shea

Dear All,

The following script is generated by frontpage itself in order to insert
menu.htm in the current .htm page:

<body>
:
<!--webbot bot="Include" U-Include="menu.htm" TAG="BODY" -->
:
</body>

I tried to change the "menu.htm" to a variable using asp like:

<%
menu=request("menu")
%>
<!--webbot bot="Include" U-Include="<%=menu%>" TAG="BODY" -->

But it doesn't work, I search from the net and explain it will not work
because the directive executes before asp assigns a value to the variable,
but there is no solution, can anyone help? Thanks a lot.

Regards,
Baffin
 
B

Baffin Shea

Dear Jason,

I have tried your method, it doesn't work, any suggestion? Thank you.

Regards,
Baffin
 
P

Phillip Windell

This only runs at "design time" within the FrontPage Evironment. The
file included is already inserted into the position before the file is
uploaded to the server. The server has no part in the process.


--

Phillip Windell [CCNA, MVP, MCP]
(e-mail address removed)
WAND-TV (ABC Affiliate)
www.wandtv.com
 
M

Mark Schupp

I am not completely sure (we drove a stake through the heart of FP here
years ago) but I think that FP actually processes the webbot directives when
an HTML file is uploaded through FP, not at runtime. If that is not the
case, you could write out the HMTL file with the webbot directives you need
and then re-direct to that file.

--
Mark Schupp
--
Head of Development
Integrity eLearning
Online Learning Solutions Provider
(e-mail address removed)
http://www.ielearning.com
714.637.9480 x17
 

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top