Bootstrap | How to show Caret symbol on hover event

written by : Rita Sharma(Software Consultant)
September 27, 2016
|
0 Comments
|

How to show Caret symbol on hover event in Bootstrap navigation bar as shown in the figure below:

Solution :

We created a bootstrap navigation bar with ul and li tags. One of the li element within the ul for reference is given below:

<ul class=”row nav navbar-nav Read more…

How to access javascript array in php on submit

written by : Kritika Sood(Software Engineer)
|
0 Comments
|

Suppose you have a Javascript array and want to send it to the server side on page submit then you can use this method.

Suppose we have a Javascript array with 3 elements:
var test = [“test1”, “test2”, “test3”];

Now create a hidden variable in HTML. This variable will be set Read more…

PHP – Possible reasons of “Allowed memory size exhausted” error

written by : Rita Sharma(Software Consultant)
September 26, 2016
|
0 Comments
|

Most of the times when we get memory exhausted error, we normally think that the memory allocated for php program execution in php.ini file is not sufficient and raise this limit to try to fix the error.

However, code inefficiency could be the reason behind the error. Some examples Read more…

Selenium Webdriver | Locating elements

written by : Sumit Sangha(Software Test Engineer)
|
0 Comments
|

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 element in the code. Java statement for this will be as below Read more…

How to add combobox in editable datagrid using jQuery EasyUI

written by : Kunal Kumar(Software Engineer)
September 23, 2016
|
0 Comments
|

Following is the code to add combobox in editable datagrid :

Index.html

<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″>
<thead >
<tr>

&lt Read more…

JQuery | Change background color on hover

written by : Harish chauhan(Senior Software Engineer)
|
0 Comments
|

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

written by : Richa Sharma(Software Engineer)
September 22, 2016
|
0 Comments
|

1. Fetching coordinates of current location of mouse

Below is the code to retrieve the coordinates of mouse at any position on webpage and display inside a div with id getCoords:

<script>

$(document).ready(function()
{
$(document).mousemove(function(e)
{
$(‘#getCoords’).html(“X: ” + e Read more…

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

written by : Kritika Sood(Software Engineer)
|
0 Comments
|

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

written by : Richa Sharma(Software Engineer)
September 21, 2016
|
0 Comments
|

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

<?php
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

written by : Manpreet Kaur(Software Engineer)
|
0 Comments
|

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.

So

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

becomes

<span id Read more…

PHP | better way to include a file

written by : Kiranpreet(Software Engineer)
September 20, 2016
|
0 Comments
|

Have a look at the this folder structure :

Test
Folder1
Abc.php
Folder2
Qwerty.php

Now in Abc.php file, try to include Qwerty.php using the following code:

Abc.php
include(‘../Folder2/Qwerty.php’)

It will give this error Read more…

PHP | How to install CakePHP 3.0

written by : Deepika Saini(Software Engineer)
|
0 Comments
|

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 current directory and rename Read more…

PHP | Send mail through Gmail SMTP server and phpmailer

written by : Varun Chopra(CEO)
September 19, 2016
|
0 Comments
|

Code to send mail through Gmail SMTP server:

<?php
require_once(‘PHPMailer-master/class.phpmailer.php’);
include(“PHPMailer-master/class.smtp.php”);
include ‘../common/constants.php’;
session_start();
class sendPdfViaEMail
{
function sendemail($body1,$subject,$ccemail,$fromEmail,$bccEmail,$name,$to,$signature){
try {
$mail = new PHPMailer();
if($name==”null”)
{
$body.=$body1;
}
else
{
$body Read more…

Totara | Hide Administration block

written by : Neha Mishra(Senior Software Engineer)
|
0 Comments
|

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

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

Step 3 :
Change the drop down value from “Assessment information page” to “ Edit Assessment page” so that only admin users could Read more…

HTML | Using CSS for animation

written by : Rohan(Software Consultant)
September 15, 2016
|
0 Comments
|

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.

Code:

<html>
&lt Read more…

Get Salesforce SObject name through Salesforce Record Id

written by : Virender(Senior Software Engineer)
|
0 Comments
|

Description:- We have Salesforce recordId but need to identify what is the type of Sobject 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();
System.debug(‘Object Name is ‘ + objName Read more…

Locating recycle bin in Salesforce

written by : Sumit Sharma(Software Test Engineer)
September 13, 2016
|
0 Comments
|

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

OR

You can use this URL into the salesforce to see Recycle bin.

https://na14.salesforce.com/search/UndeletePage
Webner Solutions is a Software Development company focused on developing CRM apps (Salesforce Read more…

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

written by : Varun Chopra(CEO)
|
0 Comments
|

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 get hold Read more…

Introduction to Heroku

written by : Sachin Kashyap(Technical Content Writer)
September 12, 2016
|
0 Comments
|

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

written by : Ishpreet kaur(Software Engineer)
|
0 Comments
|

What is Transition Delay?

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

How to implement Transition Delay in CSS Read more…

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Next page ›
Send your message