Skip to main content

Posts

Showing posts from 2009

Laying out elements - Flex vs HTML

I recently developed a Flex application. Before everything else I wanted to layout things. I had a trial version of Flex Builder with me. Designing the layout with Flex Builder is very easy. I can simply drag and drop components and create the layout. But I wanted to use IntelliJ IDEA as my IED. The main draw back for using Idea was been not able to preview the layout in design time. The solution to this problem came in two parts. 1 Design the site in relative layout 2 Use Flex component explorer as a reference (http://www.adobe.com/devnet/flex/tourdeflex/web/) All most all the tutorials out there explains how to create absolute layouts. This is ok when we have Flex builder. But when we are not with this tool, it's not easy to visualize the layout when we create absolute layouts. So I experimented with relative layouts in “mxml”. It is almost the same as html/css relative layouts. You simply have to make sure layout=”horizontal” or layout=“vertical” is set in the A

Vertical and horizontal drag/drop node tree

I was recently experimenting with a html tree which can manipulate it's nodes by drag and drop. I wanted to make it horizontally and vertically growable. When I was almost done, I had to rush for a much simpler version of this without the drag/drop part. I think the code I have written so far might be a good starting point to someone who is trying to do the same thing. Download Code The above code use script.aculo.us Prototype and YUI javascript libraries together. Now I am realizing that, using YUI alone might be a better solution for this since YUI also comes with the drag/drop support.

Are You Adapting Your architecture TO suit a vendor??? Learn how to find a vendor who adapts to your architecture?

Countless vendors, including proprietary middleware industry giants like IBM and Oracle, and open source platform companies like WSO2, have built products that enable SOA to varying extents. But no middleware product has taken a componentized approach to their own middleware “silos”. The features and functions of each middleware product have been predetermined by the vendor’s software designers, not built to each individual customer’s specification. WSO2 is presenting this nice little article and explaining how we can benefit by using there all new componentized Carbon as a solution for this problem. http://wso2.org/project/carbon/making_good_soa_great.pdf Content Componentization reaches enterprise it The need for modular middleware Use case base explanation Painless service creation & integration Set the pace of your SOA adoptions WSO2 Carbon: the evolution of middleware

Using javascript to Include a html file inside another html file

When there is no server side functionality needed we create the whole site in plain html. Usually these sites have left/right side menu, top header, footer etc.. If the site grows in to 20, 30 pages, it will be a headache to do a simple change like changing footer text. We will have to change each page. If we were using a server side technology like PHP, JSP, etc.., we will have the chance to keep the common areas in the site in different pages and include these parts in each page using a “include” statements. We can do the same thing with the plain old html and javascript. But how? First you need to create the site main layout using divs and give them unique ids. <html> <title>HTML Includes</title> <script language="javascript" src="js/main.js"></script> <script src="js/prototype.js" type="text/javascript"></script> <script language="javascript" xml:space="preserve"> // <

Useful method to find the next list node in an unordered list from javascript

If we try to use object.nextSibling to get the next list object of an unordered list, it is not always returning a list object. The following method can be use to get the next list object of an unordered list. function getNextLi(the_li) { var next_li = false; if (the_li.nextSibling != null && the_li.nextSibling.nodeName == "LI") next_li = the_li.nextSibling; return next_li; }

WSO2 is giving control back to software architects and developers to build and manage an SOA

SOA is a popular approach to enterprise architecture because it can improve IT flexibility, allowing a business to quickly adapt to changes. However, many specifications and implementations of "SOA solutions" are available making it somewhat difficult to figure what you really need (and what you don't) to build and manage an SOA. WSO2 is giving control back to software architects and developers, with a unified SOA middleware platform that allows you to seamlessly add product capabilities as your implementation grows. This modular platform is WSO2 Carbon. The design of WSO2 Carbon focuses on separating key functionality of the SOA platform into separate components that can be mixed and matched, like customizable building blocks. http://wso2.org/projects/carbon

Essential steps for cross browser compatible Javascript

Working with javascript opens up a whole set of possibilities for web developers. But at the same time, web developers have to deal with bunch of new issues when dealing with several browsers. The main reason behind this is because, each vendor has implemented the DOM in each browser differently. Some follows W3C standard while others don't. MS IE is the big bully in the block. IE usually doesn't respect W3C standards. So developers must put little extra effort from the very beginning of there development. Always use a cross browser compatible javascript library for your DOM methods. - YUI ( http://developer.yahoo.com/yui/event/ ) - JQuery ( http://jquery.com/ ) Separate the view of the application (HTML) from its behavior (JavaScript). Always be extra careful when dealing with dynamic event handlers. Ex: (YUI is used in the following example and it outlines a practice example of the above three) The html file (test.html) <html> <head>