From: James C. <ja...@ji...> - 2010-05-30 11:21:18
|
I have spent hours trying to make this work consistently and it just won't. There seems to be no rhyme or reason why it doesn't work. Here is my code again.. very straightforward. I have a repetition and my form outside it to add, edit and delete. Any help or hints or such will be greatly appreciated. Thanks james <webobject name = "RatingsUpdateContainer"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <th colspan="3" scope="col"> Ratings <div class="edit"> <webobject name = "AddRatingsOpener" >Add</webobject> </div> </th> </tr> <webobject name = "RepetitionRatings"> <tr> <td class="icon"><webobject name = "DeleteRatingRow"><img src="/images/cancel-red.png" alt="delete rating" width="12" height="12" border="0" /></webobject></td> <td class="icon"><webobject name = "EditRatingsOpener" ><img src="/images/edit.png" alt="demote rating" width="12" height="12" border="0" /></webobject></td> <td class="description"><webobject name = "RatingName" /></td> </tr> </webobject name = "RepetitionRatings"> </table> </webobject name = "RatingsUpdateContainer"> <webobject name="RatingAddActionBox"> <webobject name="AddRatingForm"> <webobject name = "RatingsNameField" /> <webobject name = "RatingsSubmitButton" /> </webobject> </webobject> <webobject name="RatingEditActionBox"> <webobject name="RatingForm"> <webobject name = "RatingsEditNameField" /> <webobject name = "RatingsEditSubmitButton" /> </webobject> </webobject> <webobject name="RatingConfirmDeleteBox"> <webobject name="RatingDeleteForm"> <webobject name = "RatingsShowNameField" /> <webobject name = "RatingsDeleteSubmitButton" /> </webobject> </webobject> FOR EXAMPLE BINDINGS: AddRatingsOpener: AjaxModalDialogOpener { dialogId = "AddRatingDialog"; title = "Add Rating"; } RatingAddActionBox: AjaxModalDialog { label = "Add"; closeLabel = "Close"; title = "Add Rating"; id = "AddRatingDialog"; showOpener = false; transitions = false; locked = false; centerVertically= true; width = 240; height = 120; overlayOpacity = 0; closeUpdateContainerID = "ratingsUpdateContainer"; } AddRatingForm: WOForm { multipleSubmit = true; name = "RatingAddForm"; } RatingsNameField : WOTextField { value = ratingName; } RatingsSubmitButton : AjaxSubmitButton { updateContainerID = "ratingsUpdateContainer"; value = "Add new rating"; onClick = "AMD.close();Element.show('busyRating');"; onComplete = "function(x){Element.hide('busyRating')}"; action = addRating; id = "ratingDialogAddButton"; } |