JavaScript
  Home arrow JavaScript arrow Page 4 - JSP Libraries and AJAX
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVASCRIPT

JSP Libraries and AJAX
By: Mamun Zaman
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 12
    2007-08-29

    Table of Contents:
  • JSP Libraries and AJAX
  • AjaxTags Tags
  • jMaki
  • jMaki widgets
  • jMaki Menu, Data Table and More

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    JSP Libraries and AJAX - jMaki widgets


    (Page 4 of 5 )

    Here, you can see the JSP code at the left and the Palette at the right. There are a lot of jMaki widgets in the palette.

    jMaki has lots of widgets for Dojo, Google, Yahoo and Flickr. Using Flickr widgets, you can create captcha, word art, and search for images very easily. Let's create an image search using jMaki's Flickr widget. Just drag the widget from the palette and drop it into your JSP page. Now save the project, build and run. A browser will be opened as below.

    Enter some value in the edit box and click Search. It will get the images from Flickr using AJAX. I entered Toys as the tag and clicked search;, below is the output.

    Here is the code -

    <div class="main">
        <div class="leftSidebar">

            Sidebar Content Here

        </div> <!-- leftSidebar -->

        <div class="content" style="height:400px">

            <a:widget name="flickr.search" 
                args="{
                topic:'flickrSearch', 
                columns:3, 
                count:9
                }"
                service="/xhp"/>

        </div> <!-- content -->
    </div>

    Here is a nice Yahoo slide bar for you.

    <a:widget name="yahoo.slider" />

    Just add the above tag or drag it from palette. The output would be a nice simple slide bar.

    Now add a Tabbed View widget from the palette in your code. The code would be as shown here.

    <div class="content" style="height:400px"> 
        <a:widget name="yahoo.tabbedview"
            value="{tabs:[
            {label:'My Tab', content: 'Tab 1 Content'},
            {label:'My Tab 2', content: 'Tab 2 Content'}
            ]
            }" />

    </div> <!-- content -->

    You can change the labels here from 'My Tab' to anything you need. You can also have as much tabs as you need. The above code will create two tabs with labels and contents as below.

    More JavaScript Articles
    More By Mamun Zaman


     

    JAVASCRIPT ARTICLES

    - Using Click Interceptions with a Database-Dr...
    - Using JavaScript Click Interceptions in an I...
    - Using Click Interceptions with JavaScript
    - QuickSort in Action
    - Quicksort
    - Using Mod_Security to Protect Your Server
    - Detecting and Countering Server Intrusions
    - Securing Your Web Server
    - Building a Secure Web Server
    - Protecting the Server
    - Book Review: Learning the Yahoo! User Interf...
    - Dynamically Generate a Selection List in a R...
    - Intergrate DWR into Your Java Web Application
    - Detect Browser Compatibility with the Reques...
    - Using the EXT JS Date Picker Widget






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
    Stay green...Green IT