How to detect whether an element is in a scrollable parent

November 2nd, 2009 · No Comments

Just think of having an element in a scrollable parent (the CSS property overflow is set to scroll) and you want to test whether the element is visible or not.
Using this little function you can do the trick:

function isInView(node){
var offsetParent = node.offsetParent;
[...]

[Read more →]

Topics: · , , , , , , , , ,

Let the user select an item in a modal dialog

August 5th, 2009 · 1 Comment

After having used the shiny new YUI3 library for a project, it’s about time to share my YUI3 experiences with you.
For the project I built an item selector: A modal dialog is openend and the user has to select an item. After selection the dialog is closed and the selected item is passed to a [...]

[Read more →]

Topics: · , , , , , ,

Using Axis2 services from Javascript (by removing the XML namespaces)

January 27th, 2009 · 1 Comment

If you want to call an Axis2 service from Javascript you will face the problem that the XML response of an Axis2 service call contains XML namespaces – something Javascript doesn’t like in cross-browser-friendly way.
The idea to fix this issue is to make an XSLT transformation directly from Axis2 that removes the unnecessary namespaces.
First we [...]

[Read more →]

Topics: · , , , , , ,