Yii Framework Forum: How To Block Refresh In Yii Web App - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How To Block Refresh In Yii Web App Rate Topic: -----

#1 User is offline   dinesh.r 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 13-February 13

Posted 27 April 2013 - 12:12 AM

Hi,
How to Block refresh (cursor in URL+enter) and to disable the default reload button in web page, using javascript or something....
0

#2 User is offline   Artificial 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 64
  • Joined: 11-December 10
  • Location:Sydney, Australia

Posted 27 April 2013 - 12:31 AM

Er, no bit of Javascript can prevent a user from clicking the address bar and hitting enter. You'd need your Yii app to detect if the user has refreshed, and if so, deal with it.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users