Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

How to add a simple jQuery script to WordPress?

Hello readers, today we discuss about "How to add a simple jQuery script to WordPress?". There are two way to add script in our wordpress. In header.php file, and in function.php file In header.php file you can put the below line into head section

Dynamically access object property using variable.

There are two ways to dynamically access object property:- 1.Dot Notation 2.Bracket notation var eg = {“first1”: "101", “second”: "202"}; console.log(eg.first1); var key1 = “first”+1; alert(eg1); // first1 console.log(eg[key1]); The dot notatio

Javascript constructor()

Let’s talk about a constructor. It is actually a function to serve the purpose of using as a constructor. You can write a function to use it as a constructor or call it as a normal function, or use it both ways. You can easily perform the task of cr

Locked and logged out when on maitenance page, Drupal 7

All major development or changes to a site should be performed on the development machine and once thoroughly tested then only be implemented to the live site. There are chances when you have to make changes on live site directly. In this case y

How to define host and port using Laravel 4.x

Now a days there are n number of website which will move to android. So for every application we have to make API. If we will make our API in laravel 4.x then we will test using Postman. To define our port and to run our API using "Postman" we have t

Laravel 4: how to “order by” using Eloquent ORM

In Laravel 4.x we have many facility to use query in a easy way. We will also run raw query in laravel 4.x. Laravel 4.x also provide of using “order by” query using Eloquent ORM. We can easily understand this by seeing the example of order by: E

Using CSS in Laravel views.

CSS plays an important role in every project. In Laravel 4.x we will define our css in: public/css/custom.css Here In above path we will define our css in laravel 4.x To call a view from controller we will use the code as follow: Example: retur

Difference between echo, print and print_r in php

The echo and print are similar ones as they are not a functions they are the language constructs. echo The echo as a language construct it outputs one or more strings. The echo has a void data type.As it is a construct and not a function so it won

How to autoload 'libraries' in laravel 4

We can easily auto-load libraries in Laravel 4.x by using namespaces in our application. Then put all libraries you code under that namespace. Suppose our directory structure would then be: libraries Myapp Search (note directory is capi

How to handle default error in PHP

We can handle default error in PHP in a very simple way. This can be done by sending an error message with its filename, error line number and a message that describes the error to the browser. Error handling plays an important role whenever we make

1 87 363
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: