View Full Version : Displaying Page in sencha

18 Oct 2010, 9:55 PM
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...

19 Oct 2010, 9:31 AM
Sencha is the company, NOT the product.

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

19 Oct 2010, 10:05 AM
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.

19 Oct 2010, 8:59 PM
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.

6 Feb 2011, 10:46 PM
@ 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....