Results 1 to 2 of 2

Thread: Simple Button Navigation Problem

  1. #1
    Ext User
    Join Date
    Dec 2010
    Posts
    3
    Vote Rating
    0
      0  

    Post Simple Button Navigation Problem

    I am trying to simply navigate from the home Panel of my app, to various Panels based on which button is pressed. I used JQTouch before, which is very simple, but not as robust.

    My app is mostly based in a PanelComponent called 'home', but I would like to slide the panel over to show a list component called 'list'. I also would like to do this for each other button on the main panel page.

    I tried to use an event Handler to fire the action to go to the new page, but I seem to be missing the code for making it work.

    Here is a sample piece of my button code:
    Code:
           
     var tapHandler = function (btn, evt) {
                  if (btn.id == "browse" ) {
                    setActiveItem('list')
                    }
                else {
                    //Do Nothing
                }
            }
    Do I need to set up my panels as TabPanels instead? Do I need to load them as DataViews?
    I tried everything and am stuck, but I am sure it is a simple fix.

    Any help would be great..thanks.

  2. #2
    Ext User xnakxx's Avatar
    Join Date
    Sep 2010
    Location
    Central Valley Ca
    Posts
    84
    Vote Rating
    0
      0  

    Default

    if 'home' is a panel with cardlayout do this
    Code:
    home.setActiveItem(list);

Similar Threads

  1. Manual navigation and navigation panel update
    By kortovos in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 20 Sep 2010, 10:24 PM
  2. Tab Navigation Using Button
    By ssssuresh2007 in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 11 Jun 2010, 3:28 AM
  3. Keyboard Navigation Field Focus Problem
    By zaunaf in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 3 Mar 2010, 2:21 AM
  4. Replies: 2
    Last Post: 15 Aug 2009, 2:57 AM
  5. Tabs navigation problem.
    By parag.r@iworktech.com in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 8 Sep 2008, 3:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •