<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question How can I scroll with UIB? in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/how-can-i-scroll-with-uib/m-p/2947006#M193</link>
    <description>&lt;P&gt;In my UIB landing page, I have a bar graph and a list view under it.&amp;nbsp; The graph is responsive in that it changes the list view upon clicking one of the bars in the graphic.&amp;nbsp; I have been asked to add a scrolling mechanism that takes the user to the list upon clicking that bar element.&amp;nbsp; But, I don't know how to manipulate 'document' or 'window' objects within UIB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to do a scroll to when the bar graph elements are clicked, the user is automatically scrolled to the list view.&amp;nbsp; i need to do this in a client script but $window/window is not available there to do a scrollTo().&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nor is "document" and I therefore cannot do this:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;document&lt;/SPAN&gt;.&lt;SPAN class=""&gt;getElementById&lt;/SPAN&gt;(&lt;SPAN class=""&gt;"divFirst"&lt;/SPAN&gt;).&lt;SPAN class=""&gt;scrollIntoView&lt;/SPAN&gt;();&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;or&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;location.&lt;SPAN class=""&gt;href&lt;/SPAN&gt; = &lt;SPAN class=""&gt;"#myDiv"&lt;/SPAN&gt;;&lt;/PRE&gt;&lt;P&gt;Any ideas of how I might do this?&amp;nbsp; I read that I could use glideForm to scroll, but I do not want to needlessly add a form to my landing page.&amp;nbsp; I just want to use the window/document elements SHOULD be available to any page.&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2024 15:41:16 GMT</pubDate>
    <dc:creator>paige6</dc:creator>
    <dc:date>2024-05-29T15:41:16Z</dc:date>
    <item>
      <title>How can I scroll with UIB?</title>
      <link>https://www.servicenow.com/community/community-central-forum/how-can-i-scroll-with-uib/m-p/2947006#M193</link>
      <description>&lt;P&gt;In my UIB landing page, I have a bar graph and a list view under it.&amp;nbsp; The graph is responsive in that it changes the list view upon clicking one of the bars in the graphic.&amp;nbsp; I have been asked to add a scrolling mechanism that takes the user to the list upon clicking that bar element.&amp;nbsp; But, I don't know how to manipulate 'document' or 'window' objects within UIB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to do a scroll to when the bar graph elements are clicked, the user is automatically scrolled to the list view.&amp;nbsp; i need to do this in a client script but $window/window is not available there to do a scrollTo().&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nor is "document" and I therefore cannot do this:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;document&lt;/SPAN&gt;.&lt;SPAN class=""&gt;getElementById&lt;/SPAN&gt;(&lt;SPAN class=""&gt;"divFirst"&lt;/SPAN&gt;).&lt;SPAN class=""&gt;scrollIntoView&lt;/SPAN&gt;();&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;or&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;location.&lt;SPAN class=""&gt;href&lt;/SPAN&gt; = &lt;SPAN class=""&gt;"#myDiv"&lt;/SPAN&gt;;&lt;/PRE&gt;&lt;P&gt;Any ideas of how I might do this?&amp;nbsp; I read that I could use glideForm to scroll, but I do not want to needlessly add a form to my landing page.&amp;nbsp; I just want to use the window/document elements SHOULD be available to any page.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 15:41:16 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/how-can-i-scroll-with-uib/m-p/2947006#M193</guid>
      <dc:creator>paige6</dc:creator>
      <dc:date>2024-05-29T15:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I scroll with UIB?</title>
      <link>https://www.servicenow.com/community/community-central-forum/how-can-i-scroll-with-uib/m-p/2971748#M338</link>
      <description>&lt;P&gt;I don’t think you can scroll to the bottom of the page but I think a more elegant solution would be to put the list and other components in a tab component and to change the visibility upon clicking on the data visualization.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 20:30:31 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/how-can-i-scroll-with-uib/m-p/2971748#M338</guid>
      <dc:creator>Marc Mouries</dc:creator>
      <dc:date>2024-06-24T20:30:31Z</dc:date>
    </item>
  </channel>
</rss>

