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 3489330
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:22:57+00:00 2026-05-18T11:22:57+00:00

I have this code in my js file function blockUI() { $.blockUI({ css: {

  • 0

I have this code in my js file

function blockUI() {
    $.blockUI({ css: {
        border: 'none',
        padding: '15px',
        backgroundColor: '#000',
        '-webkit-border-radius': '10px',
        '-moz-border-radius': '10px',
        opacity: .5,
        color: '#fff'
    }
    });
    setTimeout($.unblockUI, 2000);
}

when I am trying to block the UI on Submit button click I am doing soemthing like this

<input type="submit" value="Save" onclick="javascript:blockUI();" class="t-grid-action t-button t-state-default" />

but on my oncick its not working for me? can any one tell me what is the problem?

thanks

  • 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-05-18T11:22:57+00:00Added an answer on May 18, 2026 at 11:22 am

    Make sure that your js file is properly referenced from your html file. Can you call other js functions from here? You can also use Firebug to see if the js file has been loaded. If so, set a breakpoint in your function to make sure it’s been executed.

    As ob mentioned, you may want to return false, depending on what you want your submit button to do after blockUI() is called, but you should return false after your function call, not during the function body.

    Lastly, why are you calling this inline? jQuery was designed for UJS. You should have script tags in your html file that contain some jQuery code:

    $(document).ready(function() {
      $('.submit').click(function() {
        blockUI();
        return false;
      });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code in a js file: function buildRolePicker() { var pnl =
I have this code that loads an xml file using javascript: function getXmlDocument(sFile) {
I have this code: <body onLoad=subcatSelection();> The function is inside a .js file which
I have some code that effectively does this : File file = new File(C:\\Program
I have the following code: if (System.IO.File.Exists(htmlLocation)) { vEarthBrowser.ObjectForScripting = this; vEarthBrowser.Url = new
I have this code: btn_jouer.onRelease = function () { verif = txt_email_user.text; if (txt_email_user.text
Let's say I have this code: int function(bool b) { // execution path 1
I have this code, which gets an clicked div id: $(document).ready(function(){ $(.playitem).click(function(){ pos =
I have this code: <script type=text/javascript> $(document).ready(function() { $(#iframeId).contents().find(body).append($(#test)); }); </script> <iframe id=iframeId name=iframeId
Right now I have this code. <?php error_reporting(E_ALL); require_once('content_config.php'); function callback($buffer) { // replace

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.