Page 1 of 1

Passing a parameter from one page to another based on clicked link/button?

Posted: Tue Apr 02, 2013 1:39 am
by dale

I've implemented a REST service (from Google places API) that lists places in a geographic area - this data is then sent to a mapped grid output for each place.

What I'd like to do is when someone clicks on a link/button in the grid (for one of the places), more information is shown (via another call).

I'm not quite sure how to invoke another page and pass the one variable to the page?
I've read somewhere that parameters can be passed to another page by storing it as a local variable, but how would I set the variable when a link/button is clicked?

Many thanks,
Dale.


Passing a parameter from one page to another based on clicked link/button?

Posted: Tue Apr 02, 2013 1:45 am
by maxkatz

User browser's local storage: http://docs.tiggzi.com/documentation/...


Passing a parameter from one page to another based on clicked link/button?

Posted: Tue Apr 02, 2013 2:11 am
by dale

Thanks Max for your quick reply.

I sort of understand what you mean ... if I had one button it would be OK.

But I would have lots of buttons (one for each row in the grid that is returned and I cannot know upfront what each value will be).

If I'm not quite understanding things right, it's fine, I just need to learn more.

Thanks,

Dale.


Passing a parameter from one page to another based on clicked link/button?

Posted: Tue Apr 02, 2013 2:20 am
by maxkatz

This tutorial will show how to do it: http://docs.tiggzi.com/tutorials/buil...


Passing a parameter from one page to another based on clicked link/button?

Posted: Tue Apr 02, 2013 5:32 pm
by dale

Excellent. I worked it out. Thankyou.