-
INDIP: add visual indicator to type ahead
that’s how it looks: field with type ahead waiting for input: field with type ahead thinking field with type ahead failure this is the XML code of the field for the events:<xp:eventHandler event=”onkeypress” submit=”false” id=”eventHandler2″> <xp:this.script><![CDATA[if (event.keyCode==9 || event.keyCode==13){ removeVisual(‘view:_id1:inputText3’) }else{ addVisual(‘view:_id1:inputText3’); }]]></xp:this.script></xp:eventHandler><xp:eventHandler event=”onblur” submit=”false” id=”eventHandler3″> <xp:this.script><![CDATA[removeVisual(‘view:_id1:inputText3’)]]></xp:this.script></xp:eventHandler> and this is the style assigned to the…
-
INDIP: how to figure out the id of an element which triggered an event!
here’s the scenario: We have what we call dynamic tables. It lets the user add as many rows as he requires. Really neat.In some of the fields we use type ahead. Recently I figured: it would be nice to see an indicator if the server is “thinking”… something like I could do it easily via…
-
INDIP: beware of the document.copytoDatabase method!
We had to merge two applications, so I created a background agent which copied all required documents to the “new” database. The customer tested and we set a due date for the real migration.The night before actual migration I run an agent which deleted all “test” migration documents before the real agent to copy the…