Posts

How to make Grid text selectable in DHTMLX ?

Just adding this to Grid configuration worked! grid.entBox.onselectstart = function(){ return true; }; Reference : http://forum.dhtmlx.com/viewtopic.php?f=2&t=18963

How to make https GET request with Basic Auth in Ruby

DHTMLX Grid - Load data from server with Pagination

These codes will help for Dynamic loading of data with Pagination in DHTML Grid 

Adding a pointer border to a div using CSS3

Image
Adding a pointer border to a div using CSS3

Making Will Paginate Ajax + Rails 3

1. Create a helper file : app / helpers / remote_link_pagination_helper.rb module RemoteLinkPaginationHelper   class LinkRenderer < WillPaginate::ActionView::LinkRenderer     def link(text, target, attributes = {})       attributes['data-remote'] = true       super     end   end end 2. In the View File where pagination links come, add this line. (@people is the array to paginate) will_paginate @people, :renderer => 'RemoteLinkPaginationHelper::LinkRenderer' Now the links must work with Ajax

Making a http/https post request under a proxy

Here is my post on how to make a https call. http://srikanthjeeva.blogspot.in/2010/06/making-httphttps-post-request.html Spent a long time in figuring out how to send a https request under a proxy Here is how it is, require 'net/http' require 'net/https' require 'uri' uri  = URI('https://IP/api/V1/USERS') proxy_class = Net::HTTP::Proxy(PROXY_ADDRESS, PROXY_PORT, USERNAME, PASSWORD) proxy_class.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https', :verify_mode => OpenSSL::SSL::VERIFY_NONE) { |http|   request = Net::HTTP::Get.new uri.request_uri   response = http.request request   puts response.body } Hope this helps. Thanks!
Image
Ruby Conference Pune, India - March 24, 25 - 2012