Jump to content

This topic is 8739 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have no idea how to do this but I bet it's simple!

In most of my cdml sites, once posting a new record I always have the following page be the posted record details, i.e. "You've submitted the following info."

I have a client that would like the page following a form submission to be the main page of their site which finds and displays all records.

I've changed the format file to the main page, <input type="hidden" name="-FORMAT" value="ec_webdev_db_main_list.html">, but when I submit a new job the following page is in the format of the main page but does not find all records, it only displays the new record.

Any help would be greatly appreciated.

Posted

Your action tag is -new, so you will always get just that record the way you are doing it.

Instead of sending directly to that page create a page "blank.htm" which has the same background style as every other page. That is all that will be loaded. Use a meta tag from html. In the URL refresh to a time = "0" and address to the desired -db, -lay and -format with the action tag -findall.

If you don't know about the meta tag of html, you should use your favorite search engine.

Peace

Keith M. Davie

Posted

Kieth,

It worked fine.

Another related question. Would this be the best way to eliminate cache'ing of pages. It seems like when I make edits to an individual record and go immediately to the list page of all records, the most current changes are not reflected. Should I force pages to refresh everytime they're loaded?

Any help would be appreciated.

Posted

to answer your caching question, when working with a page that is refreshed frequently with new data i always put these two commands in the head of my document.

<META HTTP-EQUIV="expires" CONTENT="0">

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

this causes the browser to not look for the document in cache but instead always pull it from the server.

[This message has been edited by bman (edited March 02, 2001).]

This topic is 8739 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.