Latest Post

Angular $scope.form value undefined on submit in ionic framework.

When i was working first time in ionic framework with search module. i fetch one issue i can't get ng-model value in angular js controller on submit form. i was try like $scope.form because if you work on angular JS before then you can get all post data using $scope.form directly, But i try with bellow form and try to get that way but i always find undefined value on form, But at last i found how to solve this issue. you can see bellow example and find your solution. <strong>Form</strong> <pre class="prettyprint lang-html"> <form method="POST" name="searchForm" ng-submit="search()"> &l.....

By Hardik Savani | March 5, 2016 | | 4910 Viewer | Category : jQuery AngularJS Ionic Framework

PHP Image upload without refreshing page using jquery example

In this post i show you how to image upload without page reload using jquery ajax. jquery ajax through you can upload image and store record into database in php. i use jquery.form plugin for image uploading. So you can do by following few step of file uploading ajax jquery. <strong>Preivew</strong> <img width="100%" style="border:2px solid red" src="/upload/imageupload.png"> <br/> First you have to create index.php file as i do in following file, so create index.php file and put bellow code. <strong>index.php</strong> <pre class="code language-html"> <html lang="en"> <head> <ti.....

By Hardik Savani | March 4, 2016 | | 15016 Viewer | Category : PHP Javascript jQuery

How to create middleware for XSS protection in laravel 5?

XSS(Cross Site Scripting) protection must need in your site because if you do not XSS protection then your site is not secure. XSS filter through you can remove html tag from your input value and it is very important to remove html tag for security. in your laravel 5.2 application you can implement by using middleware concept in your project. so how to create XSS filter middleware in your laravel application by using following step. First fire following command and create middleware: <strong class="step">Create Middleware</strong> <pre>php artisan make:middleware XSS</pre> Now, you can see new.....

By Hardik Savani | March 4, 2016 | | 7173 Viewer | Category : PHP Laravel

How to generate random alphanumeric string in PHP?

In this example i am going to show you how to generate randomly alphanumeric string OR number in PHP. when you need you generate random alphanumeric string for your unique field then you can easily create using substr(), md5(), rand(), uniqid(), mt_rand(), time() and str_shuffle() php function you can create several way unique code using following example: <strong>Example</strong> <pre class="language-php"> Example 1 $generated = substr(md5(rand()),0,5); print_r($generated);<br/> Example 2 $generated = rand(10000,99999); print_r($generated);<br/> Example 3 $generated = substr(md5(uniqid(rand(.....

By Hardik Savani | March 4, 2016 | | 2013 Viewer | Category : PHP

How to use each loop with class element of html in Jquery?

Whenever you need to use each loop in jquery then you can follow this example code. each with html class you can get whole object of that class using $(this) jquery function. In following example you can see i get attribute data-id using $(this).data('id'), that means you can take current class data attribute value. <strong>Example:</strong> <pre class="code language-html"> <html lang="en"> <head> <title>Each Loop with Class Jquery</title> <script src=""></script> </head> <body> .....

By Hardik Savani | March 4, 2016 | | 978 Viewer | Category : Javascript HTML jQuery

Send Path Google OAuth Foreign Key Jquery UI Vue.JS Remove str_random() RSS Feed datatables Laravel 5.5 Components & Slots Twitter Bootstrap RSS chumper/zipper Manual Trans Helper GET Ajax MSSQL Confirm Box Segment Scroll POST Ajax hasColumn Pagination Ionic word-wrap preg_match xoxco tags input is_null COUNT() file_exists File Setup DB Paytm ANDROID_HOME jQuery Capitalize roumen/sitemap SUBSTRING_INDEX() Laravel 5.4 - Markdown Mailables Botdetect Captcha Behance API bootstrap-progressbar.js getQueryLog Request Method bootstrap tagsinput Config Instagram API ajaxComplete Xampp PHP artisan Interface glob tree view Eloquent-Sluggable Package Special JS Subscribe Linux Bootstrap Notify Plugin Zoho mail Failed ppa clearbit API Bitbucket Cache DB::raw() PHPExcel Fetch Datetimepicker Frontside Validation Library Database Seeder nl2br Origin Bootbox.js Event Request JWT LIKE Query Javascript Executed milon/barcode AngularJS Add Artisan Command array_change_key_case Tracking league/flysystem-dropbox Codeigniter hasTable Google Chart Tag Manager plugin Chart Convert Date Format csrf_token IP sven/artisan-view package Technology Repository Pattern Blocked Current Page Array Opencart INTERVAL Website Fullcalendar JS GuzzleHttp Join Laravel Log Activity Gravatar Image Environment Switchery JS strtolower URL Page RAND() REST DATE_SUB Collapse AngularJS Filter Admin Bootstrap Theme Package Language Undefined tagsinput.js php.ini Lavacharts Allow Run Project SEO marker enableQueryLog Exists uppercase dompdf Paypal Payment Gateway Express Bootstrap Tokenfield Plugin Month CRUD Effect PHPUnit Character popupMultiSelect plugin Clear