getPosts
Usage
gb.getPosts("guestbook.asp?action=view",entries,1,10});
Description
Retrieves the guestbook entries from the specified
url and displays them in the text display specified
by
target. Optionally, you can set a range of posts to
retrieve by specifying values for
min and
max
(Your guestbook script will need to be set up for this option)
Parameters
- url
- (String) location of the guestbook script
- target
- (TextField instance) instance name of a dynamic TextField or TextArea
component to use for entry display
- min
- (Number) indicates the low limit of the entry retrieval range (Optional)
- max
- (Number) indicates the high limit of the entry retrieval range (Optional)
Returns
Nothing.
addPost
Usage
gb.addPost(["TextField1","TextField2","TextField3"],"guestbook.asp?action=add");
Description
Adds the user entered information into the "guestbook"
and refreshes the entry display.
Parameters
- fields
- (Array) array used to hold the instance names
of the user input TextFields
- url
- (String) location of the guestbook update script
Returns
Nothing.