iframe gsft_main and scrollable area

irvin2
Giga Contributor

I have several pages I am trying to load into my CMS -- all load under the gsft_main iframe .. unfortunately all (reports) are quite a bit wider than the iframe.  

I am looking at how to change the iframe from scrollable=no to scrollable=yes.

Ideas on how to best accomplish this would be appreciated.

6 REPLIES 6

venkatiyer1
Giga Guru

Hi James,



I am sure you have a cms page defined and in that you would be having a dynamic content block. Within the dynamic content block add a script tag at the bottom of the page. Create a UI script, dont have to be global so uncheck that and in that UI script add



function onLoad() {


// above script provided to make the frame scrollable


}



refer to the UI script file created above using the tag below


<script></script>



uiscriptfilename is the file name of your script. Link below explains further:-



UI Scripts - ServiceNow Wiki


irvin2
Giga Contributor

As it turn out there is indeed a dynamic content block which happens to have scrolling="no" ... changing this to "yes" solved the problem