POLALA.COM
welcome to my space
X
Welcome to:polala.com
Search:  
Web Design | Video Games | RVs | Religion | Management | Supplements and Vitamins | Software | Basketball | Related articles
NAVIGATION: Home >>
Tabs in a form with Ext.nd 2
Published by: webmaster 2008-11-21

  • [2.0][SOLVED] Best practices for getting / saving form data - Page 2 ::
    tabs.render(document.body); tabs.getForm().load({url:test9.js Yes, I am loading an edit form in a ext window when the user clicks a node of a tree.
    http://extjs.com/forum/showthread.php?p=103104
    HOME
    I have created a simple form where i want to put 2 tabs.

    In the Notes form i have inserted this code




    Prog [DominoFields-it's a placeholder]


  • If you observe my html code you can see that there'isnt the


  • Hi Tarikonen,

    I copy exactly your code and close the "


  • Hi,

    More testing ... the previous javascript was thowing an error (the viewport?). I removed it and the tabs still work.

    //=====================================
    // Javacript functions for Extnd Tabs
    //=====================================

    Ext.onReady(function(){

    // Main (Tabbed) Panel
    var tabPanel = new Ext.TabPanel({
    renderTo: 'my-tabs',
    width: 750,
    height: 400,
    deferredRender:false,
    autoScroll: true,
    margins:'0 4 4 0',
    activeTab:0,
    items:[
    {id:'tab1', contentEl:'tab1a', title: 'Main', closable:false, autoScroll:true},
    {id:'tab2', contentEl:'tab2a', title: 'TabTwo', closable:true, autoScroll:true}
    multiple tabs value not posted back using form.getForm().submit() - Ext ::
    multiple tabs value not posted back using form.getForm().submit() Ext: Help am having post back issue with multiple tabs inside 1 form, it seems that I have
    http://extjs.com/forum/showthread.php?t=33684
    HOME
    ]
    });
    });


  • Rich, i can't make it work.. i have the same problem as tarikonen.
    Once i play with the tabs the problem is gone..but the first time i can't fix it.

    Can you please help me??

    Thanks you very much!!!


  • Hi Guys,

    I tried the code above and it caused me the same problems ... I don't know why ...
    How to change the set of tabs - Page 2 - Ext JS Forums::
    Page 2-How to change the set of tabs Ext: Help above the combo-box as their container has labelAlign: top property (Form
    http://extjs.com/forum/showthread.php?t=17878&page=2
    HOME

    I am still trying to understand how this stuff works by trail and error.

    The following does work

    1) Start with a new Notes Form
    2) Add the HTML to your form - Screenshot-1
    3) Enter the following HTMLHeaderContents (modified to your settings) - see Screenshot-2
    4) Javascript Header (From the EXT Learn section on tabs) - see Screenshot-3
    5) Working Tabs (without the problems) - see Screenshot-4 & 5

    I will now try to add this to my working form which is very complex ... I will advise if it works.

    I added the javascript so you can copy it below:


    //=====================================
    // Javacript functions for Extnd Tabs
    //=====================================

    Ext.onReady(function(){

    // Main (Tabbed) Panel
    var tabPanel = new Ext.TabPanel({
    region:'center',
    deferredRender:false,
    autoScroll: true,
    margins:'0 4 4 0',
    activeTab:0,
    items:[
    {id:'tab1', contentEl:'tab1a', title: 'Main', closable:false, autoScroll:true},
    {id:'tab2', contentEl:'tab2a', title: 'TabTwo', closable:true, autoScroll:true}
    ]
    });

    // Configure viewport
    viewport = new Ext.Viewport({
    layout:'border',
    items:[tabPanel]});
    });


  • Yeah, pushing Ext components into a Domino rendered form gets a little tricky. I would recommend taking a look at the 'Application Profile' form in the Ext.nd database. It currently only uses a Panel, but should be able to be adapted to a TabPanel pretty easily.

    My first thought would be to tweak your html a tad and not wrap the divs you want within tabs in your 'tabs1' div.



  • The lastest ... much cleaner ... no firebug errors

    Javascript Header ...

    //=====================================
    // Javacript functions for Extnd Tabs
    //=====================================

    Ext.onReady(function(){

    // Main Form
    var frm = new Ext.nd.Form();
    frm.render();

    // Main (Form) Panel
    var p = new Ext.Panel({
    frame: true,
    height: 500,
    title: 'My Form',
    renderTo: 'my-form',
    contentEl: 'my-panel'
    });

    // Main (Tabbed) Panel
    var tabPanel = new Ext.TabPanel({
    renderTo: 'my-tabs',
    width: 780,
    height: 300,
    deferredRender:false,
    autoScroll: true,
    margins:'0 4 4 0',
    activeTab:0,
    items:[
    {id:'tab1', contentEl:'page1', title: 'TabOne', closable:false, autoScroll:true},
    {id:'tab2', contentEl:'page2', title: 'TabTwo', closable:false, autoScroll:true},
    {id:'tab3', contentEl:'page3', title: 'TabThree', closable:false, autoScroll:true}
    ]
    });
    });


    The Form...

    see screenshot 1

    The Rendered Form ...

    see screenshot2


  • Hi Mike,

    Thank you so much for your help!!!!!!!!!!
    Now it works perfect!!!!





  • Where's The Advantage In Windows Genuine Advantage?
    Stocks Bounce After S&P Joins Bear Market

    PRINT Add to favorites
  • don t understand outpost
  • what type of attack is this
  • lan dial up local ftp doesn t work
  • seriously decrease of performance while using ssh console
  • not very reassuring
  • outpost 2 5 athlon 64 and dep problem
  • outpost 2 5 369 369 block transit packets for wingate 6 nat
  • problem with op2 5 ad aware se pro
  • component control guidelines request for
  • outpost 2 5 and a lan
  • kernell32 unknown parent process requests for an outbound connection is this normal
  • is more advanced ics now possible with new build
  • how do i change my reg code

  • help outpost firewall pro v2 5
  • outpost 2 5 crashes on startup
  • outpost 2 5 kerberos login rules processing during startup
  • revert to op2 1
  • is it ok to use combination of op proximitron
  • problem to uninstall outpost 2 5
  • error message from outpost
  • icon in the systray disappear
  • outpost 2 5 local trusted lan blocked
  • op2 5 seems to be blocking everything
  • newbie in imminent danger
  • serious error
  • problem content filter and process control
  • 2 5 blocks webpages
  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Tabs in a form with Ext.nd 2 , Please add it free.

    About us -Site map -Advertisement -Jion us -Contact usExchange linksSponsor us
    Copyright© 2008 polala.com All Rights Reserved
    Site made&Support support@polala.com    E-mail: web@polala.com