This is a discussion on "Stumped" within the Classic ASP section. This forum, and the thread "Stumped are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Stumped
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Stumped
A simple thing I bet but I am having some trouble getting a 1 time page refresh based on a condition.
What I have is a asp page that reads two folders. if new images are added it will process the images via Imager Resizer.dll and save a thumbnail to the thumbs folder. This all works but the problem is on first page view after the thumbs are saved the thumbs don't load. I added a button that only shows if this is the case that refreshes the page but am looking for a more automated solution. is there some simple foo.refresh or something that can be implemented? I am more into PHP/MySQL than VBScript and MSSQL so learning as I go. So far my MSDN searching and google have returned nothing I can use.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
|
|
#2
|
|||
|
|||
|
Re: Stumped
Can you post your page please?
|
|
#3
|
|||
|
|||
|
Re: Stumped
Unfortunately I can't but I can elaborate. Everything works perfectly, the only problem is you have to refresh the page for the thumbnails to be visible if they were just created. So in the portion of the code that does the thumbnail creation I need to add some form of a one time page refresh.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#4
|
|||
|
|||
|
Re: Stumped
This is rudimentary but you could place an if then and the end of your asp code like this
|
|
#5
|
|||
|
|||
|
Re: Stumped
Ahh you rock! That did the trick. Works perfectly now. Thanks a bunch.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
![]() |
| Tags |
| stumped |
| Thread Tools | |
|
|