Computer Learning Zone CLZ Access Excel Word Windows

Work is the best therapy - at least for your employees.

-63rd Rule of Acquisition
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Back to Microsoft FrontPage Forum    Comments List
Adding a Date Field to my Page Upload Images   Link   Email  
Ron 
I would like to place a field on my front page where one would just enter the date and month  (no year) and click on it to see what happened in history that day. I will have 365 individual html files, one for each day of the year. Each file would be between 300 and 800 KB.  I would have a titled line such as: Today in History. Below that I would have another line that says: Enter date and month (no year). I would like a field below that to input that date & month. Then if one clicks on that field, (or even better when it is finally entered) up would come the history html file I created. How can I do this?


Reply from Alex Hedley:

If the files already exist and are static you could build the URL dynamically,

HTML

<form action="#">
  <input type="text" id="Day" name="Day">
  <input type="text" id="Month" name="Month">
  <input type="button" onclick="generatelink(); return false" id="generateLink" name="generateLink" value="Generate Link" class="button">
</form>

<div id="generatedlink">
    <u>Link</u>
    <a id="link" href="">Open App</a>
</div>


JAVASCRIPT

<script language="javascript" type="text/javascript">
function generatelink() {
    var day = document.getElementById("Day").value;
    var month = document.getElementById("Month").value;
    //alert(BaseURL);
    //http://yourserver.com/1_12.html
    var link = "http://yourserver.com/" + Day + "_" + Month + ".html";
    var a = document.getElementById("link");
    a.href = link;
    a.textContent = link;          
}
</script>

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Microsoft FrontPage Forum.
 

 
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 3/28/2024 10:32:42 AM. PLT: 1s