Showing posts with label javascript. Show all posts
Showing posts with label javascript. Show all posts

Impromptu extension updated

Recently the jQuery Impromptu developer Trent Richardson released new 4th version of this plugin.

New version add's advanced event handling, more about it at Trent's blog:
http://trentrichardson.com/2012/03/05/impromptu-4-0-is-more-eventful/

But there is still lack of possibility to use enter key inside prompt's form - it is blocked by default.
So I updated my extension which add this functionality and now it is compatible with jQuery Impromptu 4.x versions.

More here:
http://dobiatowski.blogspot.com/p/impromptu-extension.html

Great solution for text-overflow: ellipsis problems

I have just created page about my new project on GitHub. It's called FastEllipsis.

There was many approaches of how to nicely fit certain amount of text inside fixed-size HTML blocks. For example when it comes to show a list of short descriptions often your layout want to have exactly 300px width and maximum 3 lines of text per description. I made one more JavaScript solution for that problem.

For more go the the text-overflow: ellipsis - Extremely fast implementation in JavaScript

Bug in jQuery 1.4.2 toggle() function

jQuery toggle() function don't affect elements hidden by thier parent object.

Background of the problem

In latest project i have build classical order form with fields divided into two groups:
  • payment user data
  • postal user data

Very often postal data are the same like payment so like every other page do i made button "Postal same as payment data". I used jQuery toggle() function to toggle unnecessary inputs. But the problem came when I crossed this functionality with "user or company" option which was toggling some of the company related fields.