Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: how to refresh the page?
Pages: [1] Print
Author Topic: how to refresh the page?  (Read 300 times)
newbie
Guest


Email
how to refresh the page?
« on: May 03, 2004, 10:56:38 PM »

Hi.. once i add a new record and i want to let user to see the new record updated, may i know how to refresh the page? Thank you
Logged
CarlRead
Full Member
***
Offline Offline

Posts: 105


View Profile
how to refresh the page?
« Reply #1 on: May 04, 2004, 05:05:43 AM »

Hopefully this example will cover what you're after...
Code:
rebol []
lo: layout [
   across
   f1: field
   button "Refresh" [show f1]
   return
   f2: field
   button "Refresh" [show f2]
   return
   button "Add Stuff" [
       append f1/text "Ab"
       append f2/text "Xy"
   ]
   button "Refresh All" [show lo]
]
view lo
There you can refresh the whole layout by a SHOW LO, (LO being the layout), or just the individual fields with SHOW F1 and SHOW F2.

Note if you only want to refresh some of the styles in a face you can use SHOW [styles you want to refresh].  ie, we could've used SHOW [F1 F2] above instead of SHOW LO.  That would've had the same effect and used less processing.  (Refreshing the whole layout refreshes the buttons and other stuff that doesn't need refreshing.)
 
Logged

- Carl Read
Pages: [1] Print 
Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: how to refresh the page?
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 07, 2008, 01:46:50 AM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2240 Posts in 584 Topics by 2210 Members
Latest Member: Wqmsewzb

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc