dale
Posts: 0
Joined: Fri Mar 29, 2013 5:28 pm

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

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.

dale
Posts: 0
Joined: Fri Mar 29, 2013 5:28 pm

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

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.

dale
Posts: 0
Joined: Fri Mar 29, 2013 5:28 pm

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

Excellent. I worked it out. Thankyou.

Return to “Issues”