Results 1 to 5 of 5

Thread: Displaying Page in sencha

  1. #1

    Default Displaying Page in sencha

    I have 4 pages.home.js,about.js,contact.js,map.js and single html file index.html referring the 4 pages.
    one tab panel with four icons for 4 pages.

    i have 4 links for 4 pages.
    my problem is that,if i click a second link,the about page should be activated and shown.Is there any way to do this..

    Thanks in advance...

  2. #2
    Sencha User's Avatar
    Join Date
    Mar 2007
    DC Area =)


    Sencha is the company, NOT the product.

    js files are not "pages", they are script files.

  3. #3
    Sencha User
    Join Date
    Jul 2010
    Paris, France


    Hi anishkumar,

    Some code snipets will help us to see what is your problem.
    From what I've read your are looking for setCard() function.

  4. #4
    Sencha User Riaz's Avatar
    Join Date
    Sep 2010
    Sydney, Australia


    Hi anishkumar:

    So far I understood that you are in "home.js" and trying to access to 'about.js'. If I am correct do the following steps:

    Step 01: add following code in "index.html"
    <script type="text/javascript" src="myPath/contact.js"></script>

    Step 02: in the 'contact.js', add everything within function. For example-
    function fnContact(){
    // here is your code

    Step 03: Call the 'contact.js' from the 'home.js'

    var btnLogin = new Ext.Button({
    text: 'Contact',

    If you have any confusion, let my know.

  5. #5
    Sencha User
    Join Date
    Feb 2011


    @ Riaz : i was trying your code but nothing is happen..............

    can u help me to link one screen to other other....... i have to make a static pages......... not dynamic....

Similar Threads

  1. Ipad displaying Sencha extremely small?
    By ivanmayes in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 11 Oct 2010, 7:27 PM
  2. page transitions in Sencha touch
    By fgeorge in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 20 Aug 2010, 9:53 PM
  3. On page load data are not displaying using Livegrid with EditorGridPanel
    By sunilpca in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 31 Dec 2008, 5:45 AM
  4. Problem with displaying a page in window
    By pradeepkumar08 in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 24 Dec 2008, 8:16 AM
  5. How do i wait for datastores to load before displaying page.
    By taberg in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 18 Jun 2007, 10:23 PM

Tags for this Thread

Posting Permissions

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