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

Source codes testing

Thursday, May 14 0 comments

This is an attempt to publish some codes:

Javascript/JQuery code:
$('#id').html('Hello World');

ColdFusion/CFML code:
<cfset xyz="123">

Java:
if(x.equals(y)) System.out.print("Hello World");

p/s: seem the simple codes displayed properly :) Read the full story

, ,

jquery: checking checkbox

Tuesday, November 25 0 comments

dalam javascript, kerja-kerja checking ni memang rumit. tapi dengan menggunakan jquery, kerja-kerja tersebut dipermudahkan.

kat sini aku nak share kod yang aku sering gunakan untuk buat checking checkbox bagi memastikan user dah tick checkbox sebelum dia klik submit.

contoh: confirm dulu sebelum proceed.

semua kerja-kerja checking tersebut di buat dalam hanya beberapa baris kod jquery seperti dibawah (tak sampai 30 baris pun) :

<script type="text/javascript">
$(document).ready(function() {
//this is Jquery language.

//this function is to make sure user select query to be deleted.
$("#removeDraftQuery").click(function (){
    var _isSelected = false;

    //jquery loop each of checkboxes
    $("input[type=checkbox]").each(function(){
        var isChecked = $(this).is(":checked");
        if(isChecked) _isSelected = true;
    });

    if(!_isSelected) {
        alert('Please select query to delete.'); return false;
    } else {
        if(!confirm('Are you sure to remove selected Query?')) return false;
    }
}); // end click function
}); //end document ready       
</script>

p/s: tu yang aku suka guna jquery. library dia kecik. simple. Read the full story

jQuery Extension for Dreamweaver

Wednesday, July 30 2 comments



This is a nice add-on for Ajax coder especially if you using JQuery library. Now, you can can download the helper extension for Dreamweaver CS3, 8, MX, MX 2004.

Download here. or go to http://xtnd.us

I'm search for this kind of jquery helper for some times, and until today I found the website that offer this free little but useful extension to help me learn JQuery effectively :) Read the full story