-
Check and Submit a Form with Method Function Chaining in Javascript
The other day I was using jQuery chained methods and realized that I had no idea how or why this works. I figure it would be very nice if I could create my own for checking required fields and submitting a form. For sake of simplicity I am using jQuery in some parts of this example but…
-
One-to-Many Count Parent’s Children in mySQL
So I have two tables. The first one contains a list of images that belong to a job, the second one contains all the different properties of each image. Parent Table(t1) fileName jobID file1.jpg job01 file2.jpg job01 Child Table(t2) fileName jobID OptionName Value file1.jpg job01 contrast SomeValue file1.jpg job01 saturation SomeValue There can be zero…
-
DoEvents() in WPF
DoEvents() allows the UI to refresh while your perform a long lasting action, like parsing over a lot of files. In the windows forms you can just call DoEvents() from inside your blocking structure but in WPF this is not available, at least not by default. To get DoEvents() in WPF we first need to add…
-
Bypassing Ajax Caching When Using MooTools in Joomla
I was working on some Ajax on a project and while debugging I noticed that my responses where exactly the same. Now, I know cashing is important to improve efficiency but in my situation I was using Ajax because I wanted Live responses from my webservice. At first, I thought it was my code but soon realized that…
-
Sorting with jQuery and Saving The New Order
I was building a form the other day and was adding items dynamically. I wanted to be able to drag and sort my items as I was building the form. Now, all this is very easy to do with jQuery but my problem was that I needed my item id’s to be persistent. I needed a…
-
A few KPL text tools
String manipulation is one of the most common things to do in a programming language, so it is to no surprise that KPL offers many tools for doing what you want. I will try to show you and explain some of it most useful tools. String Comparison The most common task that I can think…
-
Web Colors Previewer v2.0
Well, the old tool didn’t have many features, the new one displays rows of colors with different characteristics from the original. click on the image and enjoy!
-
KPL Variables
KPL variables resemble PHP variables in the sense that they are loosely typed and don’t have to be declared. For those new to programming, this means that you don’t have to declare that the variable is an integer or a text string. Naming Variable names must start with an alphabetic character followed by any alpha-numeric…
-
Making WPF CheckBox and RadioButton display correctly in Windows classic theme
When developing a wpf app for work I ran into a display problem for the CheckBox and RadioButton. Most of our office computers still use windows XP with the classic theme and even the new Windows 7 computers are set to use the classic theme as well. Originally, I wrote my RadioButton and CheckBox like…
-
cmds files in DP2 – creating a simple order
If you want to get your feet wet with KPL, cmds files are the easiest way to get started. Cmds stands for commands, there are many uses for these files but the most important in my opinion is the import of photo orders from other applications. To be able to use cmds files we first…