Link logic with slide and hide/show?

http://jsfiddle.net/SkiWether/KFmLv/

CSS:
/** Style for the body **/
body {
    font: 12px Tahoma, Arial, Helvetica, Sans-Serif;
}
/** Style for the button & div **/
.myButton {
    padding: .2em 1em;
    font-size: 1em;
}
.mySelect {
    padding: .2em 0;
    font-size: 1em;
}
#myDiv {
    color:Green;
    background-color:#eee;
    border:2px solid #333;
    display:none;
    text-align:justify;
}
#myDiv p {
    margin: 15px;
    font-size: 0.917em;
}
/** Style for the cointainer **/
#body {
    clear: both;
    margin: 0 auto;
    max-width: 534px;
}
html, body {
    background-color:White;
}
hr {
    margin-bottom:40px;
}
Javascript: [ Need jQuery & jQuery UI ]
$(".myButton").click(function () {
    // Set the effect type
    var effect = 'slide';

    // Set the options for the effect type chosen
    var options = { direction: $('.mySelect').val() };

    // Set the duration (default: 400 milliseconds)
    var duration = 500;

    $('#myDiv').toggle(effect, options, duration);
});

HTML:
<div id="body">
    
<h2>Slide toggle from right to left and left to right.</h2>
    <hr/>
    <p>
        <select class="mySelect">
            <option value="right">Right</option>
            <option value="left">Left</option>            
            <option value="up">Up</option>
            <option value="down">Down</option>
        </select>
        <button id="button" class="myButton">Run Effect</button>
    </p>
    <div id="myDiv">
        <p>Test content</p>
    </div>
</div>

Difference Between Black Box Testing and White Box Testing

From:

Many times, I have heard from reader about few terminology of Software Testing. Amongst the list readers asking about the what is meaning of Black Box and White Box testing. They were totally confused on the this Software Testing terminology and who is responsible for doing this type of testing, when it is carried out and what all inputs required to perform such types of testing.

So to answer all questions in today’s article we will covering Difference between Black Box Testing and White Box Testing.

             Black Box Testing                    White Box Testing

1

Black box testing is the software testing method which is used to test the software without knowing the internal structure of code or program. White box testing is the software testing method in which internal structure is being known to tester who is going to test the software.

2

This type of testing is carried out by testers. Generally, this type of testing is carried out by software developers.

3

Implementation Knowledge is not required to carry out Black Box Testing. Implementation Knowledge is required to carry out White Box Testing.

4

Programming Knowledge is not required to carry out Black Box Testing. Programming Knowledge is required to carry out White Box Testing.

5

Testing is applicable on higher levels of testing like System Testing, Acceptance testing. Testing is applicable on lower level of testing like Unit Testing, Integration testing.

6

Black box testing means functional test or external testing. White box testing means structural test or interior testing.

7

In Black Box testing is primarily concentrate on the functionality of the system under test. In White Box testing is primarily concentrate on the testing of program code of the system under test like code structure, branches, conditions, loops etc.

8

The main aim of this testing to check on what functionality is performing by the system under test. The main aim of White Box testing to check on how System is performing.

9

Black Box testing can be started based on Requirement Specifications documents. White Box testing can be started based on Detail Design documents.

10

The Functional testing, Behavior testing, Close box testing is carried out under Black Box testing, so there is no required of the programming knowledge. The Structural testing, Logic testing, Path testing, Loop testing, Code coverage testing, Open box testing is carried out under White Box testing, so there is compulsory to know about programming knowledge.

Source: Software Testing Classes

DataTables – Excluding columns from sorting [no sort]

http://wiki.koha-community.org/wiki/DataTables_HowTo

Excluding columns from sorting

Often a table will have columns which should be excluded from sorting because they contain inputs or other controls. To exclude a column from sorting add a "nosort" class to the table header cell:

<thead>
  <tr>
   <th class="nosort">Don't sort this column</th>
   <th>Sort this column</th>
   <th>Sort this column</th>
   …

In the configuration for that table indicate that columns with class "nosort" should be excluded from sorting:

$(document).ready(function(){
    $("#mytable").dataTable($.extend(true, {}, dataTablesDefaults, {
        "aoColumnDefs": [
            { 'bSortable': false, 'aTargets': [ 'nosort' ] }
        ]
    }));
});

2013 in review

The WordPress.com stats helper monkeys prepared a 2013 annual report for this blog.

Here’s an excerpt:

A New York City subway train holds 1,200 people. This blog was viewed about 5,900 times in 2013. If it were a NYC subway train, it would take about 5 trips to carry that many people.

Click here to see the complete report.

Important Websites

important_websites
சில பயனுள்ள இனையத்தளங்கள் . Relaxplzzசான்றிதழ்கள்1) பட்டா / சிட்டா அடங்கல்
http://taluk.tn.nic.in/edistrict_certificate/land/chitta_ta.html?lan=ta2) அ-பதிவேடு விவரங்களை பார்வையிட
http://taluk.tn.nic.in/eservicesnew/land/areg_ta.html?lan=ta

3) வில்லங்க சான்றிதழ்
http://www.tnreginet.net/igr/webAppln/EC.asp?tams=0

4) பிறப்பு மற்றும் இறப்பு சான்றிதழ்
http://www.tn.gov.in/appforms/birth.pdf

http://www.tn.gov.in/appforms/death.pdf

5) சாதி சான்றிதழ் / வாரிசு சான்றிதழ்
http://www.tn.gov.in/appforms/cert-community.pdf

6) இருப்பிட மற்றும் வருமான சான்றிதழ்
http://www.tn.gov.in/appforms/cert-income.pdf

C. E-டிக்கெட் முன் பதிவு

1) ரயில் மற்றும் பஸ் பயண சீட்டு
http://tnstc.ticketcounters.in/TNSTCOnline/

http://www.irctc.co.in/

http://www.yatra.com/

http://www.redbus.in/

2) விமான பயண சீட்டு
http://www.cleartrip.com/

http://www.makemytrip.com/

http://www.ezeego1.co.in/

D. E-Payments (Online)

1) BSNL தொலைபேசி மற்றும் Mobile Bill கட்டணம் செலுத்தும் வசதி
http://portal.bsnl.in/portal/aspxfiles/login.aspx

2) Mobile ரீ- சார்ஜ் மற்றும் டாப் அப் செய்யும் வசதி
https://www.oximall.com/

http://www.rechargeitnow.com/

http://www.itzcash.com/

3) E.B. Bill கட்டணம் செலுத்தும் வசதி
http://www.itzcash.com/

https://www.oximall.com/

http://www.rechargeitnow.com/

4) NEFT / RTGS மூலம் பிறர் ACCOUNT ‘க்கு பணம் மாற்றும் வசதி

5) E-Payment செய்து வேண்டிய பொருள் வாங்கும் வசதி
http://www.ebay.co.in/

http://shopping.indiatimes.com/

http://shopping.rediff.com/shopping/index.html

6) Share Market – பங்குச் சந்தையில் On-Line வணிகம் செய்யும் வசதி
http://www.icicidirect.com/

http://www.hdfcsec.com/

http://www.religareonline.com/

http://www.kotaksecurities.com/

http://www.sharekhan.com/

E. கல்வி மற்றும் வேலை வாய்ப்பு சார்ந்த சேவைகள் (Online)

1) மாணவர்கள் மேற்படிப்புக்கான வங்கிக் கடன் விவரங்கள் மற்றும் விண்ணப்பங்கள்
https://www.sbi.co.in/user.htm?action=viewsection&lang=0&id=0%2C1%2C20%2C118

http://www.indianbank.in/education.php

http://www.iob.in/vidya_jyothi.aspx

http://www.bankofindia.com/eduloans1.aspx

http://www.bankofbaroda.com/pfs/eduloans.asp

http://www.axisbank.com/personal/loans/studypower/Education-Loan.asp

http://www.hdfcbank.com/personal/loans/educational_loan/el_indian/el_indian.htm

2) பள்ளி மற்றும் கல்லூரி தேர்வு முடிவு / மதிப்பெண் பற்றிய தகவல் அறிந்துக் கொள்ளும் வசதி
http://www.tn.gov.in/dge/

http://www.tnresults.nic.in/

http://www.dge1.tn.nic.in/

http://www.dge2.tn.nic.in/

http://www.Pallikalvi.in/

http://www.results.southindia.com/

http://www.chennaionline.com/results

3) சமச்சீர் கல்வி பாட புத்தகங்களை பதிவிறக்கம் செய்ய
http://www.tn.gov.in/dge

4) இனையதளங்கள் மூலமாக 10th, 12th Std பாடங்களை கற்றுக்கொள்ளும் வசதி
http://www.classteacher.com/

http://www.lampsglow.com/

http://www.classontheweb.com/

http://www.edurite.com/

http://www.cbse.com/

5) 10th & 12th வகுப்பிற்கான அரசு தேர்வு மாதிரி கேள்வி தாள்கள் மற்றும் பாடங்களை படிக்க அல்லது பதிவிறக்கம் செய்ய
http://www.kalvisolai.com/

6) UPSC/ TNPSC/ BSRB / RRB / TRB க்கான பயிற்சி, தேர்வு மற்றும் வேலை வாய்ப்புகள் பற்றிய தகவல் அறிந்துக் கொள்ளும் வசதி
http://www.tnpsc.gov.in/

http://www.upsc.gov.in/

http://upscportal.com/civilservices/

http://www.iba.org.in/

http://www.rrcb.gov.in/

http://trb.tn.nic.in/

7) உள் நாடு மற்றும் உலக நாடுகளில் வேலை வாய்ப்புகள் பற்றிய தகவல் அறிந்துக் கொள்ளும் வசதி, பதிவு செய்து விண்ணப்பிக்கும் வசதி
http://www.employmentnews.gov.in/

http://www.omcmanpower.com/

http://www.naukri.com/

http://www.monster.com/
.இந்திய ராணுவத்தில் வேலை வாய்ப்புகள் அறிய
http://www.ssbrectt.gov.in/

http://bsf.nic.in/en/career.html

http://indianarmy.nic.in/

9) இந்திய கப்பல் படையில் பயிற்சி மற்றும் வேலை வாய்ப்புகள் அறிய
http://nausena-bharti.nic.in/

10) Face to Face chat / Interview நேர்காணல் செய்யும் வசதி
http://www.skype.com/

http://www.gmail.com/

http://www.yahoochat.com/

http://www.meebo.com/

F. கணினி பயிற்சிகள் (Online)

1) அடிப்படை கணினி பயிற்சி
http://www.homeandlearn.co.uk/

http://www.intelligentedu.com/

http://www.ehow.com/about_6133736_online-basic-computer-training.html

2) சிறார்களுக்கு கணினி பயிற்சி
http://www.ehow.com/video_5846782_basic-computer-training-children.html

3) இ – விளையாட்டுக்கள்
http://www.zapak.com/

http://www.miniclip.com/

http://www.pogo.com/

http://www.freeonlinegames.com/

http://www.roundgames.com/

4) ப்ரௌசிங், இ-மெயில், சாட்டிங், வெப் கான்ஃபெரென்ஸ், தகவல் தேடுதள்
http://www.google.com/

http://www.wikipedia.com/

http://www.hotmail.com/

http://www.yahoo.com/

http://www.ebuddy.com/

http://www.skype.com/

G. பொது சேவைகள் (Online)

1) தகவல் அறியும் உரிமை சட்டம்
http://rti.gov.in/

http://www.rtiindia.org/forum/content/

http://rti.india.gov.in/

http://www.rti.org/

2) சுற்றுலா மற்றும் முக்கிய தலங்கள் பற்றிய தகவல் பெறும் வசதி
http://www.incredibleindia.org/

http://www.india-tourism.com/

http://www.theashokgroup.com/

http://www.smartindiaonline.com/

3) திருமணம் புரிய விரும்புவோர் இணையதளங்கள் மூலமாக பதிவு செய்து தங்கள் வாழ்க்கை துணையை தேடி தேர்வு செய்யும் வசதி
http://www.tamilmatrimony.com/

http://kalyanamalai.net/

http://www.bharatmatrimony.com/

http://www.shaadi.com/

4) குழந்தைகளுக்கான தமிழ் பெயர்களை அர்த்ததோடு பார்க்கவும் மற்றும் தமிழ் அகராதி, தமிழ் புத்தகங்களை பார்க்க மற்றும் பதிவிறக்கம் செய்ய
http://www.tamilcube.com/

5) ஜாதகம் மற்றும் ராசிபலனை அறிந்துக் கொள்ள
http://www.koodal.com/

http://freehoroscopesonline.in/horoscope.php

6) இனையதளம் மூலமாக இந்தியாவில் எந்த ஒரு மொபைலுக்கும் இலவசமாக SMS அனுப்பும் வசதி
http://www.way2sms.com/

7) இனையதளம் மூலமாக உங்களுக்கு தேவையான VIDEO படங்களை தேடி கண்டு மகிழலாம்
http://www.youtube.com/
இனையதளம் மூலமாக உங்களுக்கு தேவையான தொழில் / வர்த்தகம் மற்றும் ஸ்தாபனங்கின் முகவரி / தொலைபேசி தகவல்கலை இலவசமாக தேடி தெரிந்து கொள்ளலாம்
http://www.justdial.com/

9) இனையதளம் மூலமாக உங்களுக்கு தேவையான மொழியில் தினசரி / வார நாளிதல்களை இலவசமாக வாசித்து செய்திகளை அறியலாம்
http://www.dinamalar.com/

http://www.dinamani.com/

http://www.dailythanthi.com/

http://www.tamilnewspaper.net/

http://www.vikatan.com/

http://www.puthiyathalaimurai.com/

http://www.nakkheeran.in/

10) இனையதளம் மூலமாக உங்களுக்கு தேவையான தொலைக்காட்சியில் ஒளிபரப்பாகும் நிகழ்ச்சிகளை நேரலையாக இலவசமாக கண்டு மகிழலாம்
http://puthiyathalaimurai.tv/new/

http://www.bbc.co.uk/

11) SPEED POST மூலமாக நீங்கள் அனுப்பும் தபால்களை இந்திய தபால் துறையின் இனையதளம் மூலமாக தபால் சேர்ந்த விவரம் அறியலாம்
http://services.ptcmysore.gov.in/Speednettracking/Track.aspx

12) இந்திய தபால் துறையின் INTERNATIONAL SPEED POST / ELECRTONIC MONEY ORDER / REGISTERED POST / EXPRESS PARCEL / E-VPP சேவைகளை தபால் துறையின் இனையதளம் மூலமாக விவரம் அறியலாம்.
http://www.indiapost.gov.in/tracking.aspx

H. மென்பொருள் (Software) பதிவிறக்கம் செய்ய

1) இனையதளம் மூலமாக உங்களுக்கு தேவையான மென்பொறுளை இலவசமாக பதிவிறக்கம் செய்து உபயோகிக்கலாம்
http://www.filehippo.com/

I. வணிகம் (Economy)

1) தமிழ் நாட்டின் இன்றைய தங்கம் மற்றும் வெள்ளியின் விலை விவரம் அறியலாம்
http://www.goldenchennai.com/

http://www.rates.goldenchennai.com/

http://www.bullionrates.in/p/live-bullion-rates.html

2) வெளிநாட்டின் பணமதிப்புக்கு இந்திய ரூபாயின் அன்றைய மாற்றத்தக்க மதிப்பை அறியலாம்
http://www.gocurrency.com/

http://www.xe.com/

H. அரசு சார்ந்த விண்ணப்ப படிவங்கள் (Online)

1) பாஸ்போர்ட் விண்ணப்பம்
http://www.passport.gov.in/

2) பட்டதாரிகள் அரசு வேலைவாய்ப்பிற்கு பதிவு செய்ய
http://www.tn.gov.in/services/employment.html

J. அரசு நலத் திட்ட படிவங்கள் (Online)

1) குடும்ப அட்டை
http://www.tn.gov.in/appforms/ration.pdf

2) மகளிர் சுய வேலை வாய்ப்பு திட்டத்தின் கீழ் வங்கிக் கடன் பெறுவதற்கான விண்ணப்பம்
http://www.tn.gov.in/tamiltngov/appforms/socialwelfare/wses_bankloan_form.pdf

3) பெண்கள் திருமணத்திற்கு கோரப்படும் உதவித் தொகை விண்ணப்பம் மற்றும் பெண் குழந்தை பாதுகாப்பு திட்டம்
http://www.tn.gov.in/tamiltngov/appforms/socialwelfare/socialwelfareschemes.pdf

4) நலிந்தோர் குடும்ப நல நிதியுதவி பெருவதற்கான மனு
http://www.tn.gov.in/tamiltngov/appforms/pdf-drs.pdf

5) ஆதரவற்ற முதியோர் / விதவைகள் / கணவனால் கைவிடப்பட்ட பெண்கள் / உடல் ஊனமுற்றோர் உதவி தொகைக்கான மனு
http://www.tn.gov.in/tamiltngov/appforms/pdf-oap.pdf

http://www.tn.gov.in/schemes/swnmp/social_security_net.pdf

6) புல எல்லை அளந்து அத்து காட்டக் கோருவதற்கான விண்ணப்பம்
http://www.tn.gov.in/tamiltngov/appforms/pdf-boundary.pdf

7) திருமணப்பதிவிற்கான குறிப்பாவணம் மற்றும் விண்ணப்ப படிவம்
http://www.tnreginet.net/english/Applforms/appln3.doc

http://www.tnreginet.net/english/Applforms/compulsory_marriage/Comp_Marriage_Application_Tamil.pdf
பட்டா பதிவு மாற்றம் கோருவதற்கான விண்ணப்ப படிவம் – சாதாரண பெயர் மாற்றம் / உட்பிரிவு மாற்றம்
http://www.tn.gov.in/tamiltngov/appforms/pdf-patta-transfer.pdf

K. விவசாய சந்தை சேவைகள் (Online)

1) தேசிய அளவிலான விற்பனை நிலவரம்
http://agmarknet.nic.in/

2) பதிவு செய்து தினசரி சந்தை விலைகளை பெறும் வசதி
http://indg.in/agriculture/e2030aci-nya2039-aea3153oiTM-moo2039/

3) தோட்டப்பயிரகளின் சந்தை நிலவரம்
http://nhb.gov.in/OnlineClient/categorywiseallvarietyreport.aspx

4) முக்கிய வியாபாரிகள் பற்றிய விவரம்
http://indg.in/agriculture/major-traders-database/

5) தமிழ்நாட்டில் உள்ள விவசாய அமைப்புகள் / சங்கங்கள்
http://indg.in/agriculture/database-of-growers-federations-farmers-associations-in-tamil-nadu/

6) கொள்முதல் விலை நிலவரம்
http://www.tnsamb.gov.in/price/login.php

7) ஒழுங்குமுறை விற்பனை கூடம்
http://www.tnsamb.gov.in/mktcom.php
தினசரி சந்தை விற்பனை விலை நிலவரம்
http://59.90.246.98/pricelist/

9) வானிலை செய்திகள்
http://services.indg.in/weather-forecast/

L. தொழில் நுட்பங்கள்

1) பயிர் சாகுபடி, பாதுகாப்பு மற்றும் பயிர் பெருக்கம்
http://www.agritech.tnau.ac.in/ta/Agriculture/agri_index_ta.html

http://www.agritech.tnau.ac.in/ta/crop_protection/crop_prot_ta.html

2) விதை கொள்முதல் செய்ய இருப்பு நிலை விவரம்
http://www.tnagrisnet.tn.gov.in/website/availabilityReports.php?type=Seed

3) உயிரிய தொழில்நுட்பம்
http://www.agritech.tnau.ac.in/ta/bio_tech/biotech_ta.html

4) அறுவடை பின்சார் தொழில் நுட்பம்
http://www.agritech.tnau.ac.in/ta/post_harvest/post_harvest_ta.html

5) உயிரி எரிபொருள்
http://www.agritech.tnau.ac.in/ta/bio_fuels/bio_fuels_ta.html

M. வேளாண் செய்திகள்

1) பாரம்பரிய வேளாண்மை
http://www.agritech.tnau.ac.in/ta/itk/indi_farm_ta.html

http://www.agritech.tnau.ac.in/ta/crop_protection/crop_prot_ta.html

2) வளம்குன்றா வேளாண்மை
http://www.agritech.tnau.ac.in/ta/sustainable_agri/susagri_ta.html

3) பண்ணை சார் தொழில்கள்
http://www.agritech.tnau.ac.in/ta/farm_enterprises/farm_enter_ta.html

4) ஊட்டச்சத்து
http://www.agritech.tnau.ac.in/ta/nutrition/nutrition_ta.html

5) உழவர்களின் கண்டுபிடிப்பு
http://www.agritech.tnau.ac.in/ta/farm_innovations/farm_innovations.html

N. திட்டம் மற்றும் சேவைகள்

1) ஊரக வளர்ச்சி மற்றும் ஊராட்சி துறையின் திட்டங்கள் & சேவைகள்
http://www.tnrd.gov.in/schemes_states.html

2) வேளாண் மற்றும் ஊரக வளர்ச்சிக்கான திட்டங்கள் & சேவைகள்
http://www.agritech.tnau.ac.in/ta/govt_schemes_services/govt_serv_schemes_ta.html

3) வட்டார வளர்ச்சி
http://www.agritech.tnau.ac.in/ta/dev_blocks/indextnmap_ta.html

4) வங்கி சேவை & கடனுதவி
http://www.agritech.tnau.ac.in/ta/banking/credit_bank_ta.htm

5) பயிர் காப்பீடு
http://www.agritech.tnau.ac.in/ta/crop_insurance/crop_ins_ta.html

6) Krishi Vigyan Kendra (KVK) | Agricultural Technology Management Agency (ATMA)
http://www.agritech.tnau.ac.in/ta/kvk/kvk_ta.html

http://www.agritech.tnau.ac.in/ta/atma/atma_ta.html

7) NGOs & SHGs
http://www.agritech.tnau.ac.in/ta/ngo_shg/ngo_shg_ta.html
அக்ரி கிளினிக்
http://www.agriclinics.net/

9) கிசான் அழைப்பு மையம்
http://www.agritech.tnau.ac.in/ta/kisan/kisan_ta.html

10) பல்லாண்டு மேம்பாட்டு குறிக்கோள்
http://www.agritech.tnau.ac.in/ta/mdg/mdg_ta.html

11) கேள்வி பதில்
http://www.agritech.tnau.ac.in/ta/faq_ta.html

12) பல்கலைக்கழக வெளியீடுகள்
http://www.agritech.tnau.ac.in/ta/tnau_publications/tnau_publish_ta.html

O. ஈ – வேளாண்மை செய்தி மற்றும் சேவைகள்

1) தோட்டக்கலை
http://www.agritech.tnau.ac.in/ta/horticulture/horti_index_ta.html

2) வேளாண் பொறியியல்
http://www.agritech.tnau.ac.in/ta/agrl_engg/agriengg_index_ta.html

3) விதை சான்றிதழ்
http://www.agritech.tnau.ac.in/ta/seed_certification/seedcertification_index_ta.html

4) அங்கக சான்றிதழ்
http://www.agritech.tnau.ac.in/ta/org_farm/orgfarm_index_ta.html

5) பட்டுபுழு வளர்பு
http://www.agritech.tnau.ac.in/ta/sericulture/seri_index_ta.html

6) வனவியல்
http://www.agritech.tnau.ac.in/ta/forestry/forestry_tamil_index.html

7) மீன்வளம் மற்றும் கால்நடை
http://www.agritech.tnau.ac.in/ta/fisheries/fish_index_ta.html
தினசரி வானிலை, மழைப்பொழிவு மற்றும் நீர்த்தேக்க நிலைகள்
http://services.indg.in/weather-forecast/

9) விதை மற்றும் உரம் தயாரிப்பாளர் விபரம்
http://www.tnsamb.gov.in/seedcomp.html

http://www.tnsamb.gov.in/fertilizers.html

10) உரங்களின் விலை விபரம்
http://www.tnagrisnet.tn.gov.in/website/FertilizerPrice.php

P. போக்குவரத்து துறை

1) ஓட்டுனர் பழகுனர் உரிமம் மனு முன்பதிவு
http://www.tn.gov.in/appforms/form2.pdf

2) புகார்/கோரிக்கைப் பதிவு
http://transport.tn.nic.in/transport/registerGrievanceLoad.do

3) வாகன வரி விகிதங்கள்
http://www.tn.gov.in/sta/taxtables.html

4) புகார்/கோரிக்கை நிலவரம்
http://transport.tn.nic.in/transport/grievance_statusLoad.do

5) ஓட்டுனர் உரிமம் சேவை முன்பதிவு
http://tnsta.gov.in/transport/transportTamMain.do

6) தொடக்க வாகன பதிவு எண்
http://transport.tn.nic.in/transport/rtoStartNoListAct.do

ரிலாக்ஸ் ப்ளீஸ்

Facebook – Like Count / Comment Count using Javascript

In facebook, we can get the post/photo/video URL  like count / comment count / other information from graph.facebook.com.

It returns the entire object and we display the like count / comment count in our example.

<script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js”></script&gt;
<script language=”javascript” type=”text/javascript”>
//var url = ‘http://graph.facebook.com/?id=https://www.facebook.com/photo.php?fbid=199800716810262&set=a.172810786175922.5839.172632706193730&type=1&theater&#8217;;
//OR
var url = ‘http://graph.facebook.com/199800716810262&#8217;;
jQuery.ajax({
url: url,
dataType: ‘jsonp’,
success: function(data) {
document.write(“Like Count:”+data.likes.data.length);
document.write(“\nComment Count:”+data.comments.data.length);
}
});
</script>

 

Output:

Image

Thanks to: http://stackoverflow.com/questions/14813457/facebook-graph-returns-same-like-share-comment-count-for-several-pages

restrict event propagation in javascript

<tr id=”my_tr” onclick=”javascript:my_tr_click();”>
<td>
<a id=”my_atag” href=”javascript:void(0);” onclick=”javascript:var event = arguments[0] || window.event; my_a_click(event);”>Delete</a>
<td>
</tr>

<script>
function my_tr_click() {
alert(‘tr click’);
}

function my_a_click(e) {
alert(‘td a click’);
e.cancelBubble = true;
if (e.stopPropagation)
e.stopPropagation();
}
</script>

Encryption

Encryption

Encryption, a sub-set of cryptography, is the process of encoding data so that it is accessible only to authorized parties.  Modern computer users enjoy the benefits of encryption in many different forms including encrypted browsing connections (via SSL) while accessing financial data or submitting credit card payments, the ability to encrypt entire hard disks with modern operating systems and tools (such as BitLocker in Windows 7), and email/message encryption (via tools like Pretty Good Privacy).

There are two primary types of encryption, symmetric-key and public-key.  Symmetric key is the oldest type of encryption and uses both the same algorithm for encrypting and decrypting the message.  A simple shift-cipher (wherein you, say, shift all the letters in the alphabet over one space to create a code) is an example of a symmetric key encryption technique.  The key you use to encrypt the message is the key the recipient uses to decrypt it.  This form of encryption is inherently weak as both parties (or machines) need to know the secret key to use it.

Symmetric-key encryption has been replaced by public-key (or asymmetric-key) encryption.  With public-key encryption one key is used for encrypting and, thanks to complex mathematical algorithms, another key (the privately held key) is used for decryption.  Thus with a public-private key system a message can be encrypted by a third party using the public key that only the individual with the private key can decrypt.  This method forms the basis of many modern encryption techniques including the Diffie-Hellman method and RSA encryption.

For more information on encryption, including how to use it to secure your data, check out the following How-To Geek articles:

Thanks to Hot-To-Geek.

converting javascript object to string

function objToString (obj) {
    var str = '';
    for (var p in obj) {
        if (obj.hasOwnProperty(p)) {
            str += p + '::' + obj[p] + '\n';
        }
    }
    return str;
}


jQuery – Get Object Length

<script language=”javascript” type=”text/javascript”>
len = function(obj) {
var L=0;
$.each(obj, function(i, elem) {
L++;
});
return L;
}

// calling
var dataobjlen = len(dataobj);
</script>