Posts

Showing posts with the label Jquery

Simple Jquery Ajax Alongside Codeigniter (Video Tutorial)

Image
I flora this screencast spell i was searching to larn Jquery in addition to Ajax integration. It help me a lot to empathise basic in addition to was able to implement inward my project. You tin persuasion the screencast inward below URL Author conduct maintain broken it downward to iv parts. This offset 1 explains on how tardily Jquery tin last to setup in addition to to a greater extent than or less tools you lot heed honor usefull. simple-jquery-ajax-with-codeigniter-part-1/ Following on from component 1 inward this screencast writer exhibit near Ajax functions $.get. We volition conduct maintain a hold off at how to perfom a $.get asking in addition to how to handgrip the callback. simple-jquery-ajax-with-codeigniter-part-2/ So straightaway nosotros conduct maintain looked at the $.get asking nosotros straightaway are going to hold off at the $.post request. In this screencast nosotros tin encounter how nosotros tin submit shape information through this ...

Using Jquery To Filter Data

Image
Fig: Screenshot of the result When a webpage is designed to display large tables of data, a non bad amount of consideration should hold out dedicated to allowing the user to form through the information inwards a structured manner. In this article, I volition become over 1 techniques:  filtering. If a website calls for many records of information to hold out displayed, inwards my example K rows, together with thence it is to a greater extent than than appropriate to offering the user a means to sift through the data. One specially effective means that has sprung upwards on the spider web inwards recent years equally constituent of the Web2.0/AJAX displace is filtering. This is also something that Apple pushes heavily inwards at that topographic point applications such equally iTunes. The finish for us is to allow the user to type a search query into a criterion text input together with alive filter the tabular array rows below exclusively showing the ones that comprise mat...

Create Jquery Ajax Alongside The Codeigniter Pagination Library Video Tutorial

In this screencast you lot are going to larn how to combine Jquery Ajax amongst the Codeigniter Pagination Library. Note: I bring wrote an article concluding calendar week amongst consummate root code on "How to implement jQuery Ajax amongst Codeigniter pagination library together amongst bootstrap styling". Click the next link to stance the article. How to role Codeigniter pagination library together amongst jQuery too AJAX amongst consummate sourcecode?  Ref: http://blip.tv/web-lee/codeigniter-pagination-part-4-2245514 Sumber http://developer-paradize.blogspot.com

How To Select A Random Value From An Array Using Javascript?

Use the next pseudo code to warning a random values from given array using javascript. var item_array = [1, 3, 4, 5]; var random_item = item_array[Math.floor(Math.random() * item_array.length)]; alert(random_item); Explanation: Create an array of your choice, together with so pick 1 chemical constituent from the array. You produce this past times choosing a random unwrap using Math.random(), which gives yous a resultant greater than or equal to 0 together with less than 1. Multiply past times the length of your array, together with create got the flooring (that is, create got but the integer part, dropping off whatever decimal points), so yous volition create got a unwrap from 0 to 1 less than the length of your array (which volition hence last a valid index into your array). Use that resultant to pick an chemical constituent from your array. Source: http://stackoverflow.com/questions/5708784/how-do-i-choose-a-random-value-from-an-array-with-javascript Sumber http://developer-...

How To Cheque If Interrogation String Acquaint On Url Using Jquery?

document.location contains data virtually the URL, in addition to document.location.search contains the inquiry string. if(document.location.search.length) { // inquiry string exists } else { // no inquiry string exists } You fifty-fifty don't withdraw jQuery. You tin create that using uncomplicated jQuery. Sumber http://developer-paradize.blogspot.com

How To Operate Codeigniter Pagination Library Together Alongside Jquery Together With Ajax Alongside Consummate Sourcecode?

Image
I accept used Codeigniter's pagination library together amongst twitter bootstrap(for styling pagination), Handlebars script(to arrive at html template) in addition to jQuery(to arrive at dynamic pagination via ajax). Customized Bootstrap pagination vogue for Codeigniter pagination library It volition live really tardily to empathize the next code if you lot are expert at Codeigniter, twitter bootstrap, jQuery in addition to Handlebars script. Handelbars :Handlebars provides the ability necessary to allow you lot build semantic templates effectively amongst no frustration. Click here to read to a greater extent than virtually what is Handelbars in addition to how it works? This is working trial which I accept used inwards i of my project. If you lot notice whatsoever bug, allow me know. Or whatsoever feedback volition live appreciated. I accept included Model, View, Controller in addition to jQuery. Hope individual volition relieve a lot of time. You tin extend the scr...

Create A Scrolling Anchor Link Alongside Jquery

Very simply put, this volition business office similar a normal internal anchor link or named anchor link, but volition scroll to the specified goal instead of only jumping there. It’s a actually easy-to-implement together with awesome matter to add together to close whatever website. I’m going to outflow correct into it. The HTML All that is needed for this instance is an chemical cistron to click, together with an chemical cistron to scroll to. <a id="scroll">Click hither to scroll</a> <img src="images/cat.png" alt=" this volition business office similar a normal internal anchor link or named anchor link Create a scrolling anchor link alongside jQuery" /> I’ve decided to scroll to an picture of a random cat, withal I intend this would last most useful for something similar a tabular array of contents. The jQuery/Javascript We volition last using the click() event, animate effect, scrollTop() manipulation together with outset ...

Show Ajax Loader Icon Until Rendering Is Finished Using Jquery

Add the next html code within torso tag: <div id="loading">   <img id="loading-image" src="images/ajax-loader.gif" alt="Add the next html code within torso tag Show ajax loader icon until rendering is finished using Jquery" /> </div> Then add together the means flat for the div as well as icon to your css: #loading {   width: 100%;   height: 100%;   top: 0px;   left: 0px;   position: fixed;   display: block;   opacity: 0.7;   background-color: #fff;   z-index: 99;   text-align: center; } #loading-image {   position: absolute;   top: 50%;   left: 50%;   z-index: 100; } And in conclusion add together this jquery to your page within whatsoever function $(document).ready(function() { //hide on get-go  $('#loading').hide(); //call share do_something();  function do_something()  {   $("#loading").show();   var asking = $.ajax({   url: "your_url",   type:...

Jquery Fullcalendar Integration Amongst Php In Addition To Mysql

Image
This plugin is to practise a comprehensive interactive calendar that looks similar "Google Calendar". And to perform basic operations on events (display, add, edit) dynamically through AJAX requests, it too allows to easily manipulate the diverse elements via "drag & drop". fig: Screen dump of output Step1 : Download the jQuery fullcalendar plugin past times here You involve to grab the required scripts too css. You tin abide by what y'all involve to become far piece of occupation past times looking at default.html file. The plugin comes amongst a exhibit files to examination the calendar: the advert of the folder is "Demos". Do non hesitate to explore all the files too accept a await at the source code of each page to sympathise the differences. Step 2 : Create database called 'fullcalendar' too practise tabular array called 'evenement' CREATE TABLE `evenement` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` var...

Calculate Full Value Of Checkboxes Using Jquery

If 1 checkbox is selected, it volition add together the values of checkboxes automatically. If you lot volition click unchecked, the full volition survive updated automatically. JQUERY $(document).ready(function() { $("input[type=checkbox]").change(function(){   recalculate(); }); role recalculate(){     var substance = 0;     $("input[type=checkbox]:checked").each(function(){       substance += parseInt($(this).attr("rel"));     });   //  alert(sum); $("#output").html(sum); } }); HTML <div id="school"> <p><input type="checkbox" rel="15">Book</p> <p><input type="checkbox" rel="15">Bag</p> <p><input type="checkbox" rel="15">Notebook</p> </div> <span id="output"></span> Ref: http://stackoverflow.com/questions/5066537/calculate-total-value-checkboxes-jquery Sumber http:/...

Contact Course Of Written Report Using Jquery Validation, Codeigniter Together With Bootstrap

Image
I accept used Jquery validation plugin for validation, bootstrap for styling HTML too Codeigniter to transportation the email. I accept posted the consummate rootage code too covert dump of lastly outcome. Feel costless to utilisation it. :) Bootstrap Contact form  Form built amongst Twitter Bootstrap <style type="text/css"> label.valid { width: 24px; height: 24px; background: url(../img/valid.png) take in centre no-repeat; display: inline-block; text-indent: -9999px; } label.error { font-weight: bold; padding: 2px 8px; margin-top: 2px; } </style> <div class="container-fluid"> <div class="row-fluid"> <div class="span9 offset3"> <form action="" id="contact-form" class="form-horizontal" method="post"> <fieldset> <div class="control-group"> <label class="control-label" for="name">Your Name</label> ...

Assigning Multiple Classes For Click Final Result Using Jquery

I convey an click resultant that I desire to assign to to a greater extent than than ane class. The argue for this is that I'm using this resultant on dissimilar places inward my application, as well as the buttons you lot click convey dissimilar styling inward the dissimilar places. I convey used next method as well as it worked for me. You tin guide multiple classes straightaway alongside jQuery similar this: $(".class1, .class2").click(function(){ alert("clicked"); });​ Fiddle: http://jsfiddle.net/Afg5s/1/ In this trend you lot tin assign to a greater extent than than ane degree for whatever resultant using jQuery. Source: http://stackoverflow.com/a/10511922 Sumber http://developer-paradize.blogspot.com

How To Dynamically Laid Upwards Direct Alternative Selected Using Jquery?

I accept a choose champaign amongst around options inward it as well as desire to choose a specific choice of a choose tag dynamically: The choose List equally follows: <select id="my_val"> <option value="1">Red</option> <option value="2">Green</option> <option value="3">Blue</option> </select> You tin mail away solve the inward a higher house work using next pocket-sized slice of jquery function. $(document).on('change', '#my_val', function(e) { e.preventDefault(); var option_val = $("#my_val").val(); //store the dynamic value of choose choice $( "#my_val" ).find( 'option[value="' + option_val + '"]' ).prop( "selected", truthful ); //Set choose choice 'Selected' }); There may live on many other possible solutions. Above 1 worked best for ...

How To Add Together Jquery Tabular Array Filter?

You tin filter a tabular array rows dynamically using jQuery Plugin tabular array filter. The plugin volition insert a input shape for filtering tabular array rows dynamically. Demo Usage: Download jQuery plugin: jquery.table-filter.js Insert to all table: $("table").addTableFilter(); Insert to "#table1" only: $("#table1").addTableFilter(); Insert amongst custom label text in addition to size: $("table").addTableFilter({ labelText: "Filtering Words: ", size: 48 }); Source: https://github.com/hail2u/jquery.table-filter Sumber http://developer-paradize.blogspot.com