Java Frameworks

Read Word document using Apache POI (Java)

Author - Sahil Bhalla
|
0 Comments
|

Read Word document using Apache POI (Java) :

To read any document (.doc or .docx) or excel document in java, there are several libraries but Apache POI is pretty good. Using this library we can read word documents line by line.

Required Jar files:

Poi.jar
Poi Read more…

Java | Stripe – Handling expired credit cards

Author - Rita
|
0 Comments
|

Description:
We are registering our customers using Stripe payment gateway where we are storing customer card details. We are doing recurring payment for customers periodic billing cycle. But if customer’s card expires or card number changes, we will not get any information about that and our billing cycle will Read more…

HTML | Print preview a specific div only

Author - Ashish
|
0 Comments
|

How to view the print preview of a specific div of the page and take a printout of that specific div only?

1.First, create a full-screen modal on the page:
<div class=”modal fade” id=”myModal”>
<div class=”modal-content”>
<div Read more…

Compare Passwords in HTML5 form validation using Jquery

Author - Ishpreet Kaur

In one of our projects, requirement was to compare two password values using HTML5 form validation (display the message in the same format as regular HTML5 messages are displayed).

Let us assume that we have a HTML5 form for change password screen:
<form action=”Controller/User.php”
<div Read more…

JavaScript and Jquery Best Practices

Author - Webner
|
0 Comments
|

1. Place Scripts at the Bottom of the Page: If we include script at the top, sometime page elements are not loaded completely and script starts working. So we need to include scripts after loading all the elements. Also if scripts are loaded at the top, browser has Read more…

Salesforce | Upload Document in Salesforce using javascript

Author - Navdeep Kaur

We can create a document/attachment object record in Salesforce using Javascript by calling Salesforce soap webservice.

Note – Variable __sfdcSessionId is used to store sessionid.

Script files:

<script type=”text/javascript”>// <![CDATA[
__sfdcSessionId = ‘{!$Api.Session_Id}’;
// ]]></script>
<script src=”/soap/ajax/30.0/connection Read more…

Handling twitter and google plus share button in wordpress

Author - Harleen Kaur

Handling content and image sharing with twitter and google plus share buttons in wordpress

To achieve dynamic content(including image) sharing from a website with share buttons (or links) for share and likes on social sites like twitter and google plus, wordpress requires somewhat more specific functions while creating plugin Read more…

Software Testing | Identifying bugs in different ways

Author - Webner
|
0 Comments
|

In software testing, we have various way to identify the bug/defect. Some of them are as given below:

1. Severity Wise:

* Major: When defect affects major functionality. Example: Suppose a Logo text is not Proper that will be affect the company work.
* Minor: When defect Read more…

Using Google reCaptcha to authenticate user login on login form

Author - Richa

Google reCaptcha is a free service API provided by Google to protect your site from unauthorized access, abuses and spam. The API uses advanced risk analysis technique to distinguish among a human being and a bot. The reCaptcha API comes in the form of a widget and it can be Read more…

Some Important new features in html5

Author - Neelam
|
0 Comments
|

Semantic tags in HTML 5: Semantic tag introduces meaning to the web page rather than just presentation. like and tags are not semantic tags because these are just used for content presentation in the browser.

These are list of semantic tags:

// we should use this tag Read more…

Jquery : Filter array by applying AND & OR logic on checkboxes

Author - Kritika Sood

In one of our projects we have multiple groups of checkboxes and corresponding divs with id as checkbox label. Now we want our checkboxes to perform AND and OR logic .

For Example:

<html>
<div id=”_Java_less than 1500_Basic_Dennis Ritchie” class=”6″ style=”display:none;”&gt Read more…

Salesforce: Call Apex Class on Click of Custom Button

Author - Navdeep Kaur
|
0 Comments
|

1. Create apex class that you want to call (it should be declared global):
Global class Test
{
Webservice static void testMethod()
{
//do something.
}
}
Note: Webservice method must be static:

Global class Test
{
Webservice static void testMethod(String IDD)
{
//do something.
}
}
2. Goto–>Setup–&gt Read more…

Java Spring | Verifying against WhiteList IP Addresses (spring 4.0.4)

Author - Rita
|
0 Comments
|

While designing RESTful web services in a Spring-based web application, we may have a requirement that some web services should be allowed to run only from specific IP addresses. Spring framework provides a simple procedure to verify if the incoming IP address in available in the whiteList Address list Read more…

What is Ajax? How to send the request using different Jquery methods?

Author - Webner

What is Ajax? How to send the request using different Jquery methods?
Ajax: Ajax stands for Asynchronous JavaScript and XML. Ajax is a technique for creating fast and dynamic web pages. Ajax allows web pages to be updated asynchronously by exchanging small amounts of data with the server Read more…

An example of Ajax to display dyanamic images and text on webpage

Author - Komal

Whenever the situation occurs to rerender the page contents without reloading the whole page, we use ajax in it. By using ajax we get the response data back in the success function which we will show on the screen. Let’s have a look:

Screenshot 1

In the above screenshot Read more…

Java | Achieving Immutability using Final keyword

Author - Rita
|
0 Comments
|

Problem: What is the difference between using the final keyword with a primitive versus an object? What is immutability and can final assure that?

Final: Final is a keyword in java which is used to make variable, methods, classes immutable. It means we can’t change Read more…

How to use Random Emails while testing Registration forms

Author - Webner
|
0 Comments
|

While testing Registration form, the best way is to use automation script rather than manual testing which is time consuming. Automated script helps to get better results in shorter time. Like we can generate random users with the script and test the form with multiple hits at the same time Read more…

Correct way to post a form in cakephp 2.* with client side validation in JavaScript

Author - Kailash
|
0 Comments
|

If we follow cakephp rules to create a form then we can use cakephp inbuilt functionality like we don’t need to assign labels to form fields. Cakephp automatically creates a label for each form field also in case of update/insert validation error messages, the message is automatically shown Read more…

Overview of DevExtreme components

Author - Neelam
|
0 Comments
|

DevExtreme is a commercial application framework created by DevExpress. DevExtreme framework uses html5 and javascript code and targets today’s most popular smartphones and tablet devices. Devextreme supports both mobile application and web application.

In devextreme there are three flavors of the core functionality that we can use in our Read more…

Anonymous Inner Classes in Java

Author - Richa
|
0 Comments
|

Using Anonymous Inner Classes in Java:

Before getting into the depth of Anonymous inner classes, let’s understand a bit about inner classes first. As the name implies, a class which is declared and defined inside another class just like a normal member function or variable is called Read more…

1 2 3 4 5 6 7 8 Next page ›
Send your message