tabbar - error on setContentHref

I have been struggling with loading a url into a tab’s content. I simply want to have a different url loaded when each tab is clicked. I was trying to use the javascript object method as below to set the url for the “orders” tab:











New Page 1

































The page gives me the error “this content[…] is null or not an object” and I can’t determine what’s wrong. I’m not sure I know how to properly reference the href for the tab. If I comment out the setContentHref I don’t get an error.



Thanks in advance for your help.

tabbar.sethrefmode=“iframe”;
must be a
tabbar.setHrefMode(“iframe”);

All other code is correct. Without correct setHrefMode command tabbar initialized in static content mode which cause a error for setContentHref command