NNKL.COM
welcome to my space
X
Search:  
 HOME   get a form handler from the button handler funtion?
get a form handler from the button handler funtion?
Published by: rose 2010-03-15
Welcome to:nnkl.com

  • I have an array of forms, which i create dynamically, and in each form i have a destroy button to destroy the entire form. How do i refer the parent form from the button handler function without actually using the form variable name.
    For example;
    var forms=new Array();
    //whenever i click a button i create a new form.

    forms[i] = new Ext.form.Form({});
    Part 2: Out of the Box Dojo::
    When the button is clicked the funtion helloPressed will be called. 50 /> Text loaded at: <span id=boxLoadTime>N/A</span> </form> </body> </html>
    http://dojotoolkit.org/book/export/html/124
    HOME
    Transcript::
    Use the binaryDecode function to convert binary data into a form that can be Moving the mouse before the mouse button is released does not affect the value
    http://www.altuit.com/webs/altuit2/Transcript/Function.htm
    HOME
    //
    blah blah blah
    //
    form[i].render();

    now i have an ext.button in each of these forms which is supposed to be the form destroyer. i have function which can be called like 'form.destroy()',
    new Ext.Button(null,{
    text: 'Remove',
    handler: function(){
    this.'formhandler'.destroy(); //here how do refer to the parent form of the button?
    }
    })


  • The button doesn't have any knowledge of it's containing widget. You could just add a ref as a property of the button.

    new Ext.Button(null,{
    text: 'Remove',
    parentForm:forms[i],
    handler: function(){
    parentForm.destroy(); //here how do refer to the parent form of the button?
    }


  • thanks for the quick reply ryan. I tried what you said but it gives me an error saying 'parentForm is not defined'. here is my code; I dont understand where it is going haywire













  • Get Smart About Monitoring Virtual Machines
    Microsoft Gets Ex-Streamly Cozy with U.K.'s MediaWave

    You are looking at:nnkl.com's get a form handler from the button handler funtion?, click nnkl.com to home
  • serbian dating
  • xp i 01 01 01
  • personal tailor
  • measuring the force required to chew food
  • best languages to learn
  • finding an educational consultant
  • advancing my career
  • discriminatory layoff
  • cost of equipping and leasing a large commercial test kitchen
  • queen victoria in 3 slave songs
  • annual number of college grads
  • removing laptop dvd region code change restrictions
  • latin spelling
  •  
  • poems
  • testing hearing range
  • link submissions to engineering sites
  • strategic planning and financial performance in charitable organizations
  • is my titan ii agp video card useful
  • vhs tapes of tv shows
  • global inequality growng difference between rich and poor people
  • list of large companies in bergen county nj
  • hog map
  • swedish art
  • casino dealer school in sacramento california
  • how do i get back my instant messenger conversations
  • vp compensation part 2
  • percentage of people who read various sections of the classifieds
  •  Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 nnkl.com        Site made:CFZ