Latest Post
Tampilkan postingan dengan label ajax. Tampilkan semua postingan
Tampilkan postingan dengan label ajax. Tampilkan semua postingan

Check Expired Sessions using PHP, jQuery and Ajax

Written By Unknown on Rabu, 08 Januari 2014 | 08.04

My readers are asking that how do we display message to users that their sessions got expired. So I thought this tutorial will really useful to lots of web developer who working on session based websites.

I have used javascript timing event –  setInterval() – executes a function, over and over again, at specified time intervals. The setInterval() method will wait a specified number of milliseconds, and then execute a specified function, and it will continue to execute the function, once at every given time-interval.

To read more about this article Click Here

For Demo Click Here

To download files Click Here

Mashable Style Drop Down Menu using PHP, Mysql and jQuery

Written By Unknown on Minggu, 29 Desember 2013 | 07.48

Everyone knows that Mashable is the world’s largest independent website dedicated to news, information, technology and resources for the connected generation. Now I am going to explain you about how to create mashable style dynamic drop down menu using Php, Mysql & jQuery Ajax.

To read more about this article Click Here

For Demo Click Here

To download files Click Here

Detecting AJAX requests with PHP

Written By Unknown on Senin, 21 Oktober 2013 | 08.49

In an effort to make client-side code as unobtrusive as possible, we typically take the approach of first building applications without JavaScript.  This practice makes sure all of our anchor tags have legitimate URLs in their href attribute.  We can then attached event handlers to the anchors that should trigger AJAX requests.  Then it’s simply a matter of reading the href attribute of the clicked item, and setting that as the source for the AJAX request.  Nothing new here…

$('a.trigger').click(function(){
  var src = $(this).attr('href');
  //AJAX request here
  return false;
});

But often we want to fork our controller logic based on whether or not a request was made via AJAX.  For example, no reason getting data we won’t be using in the AJAX response (like navigations, user data, etc).  Plus we want to load AJAX-specific views to return appropriate HTML snippets, or JSON objects.  

So we just test to see if $_SERVER['HTTP_X_REQUESTED_WITH'] equals “xmlhttprequest” which seems to work consistently for all of the browsers on our checklist (note, this is sent when an AJAX request is made via jQuery – and most other JavaScript frameworks – but best not to assume).  We set this as a constant in our bootstrap file, allowing us to refer to it throughout our code.

define('IS_AJAX', isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest');

One issue this brought up though was caching of AJAX requests, especially in Internet Explorer.  When updating our HTML with the server’s response, we often saw the entire page load into the target div.  IE was aggressively caching the AJAX request.  Simply setting JQuery to disable caching was the easy fix.

$.ajaxSetup({ cache: false });

Another simple approach would be to add a parameter to all of your AJAX requests. And even though the method outlined above is not tamper proof (not that anything really is), it seems a bit more reliable to me than the AJAX parameter approach, especially when you have many hands in the jar during the application development cycle. 

For more complex application development, the majority of PHP frameworks out there provide this via other means (CakePHP’s RequestHandler for example). But for our home-baked, lightweight Facebook Application frameworks, this works nicely.

jQuery AJAX Post Example with PHP and JSON

Written By Unknown on Kamis, 10 Oktober 2013 | 09.10

Today I'm gonna give you some code examples on how you can post a form and json data using jQuery AJAX. A PHP file will receive the posted data and print the response. I think this is one of the most useful code when you're coding with jQuery, especially if you're building a web app with modules that deals with so many forms or post request in one page.
 
To read more about this article Click Here
 
For Demo Click Here
 
To download files Click Here

jQuery Cascading DropDowns with PHP, Ajax and JSON

Written By Unknown on Kamis, 03 Oktober 2013 | 09.12

Cascading DropDowns is a jQuery plugin that implements dropdown lists in which contents of one list depends on the selection of another list. The plugin has right panel with items (any html structure), that depend on dropdown selected value and filtered on selection callback. The dropdowns work with json as data source (ajax or javascript array). The right panel items work with ajax or inline html as data source.


To read more about this article Click Here

For Demo Click Here

To download files Click Here

Send and receive data in ajax/jquery

Written By Unknown on Senin, 16 September 2013 | 03.54

How to send and receive data in ajax/jquery 

Sample Ajax tutorial in php



We will need two file for this tutorial ...
1. which send request and receive responce (test.php)
2. which receive request and send response (page.php)

On click of button ..the id of button will be send to page.php

And the response which we will get will replace html content of span id "val" .

test.php

<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" >
$(document).ready(function(){
    $( ".button" ).on("click",function(){

        $.ajax({
        type:"post",
url: "page.php",
data: {id:$(this).attr('id')},
success: function( data ) {
$( "#val" ).html( "<strong>" + data + "</strong> " );
}
});
        });
});
</script>
</head>
<body>
<button type="button" id="b1" class="button">Button-1</button>
<button type="button" id="b2" class="button">Button-2</button>
<button type="button" id="b3" class="button">Button-3</button>
</br></br></br>
<span id="val" style="background-color:#454282;">Which button is clicked ?<span>

</body>

</html>

---------------------------------------------------------------------------------------------------------------------------
page.php

<?php
$id=$_POST['id'];
if($id=="b1"){
echo "Button 1 is clicked ";
}
if($id=="b2"){
echo "Button 2 is clicked ";
}
if($id=="b3"){
echo "Button 3 is clicked ";
}

?>

Ajax Image Upload and Resize with PHP and Jquery

Written By Unknown on Senin, 26 Agustus 2013 | 08.54

Sometimes, it’s better to create your own stuff,  than to rely on some complicated Image Gallery with additional functions which you may not even need. This is a very useful combination of jQuery and PHP script to upload and resize image file without refreshing the page, which means we will be using Ajax to send and request data from server. The script should run out of the box, but it can be modified and extended to suite your needs. 

To read more about this article Click Here

For Demo Click Here

To download files Click Here

Multiple Image Upload without Refreshing Page using Ajax and jQuery

Written By Unknown on Minggu, 11 Agustus 2013 | 09.06

Today I am presenting the most important social networking feature called multiple ajax image upload without refreshing the page using jquery and PHP. We just modified few lines of code injqery.form.js plugin and renamed that to jquery.wallform.js.

To read more about this article Click Here

For Demo Click Here

To download files Click Here

Search Without Page Refresh using PHP, jQuery and Ajax

Written By Unknown on Minggu, 04 Agustus 2013 | 06.40

It will be very convenient for the users of your web application if you can load more data from the database without refreshing the whole page.Today I’m gonna show you a data searching example without refreshing a page:

1. User will input a name on the textbox.
2. User can click the search button or just simply press enter to start search.
3. A loader image will be shown.
4. Loader image will hide when search result comes in.

To learn more about this article Click Here

For Demo Click Here 

To Download files Click Here

Kool Swap - Ajax load support for websites with jQuery

Written By Unknown on Rabu, 01 Mei 2013 | 10.26

Kool Swap enables impressively ajax page load support with history for websites. Just tell the plugin what should be switched and what are the triggers and swap pages in a nice way!


To read more about this article Click Here

For Demo Click Here

To download files Click Here

AJAX and JQuery File Uploader for your Web Application

Written By Unknown on Minggu, 03 Maret 2013 | 08.27

Uploading files and images are very common tasks in the modern web like uploading profile picture, uploading trip pictures to their social networking account etc. As uploading files is a very simple task but AJAX and JQUERY improved it much more.
Now many JQuery file upload plugins are available which allow for more complex functionality and better usability. they shows users how much time left, allowing them to upload multiple files as well as use drag and drop interfaces. Here in this article, you will find few powerful AJAX JQuery file uploader plugins.

To more about this article Click Here

opentip - Open Source JavaScript Tooltip framework

Written By Unknown on Selasa, 26 Februari 2013 | 08.04

Opentip is an open source javascript tooltip based on the protoype framework.
Features:
  • Stems (little pointers)
  • Automatic content download with AJAX
  • Different styles
  • Automatic repositioning of the tooltip if it’s not in the viewport of the browser anymore
  • All kind of triggers (The tooltip can be triggered by mouse over, click, form submit,… everything you can think of really)
  • CSS3 Animations
  • Well tested, with over 200 unit tests
To read more about this article Click Here

For Demo Click Here

To download files Click Here

  

jui_datagrid - jQuery Ajax Datagrid plugin

Written By Unknown on Kamis, 21 Februari 2013 | 08.42

jui_datagrid is an Ajax-enabled jQuery plugin, useful to manipulate database data in tabular format. Fully customizable, simple but powerful API, jQuery themes compatible, localization support. It has a modular design,so it is using jui_pagination plugin for paging and jui_filter_rules plugin for searching.


To read more about this article Click Here

For Demo Click Here

uLike - Ajax content like system with jQuery and PHP

Written By Unknown on Minggu, 10 Februari 2013 | 06.52

uLike is a simple and easy to install content like system. You can have a unique like button on each different content element on your page. Each like button is it’s own seperate identity and is stand alone from the others. The system is based on the content’s parent div, the ip of the user, and the page in which it’s on.


To read more about this article Click Here

For Demo Click Here

Bing Instant Search with Jquery and Ajax

Written By Unknown on Minggu, 06 Januari 2013 | 08.16

I received a lot of request from my readers that asked to me how to instant web search results. So I had coded Bing instant search with real time search results. Just few lines of code, reading Bing search JSON API file with Jquery. 


To read more about this article Click Here

For Demo Click Here

To download files Click Here

clueTip - A simple jQuery Tooltip Plugin

Written By Unknown on Kamis, 03 Januari 2013 | 09.27

The clueTip plugin allows you to easily show a fancy tooltip when the user’s mouse hovers over (or, optionally, clicks on) any element you designate in your script. If the element includes a title attribute, its text becomes the heading of the clueTip.


To read more about this article Click Here

For Demo Click Here

To download files Click Here

Create a Pinterest Feed jQuery Plugin Using AJAX and jQuery Isotope

Written By Unknown on Kamis, 27 Desember 2012 | 07.46

In our latest jQuery social network tutorial we are going to create a jQuery plugin to display Pinterest feeds via AJAX from either a username or pinterest board and display them in a masonry style wall using jQuery Isotope.

The plugin will also include code to display time since posted, options to set the number of feed items to display plus Facebook and Twitter share links to help boost the traffic to your pins.

To read more about this article Click Here

For Demo Click Here

To download files Click Here

Single-Page Ajax Portfolio Update Panel with jQuery

Written By Unknown on Minggu, 23 Desember 2012 | 08.38

In this tutorial I want to explain how we can build a simple portfolio update panel using jQuery.You will notice the webpage itself is very bare aside from the effect. This will make it easier to embed a similar page widget into any portfolio layout.

To read more about this article Click Here

For Demo Click Here

To Download files Click Here

DeviantArt API Instant Search App using jQuery Ajax and PHP

Written By Unknown on Selasa, 06 November 2012 | 07.37

In this tutorial I want to explain how we can build a DeviantArt Instant Search app which searches through all the most popular banner signatures ever submitted to the website. You can enter some search terms and the app will pull results to display after you finish typing. This is a really cool application for designers who are looking for inspiration, or even for people who love DeviantArt and want a better way to search.


To read more about this article Click Here

For Demo Click Here 

To download files Click Here

Coding a Vimeo API Instant Search App with jQuery

Written By Unknown on Senin, 05 November 2012 | 07.38

In this tutorial I want to explain how we can build a small Vimeo instant search webapp. I’ll be creating the frontend with jQuery and the backend on PHP. There is actually a full developer’s API with references for programmers. I’ll stick to explaining the more convoluted ideas so that you can follow along with my source code.

I will first explain how we can put together the HTML document so it runs our frontend Ajax functions. Let’s include a reference to the most recent jQuery library which is used for Ajax calls. I’m also using another file v.js for our custom API commands.

To read more about this article Click Here

For Demo Click Here

To download files Click Here

 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. Kumpulan Kata Broadcast Blackberry - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger