From riaan@specon.co.za Mon Oct 13 13:55:19 2008 From: Riaan van Aarde - Specon Eng To: beginners@lists.squeakfoundation.org Subject: [Newbies] adding protogrowl to a submit button and anchor Date: Mon, 13 Oct 2008 15:55:02 +0200 Message-ID: <007b01c92d3b$4e799100$eb6cb300$@co.za> In-Reply-To: <20081012224857.58BE212C8B45@mailsa4.servage.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1313062245327823886==" --===============1313062245327823886== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Below is my code. On the button submit and the cancel anchor I want to add a protoGrowl for eg. "Any changes to this form will be submitted" or on the cancel anchor "Changes will be cancelled". Like this : How would I alter that above to work. The Protogrowl Lib is already called. Its just to add the protoGrowl message. renderScheduleTrainingOn: html self person ifNil: [ html break. html unorderedList class: 'errors'; with:[html listItem: 'Please make sure that you select a Business, Department and a Person for this search.']]. self person ifNotNil: [ html heading: person. html table class: 'scheduleList'; with: [ self renderScheduleTrainingTableHeaderOn: html. self filteredTraining do: [ :each | self renderScheduleFor: each on: html ]. html tableRow class: 'trainingViewsSubmitButton'; with: [ html tableData colSpan: 11; with:[ html span class: 'button'; title: 'Submit'; with: [ html submitButton callback: [ self answer: true ]; confirm: 'Any changes to this form will be submitted. Are you sure you wish to continue?'; text: 'Submit' ]. html text: ' or '. html anchor class: 'button'; callback: [self answer: false]; confirm: 'Any changes to this form will be cancelled. Are you sure you wish to continue?'; with: [ html span: 'Cancel' ] ] ] ] ] "confirm: 'You are about to schedule training for a person, Click OK to confirm.'. html text: ' or '. html anchor callback: [self answer: false]; with: [html image url: '/images/Images/ButtonCancel.gif'; altText: 'cancel'" --===============1313062245327823886==--