Logo

jQuery UI Multiselect

about 1 year ago | Niranjan Sarade: InLoveWithNature

There was one requirement of selecting multiple values for an attribute in my project and I was searching for some fancy but simple to use multiselect UI widget which will allow the user to select/drag drop multiple values from the panel of available items to the panel of selected items.

I found jQuery UI Multiselect and was able to use that in my project within a very short time. It is really easy to use and provides some good features like :-

- Search within available options
- Displaying count of selected and available items
- Select All / Deselect All links
- Dragging items from the available list to the selected list directly

You can configure the multiselect widget with options like sortable, searchable, dividerLocation for the panel width division, etc.

I personally liked the look and feel and the functionality of this ui widget !

The hierarchy of website user needs

over 1 year ago | Lalita Chandel: My View




1. Accessibility: The website can be found and used by all people.
2. Stability: The website is consistent and trustworthy.
3. Usability: The website is user-friendly.
4. Reliability: The website is consistently available, without downtime.
5. Functionality: The website offers content, tools and services users value.
6. Flexibility: The website adapts to needs and wants of users.

Adding callback to an inline editable input field with jEditable plugin of jQuery

over 1 year ago | Gourav Tiwari: easy_software = Agile.find(ruby_on_rails)

In my previous post I talked about adding size and stylesheets to an inline editable field with jEditable.
I have this div:

<div >
  <div class="mouseover"> Title </div>
  <div class="help_text"> (Click on the Title to edit) </div>
</div >

I had to add some text next to this field which says "click to edit". When a user clicks on it , I wanted to add a callback function to this field, so that when I click on it title comes in input tag as inline editable and the text in next div (Clieck on the Title to edit) should go away. I found that you can use callback here just like in any ajax call.

Here is what I did:

$(".mouseover").editable('<custom url>', {
      indicator : '<custom image path>',
        onblur    : "submit",
        placeholder : "click here to edit",
        type      : "custom_input",
        callback  : function(data, settings){
          $(this).siblings(".help_text").text("(Click on the label to edit)");
        }
    });
(posting it ... so that someone else should not spend time in figuring out :)

Why is TM1 in limelight?

over 1 year ago | Abhishek Dharga: Learning and sharing

Only product in market that can be used for “OLAP Analysis” & “Planning” using “Multiple cubes” stored “in-Memory” .
Earlier, TM1 was available in 32bit technology. Limitation is 2 GB RAM. Targeted at solutions having limited data.
With introduction of 64 bit Technology, the available RAM is upto 1TB. This enabled TM1 to target solutions that handle large amount of data.
Sparcity removing algorithm.
Post Cognos Acquisition, TM1 is on long term road map of IBM.

Adding size to input field with jEditable plugin of jQuery

over 1 year ago | Gourav Tiwari: easy_software = Agile.find(ruby_on_rails)

I am using jEditable a jQuery plug-in and is is really cool for inline editing. I stuck when I had to add size(say 50 characters) field and css  for an input field which is inline editable.

Then, I extended jeditable and added my own input type with size and class attributes:
In anything.js:
$(document).ready(function(){
    jQuery.editable.addInputType('custom_input', {
    element : function(settings, original) {
                    var input = $('<input size=50 class="input_inline"/>');
                    if (settings.width  != 'none') { input.attr('width', settings.width);  }
                    if (settings.height != 'none') { input.attr('height', settings.height); }
                    /* https://bugzilla.mozilla.org/show_bug.cgi?id=236791 */
                    //input[0].setAttribute('autocomplete','off');
                    input.attr('autocomplete','off');
                    $(this).append(input);
                    return(input);
                }
    });
});

$(".mouseover").editable('<custom url>', {
      indicator : '<custom image path>',
        onblur    : "submit",
        placeholder : "click here to edit",
        type      : "custom_input"
    });
In any.html:
<div class="mouseover"></div>
so all div with mouseover class will become inline editable.

Veterans Day Blog at Hospira

over 1 year ago | Michael Idinopulos: Transparent Office

Usually I use this space to advocate use of social software "in the flow" of work. I write a lot about business processes, workflows, incentives, and IT integration. Today I want to talk about something completely different. Yesterday, medical devices...

How is UX profession different from a BA role, though both work to bridge the gap between IT and Buisness ?

over 1 year ago | Lalita Chandel: My View

What does it mean to be designing "User Experience" and looking through the lens of the user ?
Do BA's think differently from UX engineers ?
.
.
.
.
Like this, I had several questions in my mind related to UX and BA profession and the technique they use to tackle real time business problems.

Came across this interesting interview article between Laura Brandenburg ( Independent BA consultant ) and Patrick Quattlebaum (Chief Experience Officer at Macquarium ) and yes, It did answer many of my questions.

http://www.bridging-the-gap.com/what-a-ba-should-know-about-the-ux-profession-interview-with-patrick-quattlebaum/

De-coded regular expressions in oracle

over 1 year ago | Lalita Chandel: My View

http://www.sqlsnippets.com/en/topic-12818.html

26.2 steps to shedding your doubts

over 1 year ago | Jen Ji: Why do i do what i do?

I went to the expo today to pick up my bib and goody bag for the marathon and and there is a huge clever poster, we shall examine it now:

Mile: (Turn by turn direction, my favorite highlighted in green)
1 - Start running
2 - Keep running
3 - Don’t worry, the race isn’t all bridges
4 - Don’t look at your watch
5 - Keep the faith
6 - Hydrate
7 - Remember, you paid good money to run
8 - enjoy the Bishop Laughlin Band
9 - Find a running partner
10 - Make sure your partner isn’t an elite runner
11- Savor the downhill leg
12- Don’t eat blintzes while you run
13 - You’re halfway home, woohoo!
14 - Pace yourself
15 - Enjoy the Manhattan skyline
16 - Feed off the raucous crowd
17 - Ignore your aching legs
18 - Watch out for banana peels
19 - Don’t stop for pizza
20 - Stop thinking about pizza
21 - Imagine all the calories you’ve burned
22 - Don’t window shop
23 - Visualize the finish line
24 - Take in the Central Park scenery
25- Listen to the cheers from the finish line
26.2 - Stop running, you did it!

Learning and sharing: CAFE (Cognos Analysis for Excel) Basic

over 1 year ago | Abhishek Dharga: Learning and sharing

Learning and sharing: CAFE (Cognos Analysis for Excel) Basic: "Just wanted to share a video about the integration of Cognos8 with Excel."

It's Diwali Time folks ! Happy Diwali

over 1 year ago | Yashashree Barve: Life is Beautiful !!

Diwali is just around the corner, its actually nearer than that :) and it really really excites me. Have lots of plans this time, as its a 3 day holiday. So lots of rangoli, crackers, sweets, cooking, lighting, new dresses, diya, lanterns. It all really fills so many colours in life. Kids are also excited and spending a lot of time in making diwali greetings for their cousins / friends, and trying their hands at rangoli too.

India is really big on festivals, and Diwali is undoubtedly the Queen. People splurge on things that they would not otherwise, irrespective of how much they earn. It gives a zing to the routine boring life.
I have been finding out and telling stories about why we celebrate diwali to kids. So all stories of Narakasura, Laxmi's birthday, Bali-Vaman, Bhaubeej, Ram returning home from Lanka, Pandav returning from their exile, and what not. So many reasons to celebrate, isnt it?



I love the light and colours of diwali, and the enthusiasm that's filled in the air. Mumbai looks fascinating with the lights specially during Diwali. It hides all the dark side of it, and illuminates the hope of this dream city. I wish everyone a wonderful diwali, and pray that it fills everyone's life with joy that lasts forever, every diwali only adding to it every year. Enjoy !

The Oscar Wilde Collection

over 1 year ago | Niranjan Sarade: InLoveWithNature

Here is a link to the collection of Oscar Wilde's stories, poems and plays.

http://www.oscarwildecollection.com/

'The Picture of Dorian Gray' is the best I think.

Enjoy reading !

Give style to your MS Excel sheets in Ruby

over 1 year ago | Gourav Tiwari: easy_software = Agile.find(ruby_on_rails)

I recently got a requirement to generate MS Excel workbook with different worksheets in Ruby on Rails. Also, I had to give style to the column headers, set background color for table of content and make columns justified.

I came across http://rubyonwindows.blogspot.com and spreadsheet links which are very helpful if you want to try anything with MS Excel in Ruby.

I installed spreadsheet gem (sudo gem install spreadsheet), but giving styles did not seem very straightforward
    So, I thought of giving it a shot. Let's first try to create a workbook with three worksheets.

    workbook = Spreadsheet::Workbook.new
    worksheet_for_books = workbook.create_worksheet(:name => "Books")
    worksheet_for_stationaries = workbook.create_worksheet(:name => "Stationary")
    worksheet_for_laptops = workbook.create_worksheet(:name => "Laptops")

    Now, set headers in all worksheets:
    for worksheet in workbook.worksheets
      row = 0
      (0..2).each do |column|
        worksheet[row, column] = "Name_#{column}"
      end
    end

    In the above code snippet, you might have noted that:

    • Iterating over worksheet is very simple, just like array.
    • Setting value to a cell is very simple, just worksheet[row, column] = value
    Now let's make the column headers bold and justified:
    format_header = Spreadsheet::Format.new(:weight => :bold, :align => :justify)
    for worksheet in workbook.worksheets
      (0..4).each do |column|
        worksheet.row(0).set_format(column, format_header)
      end
    end


    Now let's try to add background color 'yellow' to these headers:

    format_header = Spreadsheet::Format.new(:weight => :bold, :align => :justify, :pattern_fg_color => :yellow)
    for worksheet in workbook.worksheets
      (0..4).each do |column|
        worksheet.row(0).set_format(column, format_header)
      end
    end

    It didn't work! why? no it's not because we have added :pattern_fg_color , you might be thinking :pattern_bg_color is for background, but this is wrong, this is what I found in the references.
    "Use :pattern_fg_color to set background of a cell"
    Anyways, even this option didn't work for me. I couldn't understand why. But I found a work around(reference) and here is the enhanced version:

    Create color_format class and put it in a library

    class ColorFormat < Spreadsheet::Format
       def initialize(opts)
         super opts
       end
    end

    And our code will look like:
    require "color_format"
    format_header = ColorFormat.new(:weight => :bold, :align => :justify, :pattern_fg_color => :yellow, :pattern => 1)
    for worksheet in workbook.worksheets
      (0..4).each do |column|
        worksheet.row(0).set_format(column, format_header)
      end
    end

    And that's it!