Automatically Replace Content

J

Jan T.

How can I replace content (cells/tables etc.) on a page or pages with FP
2003 on a scheduled basis?

I tried the "include page based on schedule" but can't get it to work. I
have customers that want their Web updated all the time with this or that
and its getting to be a pain.

Does this require "asp" or some other type of scripting and if so, is there
somewhere someone could direct me to where I can find more information?

Thanks a bunch!
 
J

Jan T.

Hi Mike,

I tried the Jimco (Publisher) Add-in but couldn't get it to work. Do you
know of another add-in or another method?
MD Websunlimited said:
Hi Jan,

The scheduled include requires that you open the FP web and do a recalc
hyperlinks. You can do this via a schedule using a Jimco
 
J

Jim Buyens

Here's a simple example using JavaScript:

<script language="JavaScript">
today = new Date();
chdte = new Date("Feb 15, 2004");
if (today < chdte){
document.write("<img src=../images/old.gif>");
}else{
document.write("<img src=../images/new.gif>");
}
</script>

The "today" and "chdate" variables contain the current
date and the change date. The if statement compares
these, and adds the correct HTML to the page by running
the appropriate document.write statement.

In ASP, you would code something like:

<%If (Now < #2/15/2004# ) Then%>
<img src="../images/old.gif">
<%Else%>
<img src="../images/new"
<%End If%>

You can put whatever HTML you want between the
<%If ... Then%> and the <%Else%>, or between the
<%Else%> and the <%End If%>. Both versions will appear in
the FrontPage editor, but only when when you browse the
page from teh Web server.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
J

Jan T.

Hi Jim,

Thanks for the example, it really helps but this is new to me. Can you
direct me to a book that could help me learn how to schedule various
elements of a Web page at different times and for various durations?
 
J

Jim Buyens

Well,

Stupid Web Tricks, MS Press, 1998
Web Database Development Step by Step, MS Press 2000

But as you can see, these books are pretty old. Although this sort of
thing is still new to lots of people, it's hardly cutting-edge stuff.

The same techniques I showed in my previous message work with any type
of HTML tag. I would think that's enough to get you started.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
Top