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

Search In

Media Query

Media query is css technique that is being introduce in css3. It is used to set the css and display the page properly when seen on the different screen size. It uses $media rule to include a block of the css only if a certain condidtion is true. e

Simple preview image on upload

If we need to display the preview of the image on upload, we can write a simple javascript function to perform the same this can be done as : <!DOCTYPE html> <html> <body> <script> function img(x) { document.getElemen

Elements and Layouts in Cakephp

If we are required to Create elements and add it in layouts and views  ithe can do it as In app/views/elements folder create an element file adminsidebar.ctp with the below code : <?php  echo “Hello Cakephp !!”;  ?>  Call the elem

How to draw radius around a point in Google Map?

Draw radius around a point in Google Map I want to add 10 miles radius around each marker. This is a very good example which will explain you how it works : https://www.freemaptools.com/radius-around-point.htm . This example will show you that how t

Static Keyword in object oriented programming in php

Static variables and methods is very useful feature in Php oops. We can access static method and variable outside and within class, without creating object of these class. Often, we hear about static class, but there are no class is static, actually

Difference between $uses and $this->loadModel() in CakePHP

 $uses: $uses is  used to load model in a controller. It defines which models the controller has access to by default. We can load multiple models easily using $uses. But it is not a good practice to load all models at once. Best way

Default copy constructor in c++

A copy constructor is a special type of constructor by using which we can initialize the data members of a newly created object by existing objects. The compiler provides a default copy constructor.  Syntax of calling a copy constructor is: co

PHP Magic function Construct and Destruct?

Hello Readers, today we discussed about PHP Magic function Construct and Destruct. The most frequent of PHP's magic approach is __construct() method and __destruct(). When you've been following along with the Building Cribbb series I'm s

How to refresh a part of page automatically?

Many time you need to refresh your page without reloading the whole page.  Some time you need it to be done automatically after a certain time. You can do it by ajax and jquery. Here i am writing a function which will refresh div after 10 sec.

.Net extension method

Extension method in .net is very important feature and good practice for reusable code. Extension method is a static method of a static class that can be invoked using the instance method syntax. Extension methods are used to add new behaviors to an

1 … 237 … 331
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: