Tuesday 15 May 2012

javascript - BlockUI - TypeError: $.blockUI is not a function -


I use jquery blockUI to trigger the loading screen; I use the same script on two other .aspx pages And it just worked fine. However, I have added it to my current .aspx page and Firefox / Chrome console. The WPUI is not a function.

I've already tried to convert it to $ .fn.blockUI and received it error. I know that there are other similar topics, but I have tried to do some of those results with the same result.

Here is my current ASPX page script:

  & lt; Link Rel = "stylesheet" href = "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/themes/base/jquery-ui.css" type = "text / css" media = "all "/> & Lt; Script type = "text / javascript" src = "http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/jquery-ui.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "http://malsup.github.io/jquery.blockUI.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; $ (Function () {$ ('# & lt;% = Submit1.ClientID% & gt;'). Click (function () {$ .blockUI ({Message: $ ('# loader'}}})} Here is a separate aspx page, where it works: