Showing posts with label JQuery. Show all posts
Showing posts with label JQuery. Show all posts

Thursday, 25 September 2014

Monday, 22 September 2014

How to Preview Uploaded Image before Upload To Server

Here i will explain how to preview the image file before uploaded to server. When we upload any image file to server or to any file location.It is not possible to find out the write selection you have choose which u want to upload to server. By this example we are able to preview the selected image file before upload and choose the correct selection which u want to upload.

Friday, 19 September 2014

Thursday, 4 September 2014

How To Bounce Left a div by Using jQuery plugin And use in Asp.Net.


Here i will explain how to move or bounce a particular division by using jquery.
Here i will use .velocity() function instead of $.animate() animation engine.
Velocity is a  animation engine that re-implements jQuery's $.animate() for better performance (making Velocity also faster than CSS animation libraries) while including new features to improve workflow.

  • Download Velocity include it on your page, and replace all  instances of jQuery's $.animate() with $.velocity(). You will immediately see a performance boost across all browsers and devices — especially on mobile.

Saturday, 30 August 2014

File Upload By JQuery

How to start uploads with a button click

 we can start uploads files on the click of a button 

$(function () {
    $('#fileupload').fileupload({
        dataType: 'json',
        add: function (e, data) {
            data.context = $('<button/>').text('Upload')
                .appendTo(document.body)
                .click(function () {
                    data.context = $('<p/>').text('Uploading...').replaceAll($(this));
                    data.submit();
                });
        },
        done: function (e, data) {
            data.context.text('Upload finished.');
        }
    });
});

Copyright © DotNet-Ashok