Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8405139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:46:28+00:00 2026-06-09T22:46:28+00:00

Modal Dialog Options function Myfunction() { var clientContext = new SP.ClientContext.get_current(); var options =

  • 0

Modal Dialog Options

function Myfunction() {

    var clientContext = new SP.ClientContext.get_current();
    var options = {
        url: clientContext.get_url() + "/_layouts/Page1.aspx",
        showMaximized: true,  

        //width: 950,  
        //height: 1000,  
        dialogReturnValueCallback: myCallback
    };
    SP.UI.ModalDialog.showModalDialog(options);
    return false;
}

function myCallback(dialogResult, returnValue) {
}  

I am trying to hide the ribbon which is coming on the modal box .. I have the added the below css on Page1.aspx

<style type="text/css">  
.s4-notdlg
{
   display:none;
}

It hides only the Site Actions part and the logged in name of the user. I still have the black thick image of the ribbon on my page. I want the complete ribbon to be hidden. Also, the scroll bars appear on the page, but they do not scroll completely to the bottom of the page.

Some one please help me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T22:46:30+00:00Added an answer on June 9, 2026 at 10:46 pm
    body{overflow:auto !important;}
    #s4-leftpanel { display: none;}
    .s4-ca {margin-left:0px !important;}
    #s4-ribbonrow{height:auto !important;min-height:0px !important;}
    #s4-ribboncont{display:none;}
    #s4-titlerow{ display:none;}
    .s4-ba {width:100%; min-height:0px !important;}
    #s4-workspace{float:left;width:100%; overflow:auto  !important;}
    body #MSO_ContentTable{min-height:0px !important;position:inherit;}
    

    Use above css in your page1.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a modal dialog that is created with the following: procedure TFormCompose.createParams(var Params:
I am using the jQuery dialog widget with the modal option over a wordpress
I have a modal dialog where I place the contents of an html form
I have a modal dialog plugin written in jquery, that binds to the click
jQuery based modal dialog boxes are great as long as you do as much
In a jquery modal dialog, is there a way to select a button as
I have a modal dialog box presented in Yahoo UI. The user selects a
I have a jquery modal dialog that displays a partial view. The partial view
I have modal dialog popups filled with various videos, played by JW Player. I
When a modal dialog box is present, messages sent to the main window using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.