21
Feb/10
0

How to define a jQuery autocompleter callback function

I have spent a lot of time on creating a working callback function for the jQuery autocomplete plugin (http://docs.jquery.com/Plugins/Autocomplete).
Here is a working example:

24
Sep/09
0

The strange behaviour of php function basename()

On my local Windows machine with PHP5 the value of basename(’названиe.php’) is “названиe”, where “названиe” is any cyrillic string.
However, on my remote Unix server the same function with the same argument returns null.
Not only could I find no explanation – there isn’t even any mention of it anywhere on the Internet.

Tagged as:
24
Sep/09
0

XML selectNodes() ordered

Here is a helper function to select nodes from an XML document order by certain child node value of these nodes.
If selectNodes() is a pendant of MySQL SELECT command, this helper function would be a pendant of SELECT… ORDER BY…
As far I know there is no standart XML or XPath function to perform it.
Written in [...]

Tagged as: ,
27
Jul/09
0

SQL Select query with a predefined last entry

The task was to create a SELECT query on a table with titles grouped alphabetically by name, but a certain name must (if found) always stay at the end.
This is like the selecting of categories on ebay.com where the categories are arranged by name but the category “Other” must have the last place.
The solution [...]

Tagged as: