Hi all,
I'm trying to place a link in a Google Maps InfoWindow that, when clicked, performs a function in Sencha Touch. Specifically, when clicked, I want to switch to another tab and populate a form.
My function to perform the tab switch (this will also populate a form):
Code:
function windowLink()
{
tabs.setActiveItem(2);
}
Then in my InfoWindow content variable I create the following link, but it doesn't seem to work when clicked. I've also tried using the onclick property but with no luck. I would appreciate any suggestions, thanks!
Code:
var content = "<a href=\"javascript:windowLink();\">some text</a>";