Hans Rasmussen

info@hansrasmussen.com, +46 (0)760480046

Validation with jQuery validator plugin

Reference
http://docs.jquery.com/Plugins/Validation/
 
Setup
A reference to jQuery validator plugin
<script type=”text/javascript” src=”http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.js”></script>
 
A reference to jQuery
<script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js”></script>
 
Configuration – simple on class and attribute level
It is possible to declare your validation rules in various ways. It is suggested primarily to try it on class and attribute level and secondary using dependency-callback.
 
Example class and attribute rules:
<input id=”cemail” name=”email” size=”25″ class=”required email” [...]

Windows Live Writer with WordPress

Windows Live Writer with WordPress

I use WordPress as a blogging tool. Instead of logging into the administration system I can easily create my blog entries in a desktop program and publish my entry if XML-RPC and Atom Publishing Protocol settings are enabled in your WordPress blog (Settings –> Writing)
I use Windows Live Writer and my blog is in [...]

MS SQL Server – Principal “username” is not able to access the database “db” under the current security context

Error:
The server principal “username” is not able to access the database “dbname” under the current security context.
.Net SqlClient Data Provider in SQL Server Management Studio.
Reason:
This is because the MS SQL Server is attempting to execute a T-SQL query to retrieve a list of databases along with additional information about those databases. One of those pieces [...]

Sabang Bay / Puerto Galera / Philippines

I have some friends in Philippines, that have a great diving center. Björn and Alice are their names and can be reached at http://www.abwonderdive.com. They have posted this video on YouTube that shows off a bit what can be seen. Unfortunately our own pictures were not that great, I don’t even recall which underwater camera [...]

Vacation South Africa, Mocambique, Swaziland

Vacation South Africa, Mocambique, Swaziland

December 27, 2009 – January 13, 2010 I was on a fantastic trip to South Africa, Mocambique and Swaziland. A total of 3000 km was spent driving to the different destinations (you should see them pinned in one of the images that represents the map). The wildlife is amazing and the people are superfriendly. I’d like to share [...]

E4tRlaMr987VZ112