Latest Post

How to get ckeditor value with tags on ajax-submit ?

If you are use ckeditor for textarea and you need to fore ajax submit or form js submit, but you can't find ckeditor value in your controller or php file. So, first you have to update field using CKEDITOR.instances. so you can try to following code. <pre class="language-javascript"> for ( instance in CKEDITOR.instances ) CKEDITOR.instances[instance].updateElement(); </pre>

By Hardik Savani | February 26, 2016 | | 1468 Viewer | Category : PHP Javascript jQuery

How to get max attribute value in jquery?

Sometimes, you have a many tag with same class and attribute with value, but you need to find maximal value of attribute from that comman class, In bellow you have same html tag: <pre class="code language-html"> <ul> <li class="test" data-id="3">hi</li> <li class="test" data-id="5">hey</li> <li class="test" data-id="1">hello</li> </ul> </pre> Now, you require to get max value, i mean you need to 5, because that is big value from other, so you can get maximal value from this way: <pre class="language-javascript"> var max = 0; $('.test').each(fu.....

By Hardik Savani | February 23, 2016 | | 729 Viewer | Category : Javascript HTML jQuery

Codeigniter Angularjs http post not working

Sometimes, you face problem you can't get post data using $this->input->post(), when you fire $ using AngularJS or Jquery. I also face this issue, i can't receive post value when i fire $ in AngularJS, But i found how to receive post data or json data in Codeigniter controller. in following example through you can solve your problem: <pre class="language-php"> public function store() { $this->load->database(); $_POST = json_decode(file_get_contents('php://input'), true); $posts = $this->input->post(); $this->db->insert('posts', $posts); } </pre>

By Hardik Savani | February 22, 2016 | | 2071 Viewer | Category : PHP jQuery AngularJS Codeigniter

Codeigniter 3 and AngularJS CRUD with Search and Pagination Example.

In This tutorial i want to show you how to create CRUD(Create, Read, Update, Delete) using AngularJS in Codeigniter. I added few step to create create, edit, delete, lists, search and pagination application in your Codeigniter framework. In this tutorial through you can make simple crud, search and pagination module and easily use in your codeigniter project. I am going to show preview of items module that we will do using angularJS and Codeigniter 3. <strong>Preview:</strong> <img src="/upload/code-angular.png" width="100%" style="border:2px solid cadetblue" /> <strong class="step">Step 1: C.....

By Hardik Savani | February 21, 2016 | | 130714 Viewer | Category : PHP Codeigniter AngularJS

How to convert one time zone to anothor time zone

Some application required one time zone to convert another time zone. PHP provide some readymade timezone conversion classes but it a very complecated. so we have try to define this function simple way. You can createe a simple class and write one function into the class. then you able to use this function everywere. <pre class="language-php"> class convertTimezone { function convert_timezone() // Constructor of the class { } function converToTime($conv_fr_zon=0,$conv_fr_time="",$conv_to_zon=0) { //echo $conv_fr_zon; $cd = strtotime($conv_fr_t.....

By Hardik Savani | February 17, 2016 | | 786 Viewer | Category : PHP Laravel

uppercase Branch execute query Folder datatables Data mod_rewrite Botdetect Captcha Permission is_null Command CURL First Effect Ckeditor MySQL Subquery Strip Tags CASE_LOWER strtolower Access Apache Collapse Sub-Domain Join Tag Manager plugin Bootstrap maxlength plugin select2.js Manual Package Email setInterval() guzzle http client Field Commit Form Jquery Amazon S3 max_file_uploads Carbon bootstrap-progressbar.js AngularJS TrustAsHTML Filter Laravel Builder WHERE Query Class auth() Datetimepicker Draggable Composer AngularJS Filter Accordion Blocked Percentage toastr js JWT Sublime text 3 json() POST Ajax Master Google OAuth away() Controluser Cache thujohn/twitter package Subscribe CORS Paypal Payment Gateway FadeOut file_exists() Date Format Laravel 5.4 - Markdown Mailables Tracking Notification PingPong Terminal Scroll npm XML Sql Bootstrap Notify Plugin DATEDIFF() Xampp Laravel 5 hasColumn Redis Empty Website Switchery JS Script Laravel 4 Bitbucket ID Chart.js filter filter_var Twitter OAuth Mailgun API Library Packages Email Verification Components & Slots ppa Letter 404 error page Div Bootstrap Plugin Tutorial maatwebsite Column Interfaces Service Provider Append Toggle Google API Array voyager package lowercase REST Multi Auth Technology 500 error page Homepage Remember me Instagram API Query Global Variable Codeigniter SMTP select box search SUBSTRING_INDEX() ACL User Google Chart refs Laravel 5.3 Example Dropbox API Laravel Eloquent socket Ubuntu Add React JS Convert Auth array_combine Ionic framework ANDROID_HOME Element Version FILTER_VALIDATE_URL Request Origin