Can I prevent a webbot from loading in on a page via ASP code?

J

John Cody

I want to selectively include a webbot or not on a webpage, depending on the
type of browser that will view the page.

I know I could create two pages, one with the bot and one without the bot,
and have the ASP code redirect the browser to the desired page after the
browser type is determined. But, I was hoping there was an ASP trick that
would allow me to have just one weppage, but ASP code would control if a
particular frontpage webbot would load/run on the page or not. I'm asking
because it seems all webbots are loaded into a page before any ASP code even
has a chance to manipulate it.

Is this possible?

-John Cody
 
S

Stefan B Rusynko

A lot depends on the "webbot" type - design time or run time
Which one are you working with



| I want to selectively include a webbot or not on a webpage, depending on the
| type of browser that will view the page.
|
| I know I could create two pages, one with the bot and one without the bot,
| and have the ASP code redirect the browser to the desired page after the
| browser type is determined. But, I was hoping there was an ASP trick that
| would allow me to have just one weppage, but ASP code would control if a
| particular frontpage webbot would load/run on the page or not. I'm asking
| because it seems all webbots are loaded into a page before any ASP code even
| has a chance to manipulate it.
|
| Is this possible?
|
| -John Cody
|
|
 
J

John Cody

Hi,

Thanks for responding :)

The bots I would like to enabled/disable on the fly are:

Nav Bot (link bar)
Include Content

-John
 
S

Stefan B Rusynko

No can do
Both are Design time bots
- hard coded HTML into a page when it is save by FP at design time




| Hi,
|
| Thanks for responding :)
|
| The bots I would like to enabled/disable on the fly are:
|
| Nav Bot (link bar)
| Include Content
|
| -John
|
| | > A lot depends on the "webbot" type - design time or run time
| > Which one are you working with
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| | > | I want to selectively include a webbot or not on a webpage, depending on
| the
| > | type of browser that will view the page.
| > |
| > | I know I could create two pages, one with the bot and one without the
| bot,
| > | and have the ASP code redirect the browser to the desired page after the
| > | browser type is determined. But, I was hoping there was an ASP trick
| that
| > | would allow me to have just one weppage, but ASP code would control if a
| > | particular frontpage webbot would load/run on the page or not. I'm
| asking
| > | because it seems all webbots are loaded into a page before any ASP code
| even
| > | has a chance to manipulate it.
| > |
| > | Is this possible?
| > |
| > | -John Cody
| > |
| > |
| >
| >
|
|
 
J

John Cody

Actually, I found that this code works quite nicely for including/excluding
many of the frontpage bots:

<% If UseGraphics=True then
%><!--webbot bot="Navigation" s-orientation="vertical"
s-rendering="graphics" s-type="top" b-include-home="TRUE"
b-include-up="FALSE" --><%
Else
%><!--webbot bot="Navigation" s-orientation="vertical"
s-rendering="text" s-type="top" b-include-home="TRUE"
b-include-up="FALSE" --><%
End If
%>
 
S

Stefan B Rusynko

Don't see how it can
Either of those webbots will "generate" hard coded html w/ the nav bar links when you save the page in FP Design mode only
- final html viewable only in File preview in browser (not in FP html/code view) or outside of FP

In Design mode FP does not process ASP code - to prevent conflicts between the code and the html parser / webbots




| Actually, I found that this code works quite nicely for including/excluding
| many of the frontpage bots:
|
| <% If UseGraphics=True then
| %><!--webbot bot="Navigation" s-orientation="vertical"
| s-rendering="graphics" s-type="top" b-include-home="TRUE"
| b-include-up="FALSE" --><%
| Else
| %><!--webbot bot="Navigation" s-orientation="vertical"
| s-rendering="text" s-type="top" b-include-home="TRUE"
| b-include-up="FALSE" --><%
| End If
| %>
|
|
| | > No can do
| > Both are Design time bots
| > - hard coded HTML into a page when it is save by FP at design time
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| | > | Hi,
| > |
| > | Thanks for responding :)
| > |
| > | The bots I would like to enabled/disable on the fly are:
| > |
| > | Nav Bot (link bar)
| > | Include Content
| > |
| > | -John
| > |
| > | | > | > A lot depends on the "webbot" type - design time or run time
| > | > Which one are you working with
| > | > --
| > | >
| > | > _____________________________________________
| > | > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > | > "Warning - Using the F1 Key will not break anything!" (-;
| > | > To find the best Newsgroup for FrontPage support see:
| > | > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > | > _____________________________________________
| > | >
| > | >
| > | | > | > | I want to selectively include a webbot or not on a webpage,
| depending on
| > | the
| > | > | type of browser that will view the page.
| > | > |
| > | > | I know I could create two pages, one with the bot and one without
| the
| > | bot,
| > | > | and have the ASP code redirect the browser to the desired page after
| the
| > | > | browser type is determined. But, I was hoping there was an ASP trick
| > | that
| > | > | would allow me to have just one weppage, but ASP code would control
| if a
| > | > | particular frontpage webbot would load/run on the page or not. I'm
| > | asking
| > | > | because it seems all webbots are loaded into a page before any ASP
| code
| > | even
| > | > | has a chance to manipulate it.
| > | > |
| > | > | Is this possible?
| > | > |
| > | > | -John Cody
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 

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