Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

blockui requires jquery v1.2.3 or later you are using v.1.11.1

Acually im using a higher version.

The error what is called is (Alert)

blockui requires jquery v1.2.3 or later you are using v.1.11.1

im not using wordpress or any other kind of programms/applications like this...

so solutions for wordpress won't help. i have a private project using jquery and jquery ui...

anyone knows the issue and how to fix this issue ?

like image 380
Dwza Avatar asked May 13 '14 08:05

Dwza


2 Answers

I found the issue!

Here is a Fix for all who have the same problem

jquery.blockUI.js

// Old if condition
//if (/1\.(0|1|2)\.(0|1|2)/.test($.fn.jquery) || /^1.1/.test($.fn.jquery)) {

//new if condition
if ((/1\.(2\.([3-9]|[1-9][0-9])|[3-9]\.[0-9]*|[1-9][0-9]*\.[0-9]*)/.test($.fn.jquery)) === false ) {

total condition looks like

if ((/1\.(2\.([3-9]|[1-9][0-9])|[3-9]\.[0-9]*|[1-9][0-9]*\.[0-9]*)/.test($.fn.jquery)) === false ) {
    alert('blockUI requires jQuery v1.2.3 or later!  You are using v' + $.fn.jquery);
    return;
}

this will check the version from 1.2.3 up to 1.99~.99~.

guess there will be a couple of years to reach this :D

like image 115
Dwza Avatar answered Sep 30 '22 06:09

Dwza


You can also try to download and use the latest version of BlockUI:

here

or

here

like image 30
Zsolti Avatar answered Sep 30 '22 08:09

Zsolti