Posts

Showing posts with the label javascript

Adding Animation to the AutoCompleteExtender

Image
Image via Wikipedia After reading numerous articles relating to the AutoCompleteExtender, I was able to use CSS to set the overflow property of the ul that comprises the drop-down selector to get the browser to render a vertical scroll bar , making it easier to look through a long list. My struggle was to get the list to shrink backup up after the item was selected and not sit on top of other elements below. I tried using javascript on the OnClientItemSelected event of the extender to set the ul to a low zIndex, but this only partially succeeded since the ul would never produce an event I could find to bring it back to the top of all elements on subsequent picks. I also tried setting the height on the fly, but only ended up with the same thing as before, no event to expand it back out again. Then I found a couple of clues on the internet that pointed to using the Animations XML beyond what I was using it for, which was simply to add 'glitz' to the picker. ...

shBrushBatch for Google SyntaxHighlighter

I really like highlighting my code in this blog. Ever since finding the Google SyntaxHighlighter Widget at FaziBear's , I've been going through all my old code, and cleaning up my posts. I read a nice article at WaltCo Tech about extending it to incorporate other brushes for WordPress. He also seems to do what I do, but a bit better when it comes to explaining things: WriteItDownNowBeforeYouForgetHowYouDidThatOldMan I'm really not that old, but I do tend to stick my fingers in many things, and coding tends to be one of them. At times, I'll find myself trying in vain to use a function from VB in PHP, or something of that nature. One of the hazards of not being fluent maybe? In any case, I've created my own brush for DOS Batch scripts: dp.sh.Brushes.Batch = function() { var builtins = 'APPEND ATTRIB CD CHDIR CHKDSK CHOICE CLS COPY DEL ERASE DELTREE ' + 'DIR EXIT FC COMP FDISK FIND FORMAT FSUTIL HELP JOIN ' + ...