Stumped

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.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old May 22nd, 2006, 13:18
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old May 22nd, 2006, 19:26
Up'n'Coming Member
Join Date: Apr 2006
Location: Missouri
Age: 32
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Stumped

Can you post your page please?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old May 22nd, 2006, 19:38
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old May 22nd, 2006, 19:44
Up'n'Coming Member
Join Date: Apr 2006
Location: Missouri
Age: 32
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Stumped

This is rudimentary but you could place an if then and the end of your asp code like this
Code: Select all
<%
if not request.QueryString("refresh") = "refresh" then
response.redirect "?refresh=refresh"
end if
%>
Something along those lines, I could help out more but I would have to see it. I hope this does the trick for yeah.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old May 22nd, 2006, 19:51
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
stumped

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 17:21.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42