Button on header doesn't work after partial refresh
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2024 08:34 AM
i have a button on my SN header that opens and closes a side panel. It works fine on most pages but not on the search result page after a search. i think this is due to lazy loading. It can't find the document element in this code and the style
$scope.openNav = function openNav() {
c.data.panel = true;
document.getElementById("mySidepanel").style.width = "345px";
How can i ensure the header is properly loaded so that mySidepanel is defined ?
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2024 08:49 AM
i think what i need to do is reload/refresh one element on the header rather than reload the whole page - is it possible to do that ?