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: · css, detect, element, hidden, javascript, overflow, parent, scroll, scrollable, visible
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: · choose, Component, item, javascript, selector, YUI, yui3
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: · axis2, formatter, javascript, message, namespaces, service, xml