Livevalidation jquery plugin

Hi Ross,

I wanted to have a closer look at the livevalidation jquery plugin. I found the compressed version under lib/LiveValidation.

Do you have a copy of the fully commented version? The project seems to be dead and I wasn’t able to get a copy despite of searching for quite a while.

Kind regards,
Roman

Roman,

Yes, this is a dead project (unfortunately for us, as it means we are now having to look at alternatives), but their GitHub page is still live. The file you want, I believe, is:

https://github.com/alechill/livevalidation/blob/master/src/livevalidation_standalone.js

We are looking at using BootStrap to do client side validation in future versions.

Thanks,

Ross

Hi Ross,

I believe you have done some changes to the original code, e.g. by adding javascript alert messages, right?

Anyway, Gibbon behaves differently if I replace the Gibbon version with the file provided above, e.g. in regard to the display of javascript alert messages.

Kind regards,
Roman

Roman, correct, we did add a JavaScript alert, in order to make it more usable on long forms, where the error may be out of sight.

Ross, do you have the uncompressed modified file? It may be good if you could add this file to Gibbon since you modified the original code. I would like to have a closer look at the changes you did.

Roman,

No, I do not I am afraid. I think it you search for alert( you will find the single change that we made. You can always run a diff on the original compressed version and the Gibbon compressed version.

Ross

Good idea! Thanks!

Hi Ross,

I tried to reconstruct the uncompressed file you used.

I don’t understand all changes you did. I was able to identify 4 changes, e.g. in regard to tinymce and overriding default messages.

Such reconstructions are kind of tricky. Could you have a closer look at the reconstructed file? You are the best person to audit this, right?

Sorry for wasting your time on such a minor issue.

Kind regards,
Roman

Roman,

Unfortunately the change (I believe there was only one, but perhaps you are right, there were more), where not documented. This all happened a long time ago!

I am just about to go (mostly) offline for summer holidays (time to recharge), so am not really in a position. Can I ask why you are looking into this issue?

Thanks,

Ross

Hi Ross,

I’m trying to get a better understanding of Gibbon’s code and I came across outdated libraries. I’m still researching to make Gibbon more responsive with Bootstrap, which requires rather up-to-date libraries and I thought it would be simple to upgrade all libraries incl. livevalidation. However, due to customizations you did to the original code of livevalidation, an update has odd side effects. The reconstructed livevalidation code is working perfectly so far, but I may be wrong.

Kind regards,
Roman