Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatically update an HTML file?

Status
Not open for further replies.

dlingo

Programmer
Nov 19, 2001
60
US
I know this is possible....I'm not sure if it can be done with VBScript or ASP, but I figured I'd ask here first.

I'm working on a calendar application (in VBScript and ASP). The idea is to allow particular users to edit the details of the calendar and to allow any user to see the updates that are made.

The way that I decided to do this was to have a main page that everyone can see (with the most recent calendar update showing). At the bottom of this main page I have a logon screen, so that the administrator(s) of the calendar can edit the daily information. Once they have finished updating, the new calendar is displayed and they can chosse to accept, or re-edit it. (This works fine)

The problem comes in updating the main page....How can I take the HTML code that is generated when the updated calendar is displayed to the administrators and apply it to the original page for all to see?

Please advise. Thanks in advance.
 
You would probably want to do the main page as an ASP page, with a database of some sort behind it. The admin login can send the administrator to a form that they would enter/edit the event into the calendar, which in turn would enter/edit the information in the database.

The main calendar page (accessible to everyone) would get its information from the database, and therefore be updated as the database is updated...

If you need any further help with the database/asp setup leave a message...

Jason
 
Jason,

That was one thought that crossed my mind. I've done some database/ASP stuff before and think I should be fine in doing that. I hought there might be an easier way though. For instance, to this point I've been using Session("field") and Request.Form("field") to pass the variables from page to page. I thought I might be able to use the same ASP page after the calendar was updated by the administrators and as the main page to pass the variables in the same manner. In the scripting I would user history.back to check the last page. If it was an administrator accepting the updates then it would say something like "updates accepted". If it was a general user accessing the main page then it would just redirect them there.

Could this work???
 
How are you saving the changes to the main page to begin with? Are you storing the information in a text/data file or such?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top