10 most Useful resources for jQuery across the web

jquery
While skimming the internet and searching for good learning resources for jQuery i found amazing links which can help anybody using or learning jQuery.

Below are the 10 very useful resource’s list. I hope it will be helpful to others.

Let’s start of with the link which can give us head start to our jQuery learning:

  1. 15 Resources To Get You Started With jQuery From Scratch
  2. Then comes a link to the best practices which we should follow to make our jquery and javascript run faster:

  3. Improve your jQuery-25 excellent tips
  4. Next comes up other links

  5. All the jQuery resources you’ll ever need
  6. 15 Days Of jQuery
  7. 5 JavaScript Tricks Made Easy with jQuery
  8. The 20 Most Practical and Creative Uses of jQuery
  9. 40+ JavaScript and jQuery resources that will make you a better Web developer
  10. 7 of my favorite jQuery plugins for use with ASP.NET
  11. 50+ Amazing Jquery Examples- Part1
  12. 70 New, Useful AJAX And JavaScript Techniques

Also See: Amazing List of Jquery Resources

kick it on DotNetKicks.com

Shout it

pimp it

What is Jquery

jQuery is a lightweight JavaScript library that emphasizes interaction between JavaScript and HTML. jQuery is an amazing JavaScript library that makes it easy to create wonderful web effects in just a few lines of code. jQuery is a new type of Javascript library. It is not a huge, bloated framework promising the best in AJAX – nor is it just a set of needlessly complex enhancements – jQuery is designed to change the way that you write Javascript.
jQuery is a Javascript library that takes this motto to heart: Writing Javascript code should be fun. jQuery achieves this goal by taking common, repetitive, tasks, stripping out all the unnecessary markup, and leaving them short, smart and understandable.
Quick Facts

• jQuery supports CSS 1-3 and basic XPath.
• jQuery is about 19kb in size.
• jQuery works in Firefox 1.0+, Internet Explorer 5.5+, Safari 1.3+, and Opera 8.5+.
• jQuery and Prototype can be used together!
• jQuery owns a strong and very flexible mechanism for adding in methods and functionality, bundled as plugins

jQuery contains the following features:

• DOM element selections using the cross-browser open source selector engine Sizzle, a spin-off out of jQuery project[3]
• DOM traversal and modification (including support for CSS 1-3 and basic XPath)
• Events
• CSS manipulation
• Effects and animations
• Ajax
• Extensibility
• Utilities – such as browser version and the each function.
The $ function• One of the critical concepts in any jQuery code is the so called ‘$’ function. ‘$’ is actually an ‘alias’ for the ‘jQuery’ namespace.
• Example 1: jQuery provides a function for trimming strings. This function can be used as:

 
•	str = "    foo     ";
•	jQuery.trim(str); // returns "foo"
•	Or, it can also be used as:
•	str = "    foo     ";
•	$.trim(str);

• These are equivalent. Usage of ‘$’ instead of ‘jQuery’ is an ad-hoc convention, and is considered easier[who?].
• Example 2: To select all the paragraphs that have the class ‘foo’ and add another class called ‘bar’ to all of them:
• $(“p.foo”).addClass(“bar”);
• Example 3: To execute a function ‘myfunc’ immediately after the page is loaded (called the ready handler in jQuery lingo):
• $(document).ready(function() {
• myfunc();
• });
• This is typically used in a context like this:
• $(document).ready(function() {
• // Stripe all the tables in the document using the oddStripe and evenStripe CSS classes.
• $(‘tr:nth-child(odd)’).addClass(“oddStripe”);
• $(‘tr:nth-child(even)’).addClass(“evenStripe”);
• });

For detailed information ,check this.-



http://
www.jquery.com/

Vertical Text Scroller in Javascript

Well the task is to create a vertical text scroller.

It can be done using the javascript code.

Let me explain the process:

  • First of all lets make the form scrolling. So,In the html form do the following add the following attributes to the body tag onMouseover="scrollspeed=0" onMouseout="scrollspeed=current" OnLoad="NewsScrollStart();"
  • And the javascript functions used above are as follows:
    <script language="JavaScript" type="text/javascript"> 
    //<!-- HIDE CODE 
    
    var scrollspeed = "1" // SET SCROLLER SPEED 1 = SLOWEST 
    var speedjump = "30" // ADJUST SCROLL JUMPING = RANGE 20 TO 40 
    var startdelay = "2" // START SCROLLING DELAY IN SECONDS 
    var nextdelay = "0" // SECOND SCROLL DELAY IN SECONDS 0 = QUICKEST 
    var topspace = "2px" // TOP SPACING FIRST TIME SCROLLING 
    var frameheight = "200px" // IF YOU RESIZE THE WINDOW EDIT THIS HEIGHT TO MATCH 
    
    
    
    current = (scrollspeed) 
    
    
    function HeightData(){ 
    AreaHeight=dataobj.offsetHeight 
    if (AreaHeight==0){ 
    setTimeout("HeightData()",( startdelay * 1000 )) 
    } 
    else { 
    ScrollNewsDiv() 
    }} 
    
    function NewsScrollStart(){ 
    dataobj=document.all? document.all.NewsDiv : document.getElementById("NewsDiv") 
    dataobj.style.top=topspace 
    setTimeout("HeightData()",( startdelay * 1000 )) 
    } 
    
    function ScrollNewsDiv(){ 
    dataobj.style.top=parseInt(dataobj.style.top)-(scrollspeed) 
    if (parseInt(dataobj.style.top)<AreaHeight*(-1)) { 
    dataobj.style.top=frameheight 
    setTimeout("ScrollNewsDiv()",( nextdelay * 1000 )) 
    } 
    else { 
    setTimeout("ScrollNewsDiv()",speedjump) 
    }} 
    
    
    
    // END HIDE CODE --> 
    </script> 
    
    
    
    
    
  • Inside the body tag create a div element with id=”NewsDiv”
  • In the code behind add labels with text per line into this div as shown below
  • ///
    /// Handles the Load event of the Page control.
    ///
    /// The source of the event.
    /// The instance containing the event data.
    protected void Page_Load(object sender, EventArgs e)
    {
    GenerateAlert();
    }
    // Private Methods (1)

    ///
    /// this method extracts the alerts and show them in a label
    ///
    private void GenerateAlert()
    {
    XmlDocument xmldoc = new XmlDocument();
    xmldoc.Load(Server.MapPath(“../XML Files/GlobalDisasters.xml”));
    XmlNodeList xmlndlst = xmldoc.GetElementsByTagName(“title”);

    for (int i = 0; i < xmlndlst.Count; i++)
    {
    lblAlert = new Label();
    string strTitle = xmlndlst[i].InnerText.ToString();
    lblAlert.Text = strTitle + “

    “;
    NewsDiv.Controls.Add(lblAlert);
    }
    }

    kick it on DotNetKicks.com