May 21, 2016

Bootstrap : Prevent or disable Modal pop up disappearing while outside click or pressing escape

Problem : I am working with Bootstrap Modal to display pop up window but whenever i click outside the modal or press escape button it goes disappear but i want to manually close it by clicking close button on modal pop up. Solution : To disable on click set backdrop option as static and to prevent...

May 3, 2016

Flush DNS cache - solved server not found Error

If you know that your internet is working fine and still you are facing this error on visiting website's URL. Then below given solution can solve your problem. Problem : Server not found Firefox can't find the server at www.blogger.com. Check the address for typing errors such as ww.example.com...

April 23, 2016

Disable or enable input field using jQuery and JavaScript

JavaScript : We can disable or enable an input box by setting property true or false respectively by using below code. Code of input box Name: <input type="text" id="myName"> To Disable input box. document.getElementById("myName").disabled = true; To Enable input box. document.getElementById("myName").disabled = false; jQuery : If you are using jQuery 1.6+ then you should use the .prop()...

April 17, 2016

JavaEE : oracle.jdbc.OracleTypes for CallableStatement.registerOutParameter with SYS_REFCURSOR

This is a procedure which has one out parameter of SYS_REFCURSOR type. PROCEDURE p_get_data(query_result OUT SYS_REFCURSOR); In java for working out with this procedure you need to import ojdbc14.jar and need to set registerOutParameter type as OracleTypes.CURSOR import oracle.jdbc.driver.OracleTypes; CallableStatement callStmt = connection.prepareCall("{call p_get_data(?)}"); callStmt.registerOutParameter(1,...

April 2, 2016

March 28, 2016

Convert java.util.Date > java.sql.Date > java.sql.Timestamp > java.text.SimpleDateFormat

java.util.Date : The class Date represents a specific instant in time, with millisecond precision. Code : java.util.Date dtUtil = new java.util.Date(); System.out.println(dtUtil); Output : Mon Mar 28 21:35:05 IST 2016 java.sql.Date : A thin wrapper around a millisecond value that allows JDBC to identify this as an SQL DATE value. A milliseconds value represents the number of milliseconds...

March 20, 2016

Jquery : Show label value on alert and browser console

Here, we are working with label, button and pop up message box where we are showing label value in message box on same page on submit button click using jquery. index.jsp console.log displays value(s) on browser console (Press F12 on browser then click on console tab to see console.log output) and...

March 13, 2016

Charge your smartphone while your laptop lid is closed/off

Many-times I have to charge my mobile with my laptop but i can not down my laptop's lid because of phone charging goes off. But Now i can charge my mobile even by closing my laptop lid with a small change in Device Manager Setting. Important : This will only work  when your laptop is charging...

Disclaimer

We shall not be liable for the improper or incomplete transmission of the information contained in this communication nor for any delay in its response or damage to your system. We do not guarantee that the integrity or security of this communication has been maintained or that this communication is free of viruses, interceptions or interferences. Anyone communicating with us by email accepts the risks involved and their consequences. We accept no liability for any damage caused by any virus transmitted by this site.