Posts

Featured post

DropDown in particular column of a datatable jquery

Hi all , Good to be back after years. Technical Post :) This post is about how to bring up DropDown in a particular column of "dataTable()". Simple and understandable, U can just create an array to be listed out in drop down " dropvalues" and the option to be selection is u have to get it and loop it with the "dropvalues" and append it with option of select. "aoColumnDefs": [ { "fnRender": function ( oObj, sVal) {                     var dropval = oObj.aData[1];                     if(dropval != ' ')                     {                       var select = $("<select></select>", {                     "id": "drop"                     });                 for(var loop=0;loop<dropvalues.length;loop++){                         var values = dropvalues[loop];                     var option = $("<option></option>", {                        

Creating empty Rows in datatable jquery

Image
Hi all, This is about how we can create Empty rows in datable  irrespective of the rows returned from DB. I have done it in "fnDrawCallback". My logic is like i have to display 10 rows on Initial load. If DB returned 2 rows, i have to display the balance 8rows with empty values. Here it follows, Now steps to create datatable, After the whole table rendered. You can get the number of rows printed in table in " fnDrawCallback ". In this, am getting the total records and passing it to my function which create empty rows. As we are using (#tableid).datatable().fnData([]) , it will call the " fnDrawCallback" again and again si i have restricted it to run only one times using var itr=1; We can manually set " " values to be printed in table using  fnData([" "," "," "])   as you know how many columns you are printing in table, By using this simple way, we can creating rows with empty records

Creating a simple datable Jquery

Image
Hi all, Working in  JQuery is simple as that of javascript. It has a pulgin Datatable. Which we have many options while creating a table. Lets see how we can create a simple Datatable using JSON call. 1. You have to create a <table id=""></table>. 2.To that table id we have to append <thead> with <tr id="footerid"> ------------ </tr></thead> . 3. The ----- in the previous point to be filled with number of columns u are going to display in the datatable. It should be exactly same number of columns from the JSON result. 4.Lets create a datatable "(#tableid).datatable({})" . 5. In this we can do our functionalities. In this we have to mention how our datatable should be displayed. 6. If u need to pass any number of parameters, u have to mention in " fnServerParams ": function(aoData){             aoData.push({name: "chipName", value: chipName});         }, 7. If u wanna d

Share button may be sharing your browsing history, investigators discover

                 A new study by researchers at KU Leuven (University of Leuven, Belgium) and Princeton University has revealed a secret method by which websites track users without their consent using a previously undetected cookie-like tracking mechanism embedded in 'share' buttons. About one in 18 of the world's top 1,00,000 websites are breaching users' privacy through this. Using hidden codes, the mechanism gets important information about the user's browser type, graphics card, system fonts and even display properties, according to a statement by KU Leuven. Because this grouping of data is highly likely to be unique for each user, it can be reliably associated to individual users, like a fingerprint. This is called " canvas fingerprinting ". Once a website has determined a device's fingerprint, it can easily recognize the user on subsequent site visits, much in the same way cookies do. But while unwanted cookies can be flagged or blocked to

Your friend’s face can be your new password. :)

LONDON: A new authentication system that asks you to identify faces familiar to you could spell end of passwords. Decades of psychological research has found that humans can recognize familiar faces across a wide range of images, even when their image quality is poor. In contrast, recognition of unfamiliar faces is tied to a specific image — so much so that different photos of the same unfamiliar face are often thought to be different people.   The new system, called Facelock, exploits this psychological effect to create a new type of authentication system whose details are published in the journal PeerJ.  Familiarity with a particular face determines a person's ability to identify it across different photographs and as a result a set of faces that are known only to a single individual can be used to create a personalized 'lock'.  Access is then granted to anyone who demonstrates recognition of the faces across images, and denied to anyone who does not.  To register w

Bye street light: Now, a road in Netherlands that glows in dark

 Lights in the Netherlands. It is the first time "glowing lines" technology has been piloted on the road and can be seen on the N329 in Oss, approximately 100km south east of Amsterdam.  Designer and innovator Daan Roosegaarde teamed up with Dutch civil engineering firm Heijmans to develope A first glow-in-the-dark 'smart highway' spanning 500 metres has been developed to replace street d the technology. The glow-in-the-dark markings are made of paint that contains "photo-luminising" powder which charges up in the daytime and slowly releases a green glow at night, 'BBC News' reported.   Once the paint has absorbed daylight it can glow for up to eight hours in the dark, doing away with the need for street lights. The innovative technology will be officially launched later this month and if successful could trigger a mass switch-off of lighting across the country's road network, potentially saving the nation millions of Euros.  Heijmans said

Addition of two numbers using servlet,ajax call and displaying result in alert box

Hi all,         Today my post will be technical oriented.Its about Servlet and ajax.  First Step:       * Open the Eclipse IDE and create New->Dynamic Web project       * Go to WebContent->WEB-INF->web.xml. Paste the following code.             web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">   <display-name>FirstAjaxCall</display-name>   <welcome-file-list>     <welcome-file>ajaxserv.html</welcome-file>   </welcome-file-list>   <servlet>     <description></description>     <display-name>AjaxServlet</display-na