Novice needs help....

C

c02homer

I have created a simple "survey" for my company in FrontPage 2003.
They want people to fill it in weekly for 6 months. I have created a
page for each week as the questions (naturally) are different for each
week.

As this project goes on for 6 months, I want only the current week's
page to be available. Of course I can manually do that, but I want to
make it happen automatically.

I tried using the "include on a schedule" feature but found that you
can't "include" an ASP page. So, trying to be brilliant (hack, hack),
I created a redir.htm page that contains a javascript redirect to the
input form. SEEMED like it ought to work - but it doesn't work.

When I open my browser and type in http://mysite/mysurvey/redir.htm, it
works perfectly. But when I run the page that is the "scheduled
include," to get around the .asp issue, I just get a blank page.

If anyone knows how I can do this, I sure would appreciate it! I need
to be able to take a vacation sometime in the next six months - and I'm
the only one who can do this where I work.

Alternatively, if it can be done by testing with a javascript, I'd sure
love some insights there, as well.

Thanks!!!

CH
 
S

Stefan B Rusynko

Get rid of your redirect workaround
Since you are using ASP you can hand write ASP code to decide which form to display when based on the date or a DB lookup

--

_____________________________________________
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.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


|I have created a simple "survey" for my company in FrontPage 2003.
| They want people to fill it in weekly for 6 months. I have created a
| page for each week as the questions (naturally) are different for each
| week.
|
| As this project goes on for 6 months, I want only the current week's
| page to be available. Of course I can manually do that, but I want to
| make it happen automatically.
|
| I tried using the "include on a schedule" feature but found that you
| can't "include" an ASP page. So, trying to be brilliant (hack, hack),
| I created a redir.htm page that contains a javascript redirect to the
| input form. SEEMED like it ought to work - but it doesn't work.
|
| When I open my browser and type in http://mysite/mysurvey/redir.htm, it
| works perfectly. But when I run the page that is the "scheduled
| include," to get around the .asp issue, I just get a blank page.
|
| If anyone knows how I can do this, I sure would appreciate it! I need
| to be able to take a vacation sometime in the next six months - and I'm
| the only one who can do this where I work.
|
| Alternatively, if it can be done by testing with a javascript, I'd sure
| love some insights there, as well.
|
| Thanks!!!
|
| CH
|
 
C

c02homer

There's ASP code? Cool!

And here, I "redirect" you to the subject line. Will you or someone
give me some sample code for doing what you suggest?
 
T

Thomas A. Rowe

Not aware of any sample code, it has to be written specifically for the project.

You can try the following in your IE address bar:

? ASP Display Page based on Date Script

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
==============================================
Agents Real Estate Listing Network
http://www.NReal.com
==============================================


There's ASP code? Cool!

And here, I "redirect" you to the subject line. Will you or someone
give me some sample code for doing what you suggest?
Get rid of your redirect workaround
Since you are using ASP you can hand write ASP code to decide which form to display when based on
the date or a DB lookup

--

_____________________________________________
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.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


|I have created a simple "survey" for my company in FrontPage 2003.
| They want people to fill it in weekly for 6 months. I have created a
| page for each week as the questions (naturally) are different for each
| week.
|
| As this project goes on for 6 months, I want only the current week's
| page to be available. Of course I can manually do that, but I want to
| make it happen automatically.
|
| I tried using the "include on a schedule" feature but found that you
| can't "include" an ASP page. So, trying to be brilliant (hack, hack),
| I created a redir.htm page that contains a javascript redirect to the
| input form. SEEMED like it ought to work - but it doesn't work.
|
| When I open my browser and type in http://mysite/mysurvey/redir.htm, it
| works perfectly. But when I run the page that is the "scheduled
| include," to get around the .asp issue, I just get a blank page.
|
| If anyone knows how I can do this, I sure would appreciate it! I need
| to be able to take a vacation sometime in the next six months - and I'm
| the only one who can do this where I work.
|
| Alternatively, if it can be done by testing with a javascript, I'd sure
| love some insights there, as well.
|
| Thanks!!!
|
| CH
|
 
R

Ronx

One way (perhaps not the best or most efficient) is on the lines of

<%
if date() > cdate("21 December, 2006") then fn="/path/form3.asp"
elseif date() > cdate("14 December, 2006") then fn="/path/form2.asp"
elseif date() > cdate("7 December, 2006") then fn="/path/form1.asp"
else fn="/path/form0.asp"
end if
%>
<!-- #include virtual="<%= fn %>" -->

where form#.asp are asp include files containing the various forms. You
would need about 26 of these includes for 1 each week for 6 months.
Note that the latest date is at the top of the list.

The above has not been tested.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/

There's ASP code? Cool!

And here, I "redirect" you to the subject line. Will you or someone
give me some sample code for doing what you suggest?
Get rid of your redirect workaround
Since you are using ASP you can hand write ASP code to decide which form
to display when based on the date or a DB lookup

--

_____________________________________________
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.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


|I have created a simple "survey" for my company in FrontPage 2003.
| They want people to fill it in weekly for 6 months. I have created a
| page for each week as the questions (naturally) are different for each
| week.
|
| As this project goes on for 6 months, I want only the current week's
| page to be available. Of course I can manually do that, but I want to
| make it happen automatically.
|
| I tried using the "include on a schedule" feature but found that you
| can't "include" an ASP page. So, trying to be brilliant (hack, hack),
| I created a redir.htm page that contains a javascript redirect to the
| input form. SEEMED like it ought to work - but it doesn't work.
|
| When I open my browser and type in http://mysite/mysurvey/redir.htm,
it
| works perfectly. But when I run the page that is the "scheduled
| include," to get around the .asp issue, I just get a blank page.
|
| If anyone knows how I can do this, I sure would appreciate it! I need
| to be able to take a vacation sometime in the next six months - and
I'm
| the only one who can do this where I work.
|
| Alternatively, if it can be done by testing with a javascript, I'd
sure
| love some insights there, as well.
|
| Thanks!!!
|
| CH
|
 
T

Thomas A. Rowe

See:
http://www.asp101.com/articles/michael/dynamicincludes/default.asp

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
==============================================
Agents Real Estate Listing Network
http://www.NReal.com
==============================================


Ronx said:
One way (perhaps not the best or most efficient) is on the lines of

<%
if date() > cdate("21 December, 2006") then fn="/path/form3.asp"
elseif date() > cdate("14 December, 2006") then fn="/path/form2.asp"
elseif date() > cdate("7 December, 2006") then fn="/path/form1.asp"
else fn="/path/form0.asp"
end if
%>
<!-- #include virtual="<%= fn %>" -->

where form#.asp are asp include files containing the various forms. You would need about 26 of
these includes for 1 each week for 6 months.
Note that the latest date is at the top of the list.

The above has not been tested.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/

There's ASP code? Cool!

And here, I "redirect" you to the subject line. Will you or someone
give me some sample code for doing what you suggest?
Get rid of your redirect workaround
Since you are using ASP you can hand write ASP code to decide which form to display when based
on the date or a DB lookup

--

_____________________________________________
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.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


|I have created a simple "survey" for my company in FrontPage 2003.
| They want people to fill it in weekly for 6 months. I have created a
| page for each week as the questions (naturally) are different for each
| week.
|
| As this project goes on for 6 months, I want only the current week's
| page to be available. Of course I can manually do that, but I want to
| make it happen automatically.
|
| I tried using the "include on a schedule" feature but found that you
| can't "include" an ASP page. So, trying to be brilliant (hack, hack),
| I created a redir.htm page that contains a javascript redirect to the
| input form. SEEMED like it ought to work - but it doesn't work.
|
| When I open my browser and type in http://mysite/mysurvey/redir.htm, it
| works perfectly. But when I run the page that is the "scheduled
| include," to get around the .asp issue, I just get a blank page.
|
| If anyone knows how I can do this, I sure would appreciate it! I need
| to be able to take a vacation sometime in the next six months - and I'm
| the only one who can do this where I work.
|
| Alternatively, if it can be done by testing with a javascript, I'd sure
| love some insights there, as well.
|
| Thanks!!!
|
| CH
|
 
R

Ronx

Thanks Thomas - not as easy as I thought.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/

Thomas A. Rowe said:
See:
http://www.asp101.com/articles/michael/dynamicincludes/default.asp

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
==============================================
Agents Real Estate Listing Network
http://www.NReal.com
==============================================


Ronx said:
One way (perhaps not the best or most efficient) is on the lines of

<%
if date() > cdate("21 December, 2006") then fn="/path/form3.asp"
elseif date() > cdate("14 December, 2006") then fn="/path/form2.asp"
elseif date() > cdate("7 December, 2006") then fn="/path/form1.asp"
else fn="/path/form0.asp"
end if
%>
<!-- #include virtual="<%= fn %>" -->

where form#.asp are asp include files containing the various forms. You
would need about 26 of these includes for 1 each week for 6 months.
Note that the latest date is at the top of the list.

The above has not been tested.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/

There's ASP code? Cool!

And here, I "redirect" you to the subject line. Will you or someone
give me some sample code for doing what you suggest?

Stefan B Rusynko wrote:
Get rid of your redirect workaround
Since you are using ASP you can hand write ASP code to decide which
form to display when based on the date or a DB lookup

--

_____________________________________________
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.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


|I have created a simple "survey" for my company in FrontPage 2003.
| They want people to fill it in weekly for 6 months. I have created
a
| page for each week as the questions (naturally) are different for
each
| week.
|
| As this project goes on for 6 months, I want only the current week's
| page to be available. Of course I can manually do that, but I want
to
| make it happen automatically.
|
| I tried using the "include on a schedule" feature but found that you
| can't "include" an ASP page. So, trying to be brilliant (hack,
hack),
| I created a redir.htm page that contains a javascript redirect to
the
| input form. SEEMED like it ought to work - but it doesn't work.
|
| When I open my browser and type in http://mysite/mysurvey/redir.htm,
it
| works perfectly. But when I run the page that is the "scheduled
| include," to get around the .asp issue, I just get a blank page.
|
| If anyone knows how I can do this, I sure would appreciate it! I
need
| to be able to take a vacation sometime in the next six months - and
I'm
| the only one who can do this where I work.
|
| Alternatively, if it can be done by testing with a javascript, I'd
sure
| love some insights there, as well.
|
| Thanks!!!
|
| CH
|
 
T

Thomas A. Rowe

You are welcome!

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
==============================================
Agents Real Estate Listing Network
http://www.NReal.com
==============================================


Ronx said:
Thanks Thomas - not as easy as I thought.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/

Thomas A. Rowe said:
See:
http://www.asp101.com/articles/michael/dynamicincludes/default.asp

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
==============================================
Agents Real Estate Listing Network
http://www.NReal.com
==============================================


Ronx said:
One way (perhaps not the best or most efficient) is on the lines of

<%
if date() > cdate("21 December, 2006") then fn="/path/form3.asp"
elseif date() > cdate("14 December, 2006") then fn="/path/form2.asp"
elseif date() > cdate("7 December, 2006") then fn="/path/form1.asp"
else fn="/path/form0.asp"
end if
%>
<!-- #include virtual="<%= fn %>" -->

where form#.asp are asp include files containing the various forms. You would need about 26 of
these includes for 1 each week for 6 months.
Note that the latest date is at the top of the list.

The above has not been tested.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/

There's ASP code? Cool!

And here, I "redirect" you to the subject line. Will you or someone
give me some sample code for doing what you suggest?

Stefan B Rusynko wrote:
Get rid of your redirect workaround
Since you are using ASP you can hand write ASP code to decide which form to display when based
on the date or a DB lookup

--

_____________________________________________
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.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


|I have created a simple "survey" for my company in FrontPage 2003.
| They want people to fill it in weekly for 6 months. I have created a
| page for each week as the questions (naturally) are different for each
| week.
|
| As this project goes on for 6 months, I want only the current week's
| page to be available. Of course I can manually do that, but I want to
| make it happen automatically.
|
| I tried using the "include on a schedule" feature but found that you
| can't "include" an ASP page. So, trying to be brilliant (hack, hack),
| I created a redir.htm page that contains a javascript redirect to the
| input form. SEEMED like it ought to work - but it doesn't work.
|
| When I open my browser and type in http://mysite/mysurvey/redir.htm, it
| works perfectly. But when I run the page that is the "scheduled
| include," to get around the .asp issue, I just get a blank page.
|
| If anyone knows how I can do this, I sure would appreciate it! I need
| to be able to take a vacation sometime in the next six months - and I'm
| the only one who can do this where I work.
|
| Alternatively, if it can be done by testing with a javascript, I'd sure
| love some insights there, as well.
|
| Thanks!!!
|
| CH
|
 
C

c02homer

Thanks to all of you - even when the response isn't quite right, it's
always good to know that there are people who will at least TRY to help
you.

I tried the sample code provided by Ronx and although I didn't know
whether my lack of success was me or the code, I genuinely appreciated
the input.

Always it is good to get educated and the help you provided, Thomas -
the links to ASP training - awesome! Thank you - I'm well on my way!!

Education is the key to everything. :eek:)
 

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