web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Need a java script for block and Unblock page

(0) ShareShare
ReportReport
Posted on by

Hi ,

i got a scenario where i have created a custom button and one JavaScript function is calling while clicking on the custom button. So page should be block wherever click on custom button(that means users cannot click anywhere in the page), here i need a script for block and Unblock page like whenever the JavaScript function calls, at the first line of function there should be a page block code and once the rest of the code is performed then again page should be unblock.

Please help me here.

Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • Bas van de Sande Profile Picture
    4,383 on at

    Hi Gaurav,

    are you looking for some lightbox effect (like e.g. http://jsfiddle.net/G3jRm/2/) ?

    or are you looking for a way to lock down all controls on the page (turn them readonly)?

    Bas

  • Community Member Profile Picture
    on at

    i am looking for the solution like to lock all the controls with all the ribbon buttons

  • Suggested answer
    Bas van de Sande Profile Picture
    4,383 on at

    what you can try to do is the following:

    1. add an html resource to the page

    2. on the html resource you have some css and javascript

    3. the button click activates/deactivates the javascript on the html resource.

    4. the function on the html resource applies a lightbox or hides it

    in the url I sent above, you'll find a basic lightbox/overlay implementation (you could make it 100% transparent)

    I hope this points you in the right direction

    Bas

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans