How to add combobox in editable datagrid using jQuery EasyUI

Author - Webner

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

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>
&lt Read more…

JQuery | Change background color on hover

Author - Webner
|
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

Author - Richa
|
0 Comments
|

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:
<script>
$(document).ready(function()
{
$(document).mousemove(function(e){
$(‘#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:

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

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.

So

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

becomes

<span id Read more…

PHP | better way to include a file

Author - Kiran Preet

Have a look at 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:

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
|
0 Comments
|

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

Author - Webner
|
0 Comments
|

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
|
0 Comments
|

Click on any of the tabs and find Recycle bin at the 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/UndeletePageRead more…

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

Author - Webner
|
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 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
|
0 Comments
|

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):

$iCal = “BEGIN:VCALENDAR\r\n
VERSION:2.0\r\n
METHOD:PUBLISH\r\n
X Read more…

Tomcat version 8 not visible in Eclipse

Author - Navneet Kashyap
|
0 Comments
|

Solution: Follow below-mentioned steps and you will get Tomcat version 8 working in Eclipse:

1. Download the latest Eclipse from the official site, preferable version Mars.

2. Do eclipse installation as you did earlier or just extract it in /opt.

3. Now when you go for creating a Tomcat Read more…

‹ Prev page1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 Next page ›