
Search In
Hello readers, today we discuss about "How to call Ajax in wp-oauth Plugin".
"wp_ajax_your_function_name" its a pre define method for loged in users.
You can put the below code into plugin.php file. "getMinorCatList" is a function where ajax can hi
Sometimes we need to display some alert or dive after some period on Web page.
We can do this by using setTimeout method as below:
<html>
<head>
<title>Demo to show div</title>
<script type="text/javascri
Sometimes we need to add li elements to ul dynamically based on some list. We can do this by using append() method.
Example- In the below example I have a list "users" and I want to display user names dynamically on page.
<html>
<head
QWeb is an XML-based templating language, similar to Genshi, Thymeleaf or Facelets. It has the following characteristics:
It's implemented fully in JavaScript and rendered in the browser
Each template file (XML files) contains multiple templates.
It
To Add two fields to product for storing a latitude and a longitude, then for this you have to create a new form widget to display the latitude and longitude of a product's origin on a map.
Displaying the two position fields and a map widget using th
Get DataKey value on check box checked event in a GridView
Here is the .aspx code for the following:-
<asp:GridView ID="grdTest" runat="server" AutoGenerateColumns="False" DataKeyNames="ID">
<Columns>
<asp:TemplateField Hea
Enable the Google+ API
First you should open the google API console. And Create an API project for your application.
On the Google API console click on Create Project ,enter the name of the project and then click on create.
In the Service
Run sql queries using SQL tag in JSP
We can run SQL queries directly in JSP page using "sql" tag.
Suppose we have a 'postgres' database, with below credentials:
db:'test'
user: root
password: 123
table name: user which have a column 'userName'.
Be
Hello ,
I am sharing here how you can remove .php extension from Url of your website. here are the following steps:-
Create a .htaccess file in project directory.
Suppose you have to remove the .php extension from a PHP file for example abc.com/te
Sometimes we need to display Google Map on a JSP page, for this you just need pass lat/long to JSP. Use below code to initialize map in script:
var marker = null;
var map = null;
var markers = [];
function initializeMap()
