I have a view with a listview showing some menu items generated from a web service data source.
Each menu item has an onclick which causes the listview to be rebinded with new menu items.
At this point I also want to change the title of the view. How do I do this?
I tried:
document.getElementById("myView").setAttribute("data-title", myNewTitle)
but this only works when the page is first displayed.
Thanks
Keith
Each menu item has an onclick which causes the listview to be rebinded with new menu items.
At this point I also want to change the title of the view. How do I do this?
I tried:
document.getElementById("myView").setAttribute("data-title", myNewTitle)
but this only works when the page is first displayed.
Thanks
Keith