Oh, sorry my mistake - the page I was loading refreshed and loaded another page. I had to call this after the second page is loaded - now it worked Thanks for the help guys...