Selenium Webdriver | Locating elements

Author - Webner

Selenium Webdriver lets us locate elements in a web page in many different ways. Some of them are:

By id: If the HTML element to be located has a unique id one can use this id to locate the element in the code. Java statement for this will Read more…

How to add combobox in editable datagrid using jQuery EasyUI

Author - Webner

Following is the code to add Combobox in editable data grid:

<table id=”dg” title=” Combobox in editable datagrid ” style=”width:100%;height:700px”
toolbar=”#toolbar” pagination=”true” rownumbers=”true” fitColumns=”false” singleSelect=”true” autoSave=”true” data-options=”pageSize:50″>
&lt Read more…

JQuery | Change background color on hover

Author - Webner

Suppose on an HTML page we have a list of menu items as shown in the image on the left below (Customers, Projects, Invoices etc) and on hover over these menu items we need to change the background color to green, like shown in 2nd image:

This is the sample Read more…

3 special features of jQuery

Author - Richa

1. Fetching coordinates of current location of the mouse:

Below is the code to retrieve the coordinates of the mouse at any position on the webpage and display inside a div with id getCoords:
$(‘#getCoords Read more…

Background colors of CSS shapes not showing with window.print()

Author - Kritika Sood

In one of our projects we are working on, we were trying to print a page using Javascript window.print() method. Strangely the page was not showing the colors of various CSS shapes like rectangle, circle etc when print preview was shown. It was working when viewed on browser.

The Read more…

PHP | Adding text over an image

Author - Richa

In order to add text over an image, following PHP code can be used. Read the comments to understand purpose of code statements:

header (“Content-type: image/jpeg”); //setting the content type

//variable containing the string to be written on the image
$txt = “Here goes the text to Read more…

Salesforce | document.getElementById(‘id’).value not working for apex:outputtext

Author - Webner

If you have an apex:outputtext and you try to get its value in Javascript using document.getElementById(‘id of outputtext’).value(), that won’t work. The reason is apex:outputtext is translated to HTML SPAN element.


<apex:outputtext value=”Amount” id=”amntId”/>


<span id Read more…

PHP | better way to include a file

Author - Kiran Preet

Have a look at this folder structure:


Now in Abc.php file, try to include Qwerty.php using the following code:
It will give this error:

Fatal error: Failed opening required Read more…

PHP | How to install CakePHP 3.0

Author - Deepika

These are the steps to install CakePHP 3.0 on Ubuntu machine:

Make sure you have PHP 5.5.9 (CLI) or higher installed. Check php version on your system using this command:

php -v

Run the following commands:

1. Download the composer installer in your Read more…

Totara | Hide Administration block

Author - Neha Mishra

1. Turn editing On and click on the settings icon of the administration block as shown below:

2. Click on configure Administration link. This screen will open:

3. Change the drop-down value from “Assessment information page” to “ Edit Assessment page” so that only admin users could see this block Read more…

HTML | Using CSS for animation

Author - Webner

With recent evolution in CSS, we can try animations. Below is a sample code where in which have used latest CSS features and will give the illusion of animation. Just copy paste the code below in an HTM file and and view it in browser.


&lt Read more…

Get Salesforce SObject name through Salesforce Record Id

Author - Webner

Description: We have Salesforce recordId but need to identify what is the type of Subject corresponding to this record id.

Solution: We can get Sobject name from recordId with getSobjectType() function, sample code below:

Apex Code:
public void echoSObjectName(String RecID) {
objName = RecID.getSobjectType Read more…

Locating recycle bin in Salesforce

Author - Webner

Click on any of the tabs and find Recycle bin at the left bottom as shown in this image:


You can use this URL into the salesforce to see Recycle bin: more…

jQuery | Get and change link using near by class or Id value

Author - Webner

In one of our projects we are working on, we faced a problem where we wanted to change the HREF attribute value of anchor tag using jQuery. When we inspected the HTML code no unique id, name or class was given to < a href > element.

So how to Read more…

Introduction to Heroku

Author - Webner

Heroku is an all-in-one cloud based platform which allows software developers to develop and host applications over Heroku cloud. The company was setup in June 2007 which initially supported Ruby programming language. Later on, support for other programming languages such as Node.js, Java, PHP, Python, Scala, Go Read more…

Transition Delay Property in CSS and Javascript

Author - Ishpreet Kaur

What is Transition Delay?

Transition delay specifies the amount of time for the change to take place in css properties of DOM elements. Transition Delay value is defined in seconds (s) or milliseconds(ms).

How to implement Transition Delay in CSS Read more…

Localhost WordPress site asking for FTP credentials on installing new plugin

Author - Neelam

In one of the WordPress projects we are working on, whenever we tried to install a new plugin in locally installed WordPress, it asked for FTP credentials:

When we tried to install a new theme then also it asked for the same:

Actually, the problem was Apache web server was Read more…

What is in Bootstrap apart from grid system? Why it has a Javascript file also?

Author - Neelam

Bootstrap has lots of other things apart from grid system such as:

1. Glyphicons: Bootstrap has inbuilt icons which we can use by icon’s class name.

For Example: “glyphicon-search” will create search icon without using any external image. So Read more…

Salesforce | How to prevent double click on Apex button

Author - Webner

How to avoid double click on Apex button in Salesforce (after click disable button and enable again once action is complete)?

This is the code having the solution (explained below):
<apex:actionStatus id=”saveStatus”>
<apex:facet name=”stop”>
<apex:commandButton value=”Go” action=”{!go}” status Read more…

How to send iCal attachment in the email

Author - Kailash

Suppose you are sending an email in PHP and want to send iCal attachment. In PHP this can be achieved as below:

1. Create iCal file content and put in a variable (like $iCal here):

X Read more…

‹ Prev page1 ... 29 30 31 32 33 34 35 36 37 38 39 ... 51 Next page ›