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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Content Disapearing

Status
Not open for further replies.

TonyCronin

Programmer
Joined
Jul 16, 2001
Messages
47
Location
GB
Hi,

I have a strange problem with a page I am doing. I have a number of tables - each containing lists pulled from database, images etc. When it loads everything is fine and you can drill down to detail pages fine.

Problem occurs when you hit 'back' button from detail page to return to the main page containing tables. The content in one of the tables disappears.. if you click in the table it reappears but if you try and select a link it disappears again...

The page is on an intranet so viewing is a problem.. The page uses a stylesheet..

I have taken table out and loaded into its own page, tried putting flat html in this particular table and allsorts but it still has a problem.

Has anyone come across anything like this? Have a view on what I could try?

Help appreciated.
Tony.
 
Tony,

Does this particular table source it's data from a different db or table than the others?

Have you tried using a popup window for detail as opposed to a new page, and then having to reload the previous data. I have used this a several occassions; a merging of the detail page server behviour with the open browser window DW behaviour.

Let us see some of the culprit code around the table info. You've not got a layer info in your SS?

What fun!

M
 
Code for the table pasted in below (not sure how best to do this? - I could email page/css etc.) .. I am using a stylesheet but dont think there is layer info in it.. There are a number of db connections on the page and the table used in the problem table is used in other tables no problem...

I am using Hlooper2 extension (several times on the page).. not sure if this causes problem.

I dont have a viewable host that supports asp pages though..

<table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;12&quot; cellpadding=&quot;0&quot; align=&quot;left&quot;>
<tr>
<td width=&quot;50%&quot; height=&quot;60&quot; valign=&quot;top&quot;>
<table bgcolor=&quot;#2E3F75&quot; valign=&quot;top&quot; width=&quot;100%&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; border=&quot;0&quot;>
<tr class=&quot;Top&quot;>
<td valign=&quot;Top&quot; width=&quot;1%&quot;><img src=&quot;images/table_corner.gif&quot; width=7 height=22 border=0></td>
<td width=&quot;22%&quot; valign=&quot;middle&quot; class=&quot;Top&quot; nowrap><font color=&quot;#ffffff&quot; class=&quot;Top&quot;>Seminar
Series &nbsp;</font></td>
<td width=&quot;77%&quot; class=&quot;Top&quot;>
<div align=&quot;right&quot;></div>
</td>
<td width=&quot;0%&quot; class=&quot;Top&quot; nowrap>&nbsp;</td>
</tr>
</table>
<table width=&quot;100%&quot; border=&quot;0&quot; cellpadding=&quot;1&quot; cellspacing=&quot;0&quot; bgcolor=&quot;#2E3F75&quot; height=&quot;15%&quot;>
<tr>
<td height=&quot;148&quot;>
<table bgcolor=&quot;#ffffff&quot; valign=&quot;top&quot; width=&quot;100%&quot; cellpadding=&quot;20&quot; cellspacing=&quot;0&quot; border=&quot;0&quot; height=&quot;25%&quot;>
<!--Row 1-->
<tr>
<td>
<div align=&quot;center&quot;>
<table width=&quot;100%&quot;>
<%
startrw = 0
endrw = HLooper2__index
numberColumns = 1
numrows = -1
while((numrows <> 0) AND (Not rsShowcase.EOF))
startrw = endrw + 1
endrw = endrw + numberColumns
%>
<tr align=&quot;center&quot; valign=&quot;top&quot;>
<%
While ((startrw <= endrw) AND (Not rsShowcase.EOF))
%>
<td>
<table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; height=&quot;80%&quot;>
<tr>
<td width=&quot;15%&quot;><font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;1&quot;><%= DoDateTime((rsShowcase.Fields.Item(&quot;DateTime&quot;).Value), 2, 1030) %></font></td>
<td width=&quot;38%&quot;><b><font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;1&quot;><A HREF=&quot;subject.asp?<%= MM_keepNone & MM_joinChar(MM_keepNone) & &quot;ID=&quot; & rsShowcase.Fields.Item(&quot;ID&quot;).Value %>&quot;><%=(rsShowcase.Fields.Item(&quot;Title&quot;).Value)%></A></font></b></td>
<td width=&quot;30%&quot;><font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;1&quot;><A HREF=&quot;staff.asp?<%= MM_keepNone & MM_joinChar(MM_keepNone) & &quot;StaffNo=&quot; & rsShowcase.Fields.Item(&quot;StaffNo&quot;).Value %>&quot;><%=(rsShowcase.Fields.Item(&quot;Owner&quot;).Value)%></A></font></td>
</tr>
</table>
</td>
<%
startrw = startrw + 1
rsShowcase.MoveNext()
Wend
%>
</tr>
<%
numrows=numrows-1
Wend
%>
</table>
<br>
<table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; height=&quot;80%&quot; bordercolor=&quot;#2E3F80&quot;>
<tr>
<td width=&quot;25%&quot; class=&quot;CompanyLink&quot;>
<div align=&quot;center&quot;><b><font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;1&quot;>Venue</font></b></div>
</td>
<td width=&quot;25%&quot; class=&quot;CompanyLink&quot;>
<div align=&quot;center&quot;><font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;1&quot;><b>Time</b></font></div>
</td>
</tr>
<tr>
<td width=&quot;25%&quot; height=&quot;2&quot;>
<div align=&quot;center&quot;><font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;1&quot;>Manchester
Room </font></div>
</td>
<td width=&quot;25%&quot; height=&quot;2&quot;>
<div align=&quot;center&quot;><font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;1&quot;>13:00-14:00</font></div>
</td>
</tr>
</table>
<br>
<table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; height=&quot;80%&quot; bordercolor=&quot;#2E3F80&quot; class=&quot;AddInfoHeader&quot;>
<tr>
<td width=&quot;25%&quot;>
<div align=&quot;center&quot;><font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;1&quot;><b>Feedback</b></font></div>
</td>
<td width=&quot;25%&quot;>
<div align=&quot;center&quot;><b><font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;1&quot;>Telephone</font></b></div>
</td>
</tr>
<tr>
<td width=&quot;25%&quot; height=&quot;11&quot;>
<div align=&quot;center&quot;><font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;1&quot;><a href=&quot;feedback.asp&quot;>Online</a></font></div>
</td>
<td width=&quot;25%&quot; height=&quot;11&quot;>
<div align=&quot;center&quot;><font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;1&quot;>0208-251-7582</font></div>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</tr>
</table>
</td>
</tr>
</table>
 
hmmm off the wall guess here.

when they hit the back button - is the page they are trying to go back to a form with info entered? or any instance specific item?

What I bet (hope) would work is if you forced through a couple methods - a &quot;no cache&quot; This would force the browser to reload each and every stinkin time.

 
The page has got a form on it but its usually blank (subscription email). The page is basically a table with each cell containing a set of information i.e. news, - a list pulled from a database etc.

This looks like a good way to sort it but I cant seem to get it to refresh. I have inserted the nocache include file at the top of the page.. and uploaded the include file

<%@LANGUAGE=&quot;VBSCRIPT&quot;%>
<!--#include file=&quot;Connections/PDGShowcase.asp&quot; -->
<!--#include file=&quot;nocache.inc&quot; -->
<%

Page loads ok but does same as before no reloading.. I have used same nocache.inc file as example..

<%
Response.Expires = 15
Response.ExpiresAbsolute = Now() - 2
Response.AddHeader &quot;pragma&quot;,&quot;no-cache&quot;
Response.AddHeader &quot;cache-control&quot;,&quot;private&quot;
Response.CacheControl = &quot;private&quot;
%>

Does this need amending (the 15?) to load everythine?

Thanks for all your help,
Tony
 
Hi.. I played/looked about a bit and put this in..
<%
Response.Buffer = True
Response.ExpiresAbsolute = Now() - 1
Response.Expires = 0
Response.CacheControl = &quot;no-cache&quot;
%>

It works fine now.. thanks for all your help,
Tony.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top