PDA

View Full Version : Need to pass value on page navigation



infantjoseph
14 Jun 2011, 8:43 PM
Hello All,
I'm a newbiee to sencha touch. Got few basic understood but wondering how to pass data from a page to other.searched a lot but couln't find the solution yet. I'm using code for navigating from a page

var browser = 'touchEvents.html';
window.location = browser;
need to carry data from the home page to the page where i'm landing. Thanks in Advance.

msuresh
14 Jun 2011, 9:25 PM
You need to pass the values as parameters. "touch.html?param1=ans&param2=answer", is it what you are looking for?

infantjoseph
14 Jun 2011, 10:30 PM
I tried with that and got the page navigation but no idea to retrieve the value passed as parameters in URL from the landing page. Help me to get going.

bclinton
14 Jun 2011, 11:21 PM
I think you need to be more descriptive. It's not easy to understand what you are trying to do because you seem to be asking a question about basic web stuff that really doesn't have anything to do with Sencha Touch.