View Full Version : Daft question

3 Oct 2007, 1:48 AM
I am using ext 2 alpha and i have added a button to my form using the js. At the bottom here is the code to show them on the page
buttons: [{
text: 'Save'
text: 'Cancel'

What is the syntax for either saving or cancelling the form


8 Oct 2007, 6:55 AM
If you're using Ext 2 then you will have to custom roll all the functionality because we have not changed Ext.nd over to it yet.

Are you displaying the form in a Borderlayout or are you just displaying a single form? Depending on what you are doing the code for save/cancel will need to differ. Generally a save can just locate the form (document.forms[0]) and call submit(), but there may be other issues or forms on the page... There's not one case that will fit all.

8 Oct 2007, 8:01 AM

The form I have used is the dynamic.js - so I have loaed that into notes and stripped out everything except the first simple form. - at present it will be as a single form but I want to eventually have it in a border layout - complex border layout is the aim (center panel)

I just want to take it one step at a time till I fully understand this