Jump to content


Photo

on confirm return to previous page and refresh


  • Please log in to reply
3 replies to this topic

#1 maxat

maxat
  • Members
  • PipPip
  • Member
  • 15 posts

Posted 11 July 2006 - 03:29 PM

Hi
   
I have a form with an image inside and delete option. When I select delete it redirects to delete.php and confirms delete if it is successful (all in php) and there is an OK button that should redirect to previous page without deleted image. I guess it possible only in Javascript but I dont know how to do it.  I tried onClick="history.back() but still  returns page with deleted image.

  If you have any idea how to do it, will be highly appreciated. and sorry for my bad english.

#2 nogray

nogray
  • Members
  • PipPipPip
  • Advanced Member
  • 930 posts
  • LocationSan Francisco CA

Posted 11 July 2006 - 03:54 PM

try history.go(-2) or another number

NoGray.com


#3 maxat

maxat
  • Members
  • PipPip
  • Member
  • 15 posts

Posted 11 July 2006 - 04:08 PM

still doesn't refresh, returns with an image

#4 nogray

nogray
  • Members
  • PipPipPip
  • Advanced Member
  • 930 posts
  • LocationSan Francisco CA

Posted 11 July 2006 - 06:49 PM

sorry, I miss understood your question

You need to set the meta tag so the page is not saved in the browser cach
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="EXPIRES" CONTENT="Mon, 22 Jul 2002 11:12:01 GMT">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">

NoGray.com





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users