How to add font-awesome progress icon in textbox for autocomplete Jquery-UI plugin

Author - Ishpreet Kaur
|
0 Comments
|

First of all, we should know what features are provided by jquery-ui plugin. To know about details, please see link,

http://jqueryui.com/demos/

Jquery UI plugin can be downloaded from the link

http://jqueryui.com/download/

Now, today, we will discuss about Autocomplete feature of jquery-ui plugin 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…

Using concatenate, cases, substring in CakePHP 2

Author - Kailash
|
0 Comments
|

How to use concatenate, cases, substring in CakePHP 2.* find query.

Suppose given records are:

Problem: Display user details in one column and the first character of user role in front of the user full name. Also suppose in case of superadmin role as well we want to display (a Read more…

How to Convert XML to a dynamic object in C#

Author - Neha Mishra
|
0 Comments
|

First of all how to parse a predefined XML structure to a class object in C#

Sample XML:
<User>
     <Name>Joseph Lawrence</Name>
     <Class>Second</Class>
     <Section>B</Section>
     <Roll_number&gt Read more…

Uploading files on Amazon AWS S3 server using PHP

Author - Richa
|
0 Comments
|

Before uploading any document to Amazon AWS S3 server, make sure that user has to write access on the bucket where files will be saved else it will throw ‘Access denied’ error. Apart from the write permissions, access keys are also required in the code which we get while creating Read more…

Steps to Create and Delete Windows TaskScheduler instance in C#

Author - Navdeep Kaur
|
0 Comments
|

Steps to Create and Delete Windows TaskScheduler instance in C# code:

Dependencies: Add reference of the taskschd.dll file. On click of start button following steps need to be executed to create an instance of Scheduler:

1. Create the instance of TaskScheduler:
TaskScheduler.TaskScheduler objScheduler = new Read more…

Salesforce | Apply Workflow on existing records as well

Author - Kiran Preet
|
0 Comments
|

I have created a new workflow with criteria “Evaluate the rule when a record is created, and any time it’s edited to subsequently meet criteria”. It includes all the newly created records which fulfil the criteria. But I want to include all the old records which are already existing Read more…

QuickBooks Integration | Important Quickbooks Webconnector Facts

Author - Webner
|
0 Comments
|

Question: Can we add custom functions in quickbook?

Answer: Yes, In quickbook.php file we need to add Constants to make custom function and we can add as many as we want. After defining these constant we can map these in our web service.

For Example:

Suppose we Read more…

Linux | Warning (Y/N) on shutdown command

Author - Navneet Kashyap
|
0 Comments
|

Sometime unknowingly we execute shutdown or reboot command on production live server. So in order to be on the safe side we can configure the shutdown command to ask us for Y/N like explained below:

Switch to root user and then proceed

1. Add Alias in ~/.bash_profile Read more…

How to Disable CSRF token in Laravel Application

Author - Mamta
|
0 Comments
|

CSRF stands for cross-site request forgery. CSRF token is basically used for security purpose in Laravel forms. To understand how it works read here: https://laravel.com/docs/5.4/csrf

How to disable it if required?

CSRF protection is enabled by default in all routes of Laravel 5 Read more…

Download CSV of table Records using OUTFILE sql command and PHP

Author - Deepika
|
0 Comments
|

Create and Download CSV of table Records using OUTFILE Sql command and PHP

1. Create temporary CSV file using OUTFILE SQL command: OUTFILE command is used to write your sql command output to the specified location. You can write the output to some files using OUTFILE when required Read more…

Chargify Retry and Dunning – How to manage failed transactions

Author - Manju Kashyap

Description: When we use auto debit system to charge our customers using their credit cards, it is possible some transactions get declined. This can happen due to different reasons like user’s credit card has expired or due to authentication failure by bank etc. So, if we face such a Read more…

WordPress | Deployment of code to live website from Github, Bitbucket or Gitlab

Author - Komal
|
0 Comments
|

Suppose we have live websites and we are using bitbucket to save the code of plugins, themes etc of those websites. Then we can manage the deployment to live sites easily through the WP pusher plugin.

WP Pusher plugin is used for the deployment of code to the live websites 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…

Customize Time Picker from Bootstrap Time Picker Plugin to add additional features

Author - Ishpreet Kaur
|
0 Comments
|

With bootstrap timepicker plugin, one can select time similar to datepicker (we select date, month, year from datepicker). With bootstrap timepicker plugin, we can select hour, minutes and meridian. In the following screenshot, you can understand, what timepicker does:

Screenshot 1

In short, this is how to use the timepicker 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…

Moodle | SQL report example in Configurable Reports plugin

Author - Harleen Kaur
|
0 Comments
|

SQL Report in ‘Configurable Reports’ plugin provides us an easy UI to write SQL Query and draw results immediately without involving any code complications.

Suppose I want to generate my custom grades report based on some specific activities from course – Let’s say these are PreTest 1, Pretest 2 and Read more…

Moodle: Performing search through wildcard queries with ‘Like’ operator

Author - Harleen Kaur
|
0 Comments
|

‘Like’ operator of SQL can be used in the following ways in Moodle:

Using expression $DB->sql_like:
$grade_item_test = $DB->get_records_sql ( ‘SELECT * FROM {grade_items} WHERE
‘.$DB->sql_like(‘idnumber’, ‘:idnum’).’ AND courseid=:cid order by itemmodule’,
array (‘idnum’=>’test’,’cid’=> $courseid) );
Using like operator:
$grade_item_test = $DB-&gt Read more…

Salesforce | Select * in SOQL and dynamic queries

Author - Webner
|
0 Comments
|

Execute dynamic query in salesforce. Also retrieve all fields from salesforce object without writing fields names in query.

Solution: In Salesforce we can’t write as Select * from object. We have to mention the field specific field name to query data. Also there are situations when we need 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…

‹ 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 47 Next page ›