[ 3 posts ]

eros sy

  • Username: eros
  • Joined: Fri Oct 16, 2009 2:14 am
  • Posts: 3
  • IRC: eros
  • Offline
  • Profile
Tags:

Page Refresh Flag, First Page Visit Flag in YUI

Post Posted: Fri Oct 16, 2009 2:27 am
+0-
hi guys, i'm searching a flag/indicator for Page Refresh Event and First Time Page Visit Event.

my definition of "First Time Page Visit Event":
1) type the URL in address bar then enter key. (Event is triggered)
2) page refresh. (Event is not triggered)

my definition of "Page Refresh Event ":
1) type the URL in address bar then enter key. (Event is triggered)
2) every page refresh. (Event is triggered)


using Ajax, the variable will not be reset. therefore, my temporary workaround is to declare a global variable flag.

But..... is there Flag / Indicator in YUI for the above scenario?

Eric Miraglia

YUI Contributor

  • Username: miraglia
  • Joined: Tue Sep 02, 2008 10:59 am
  • Posts: 205
  • Location: Los Gatos, CA
  • Twitter: miraglia
  • GitHub: miraglia
  • Gists: miraglia
  • Offline
  • Profile
Tags:

Re: Page Refresh Flag, First Page Visit Flag in YUI

Post Posted: Fri Oct 16, 2009 11:25 pm
+2-
eros-

Couldn't you just use a cookie for this?

http://developer.yahoo.com/yui/3/exampl ... ample.html

-Eric

eros sy

  • Username: eros
  • Joined: Fri Oct 16, 2009 2:14 am
  • Posts: 3
  • IRC: eros
  • Offline
  • Profile

Re: Page Refresh Flag, First Page Visit Flag in YUI

Post Posted: Sun Oct 18, 2009 5:04 pm
+0-
Thanks a lot.. it's solved.
  [ 3 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum