In case you have not realised, HR.Net is using jQuery for some of it’s functionality on screens.
So power of jQuery is at your mercy when you write the Custom Scripts for the screens.
Shame that the version of jQuery is heavily outdated: current release (today is 6 Nov 2012) is 1.8.2, but HR.Net uses version 1.2.6 which was released on May 24th, 2008. More than 4 year old technology.

Anyway, enough slagging off guys from Vizual, I’m sure they are not fond of their technical debt they already have…

What I was going to say that AJAX calls did exist in jQuery even in 2008. So I don’t see a reason why not use that on your HR.Net screens.
For example one of the usages I have found is validation of new records against database even before they go into the database.
The script I’m looking at just now is validating new Maternity record against all the existing Absence records:

function sendRequest(){
		type: "GET",
		url: "/hrnetsupport/MaternityValidator.php",
		data: { person_id: "EF831A66-CC57-45F5-8435-001BF5E77DA3", startdate: "01/01/2001", enddate: "01/05/2002" },
		dataType: "json",
		error: function(data) { 
			alert("Some server error. Please report to your system administrator: " + data.message); },
		success: function(data) {
			if (data.success !== true) {

I’m sure that does not make sense to you and looks like garbage. I’m sure it is. I’ve just quickly scratched that in a notepad, did not check if that works. But if you know what jQuery is, then you’ve got the idea. I hope I don’t need to tell you, that you need to provide infrastructure and logic for MaternityValidator.php as well. (PHP is not essential, any other server side language can do the work)
If you don’t know jQuery, but need some complex data validation, it is worth investing your time in studying jQuery and AJAX.
Or you can hire me to script up the validations for you -))

This entry was posted in Uncategorized and tagged , , , . Bookmark the permalink.

7 Responses to jQuery

Leave a Reply

Your email address will not be published.