|
Pages: [1]
|
 |
|
Author
|
Topic: how to refresh the page? (Read 300 times)
|
newbie
Guest
|
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
|
Hopefully this example will cover what you're after... 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]
|
|
|
 |