Skip to main content

Posts

Showing posts from March, 2012

DOM

What is the DOM? "The W3C Document Object Model (DOM) is a platform and language-neutral interface that allows programs and scripts to dynamically access and update the content, structure, and style of a document." The W3C DOM provides a standard set of objects for representing HTML and XML documents, and a standard interface for accessing and manipulating them. The DOM is separated into different parts (Core, XML, and HTML) and different levels (DOM Level 1/2/3): Core DOM - defines a standard set of objects for any structured document XML DOM - defines a standard set of objects for XML documents HTML DOM - defines a standard set of objects for HTML documents You can read more about the W3C DOM specifications What is the XML DOM? The XML DOM is the Document Object Model for XML The XML DOM is platform and language independent The XML DOM defines a standard set of objects for XML, and a standard way to access and manipulate XML documents The XML DOM is a W3C standard The XML D

python tutorial

Python is a high-level, interpreted, interactive and object oriented-scripting language. Python was designed to be highly readable which uses English keywords frequently where as other languages use punctuation and it has fewer syntactical constructions than other languages. Python is Interpreted: This means that it is processed at runtime by the interpreter and you do not need to compile your program before executing it. This is similar to PERL and PHP. Python is Interactive: This means that you can actually sit at a Python prompt and interact with the interpreter directly to write your programs. Python is Object-Oriented: This means that Python supports Object-Oriented style or technique of programming that encapsulates code within objects. Python is Beginner's Language: Python is a great language for the beginner programmers and supports the development of a wide range of applications, from simple text processing to WWW browsers to games. History of Python: Python was developed

CSS tutorial

Introduction to CSS Imagine you've just designed a two hundred page web site for a client (or maybe for yourself) but at the last minute your client (or you) decide the font is a little two small or the typeface should be serif instead of sans-serif? You didn't know how to use cascading style sheets (CSS) so you coded all of the pages with the old-style <font> tag. If you didn't know CSS, chances are you'd have to replace every occurrence of the old <font> tag with the new <font> tag. But if you had decided to write the site with CSS from the get-go, all you would have to do is replace one single line of code in a master file, and your entire site would be rendered immediately in your new style. That's just one file to upload. That's a lot better than two hundred. Now you can do other things with your time. This is one major reason cascading style sheets are important. CSS makes web site maintenance easier.  CSS LINKS a:link { } - regular link

xml tutorial

What is XML? XML (eXtensible Markup Language) is a meta-language; that is, it is a language in which other languages are created. In XML, data is "marked up" with tags, similar to HTML tags. In fact, the latest version of HTML, called XHTML, is an XML-based language, which means that XHTML follows the syntax rules of XML. XML is used to store data or information. This data might be intended to be by read by people or by machines. It can be highly structured data such as data typically stored in databases or spreadsheets, or loosely structured data, such as data stored in letters or manuals. XML Benefits Initially XML received a lot of excitement, which has now died down some. This isn't because XML is not as useful, but rather because it doesn't provide the Wow! factor that other technologies, such as HTML do. When you write an HTML document, you see a nicely formatted page in a browser - instant gratification. When you write an XML document, you see an XML document -

RSS tutorial

RSS stands for Really Simple Syndication. What is RSS? RSS (Really Simple Syndication) is a format for delivering regularly changing web content. Many news-related sites, weblogs and other online publishers syndicate their content as an RSS Feed to whoever wants it.

Ajax

AJAX = Asynchronous JavaScript and XML.   AJAX  how many types of ready states in ajax? Four ready state 0: request not initialized 1: server connection established 2: request received 3: processing request 4: request finished and response is ready Return A 200 Ok Status Programmatically To Ajax Request? I ask this question for the comment of this answer: url EDIT I missed an important point,should also keep the connection not closed. I'm trying to figure out how long polling actually works.

java script

This Javascript tutorial is for people with little or no experience with programming. It covers these topics: The Definition of Javascript The History of Javascript Java Versus Javascript Learning Javascript A Basic JavaScript Example The Definition of Javascript JavaScript is a type of programming language that works with HTML to make web pages more interactive. For instance, if you had a trivia quiz on a web page you could use JavaScript to check the answers. Javascript is limited. It is not a full-featured programming language like Java or C++. Think of the JavaScript language as a simple, easy-to-use programming language that has only the features necessary to make web pages interactive. The History of Javascript When the Web was first created in the early 1990s all web pages were static. In other words there were no popup windows, no shopping carts, no flying thingy's etc. Pages just stayed still. At that time Netscape Navigator and Internet Explorer were the top browsers. Net

struts with in jdbc

How many types of JDBC Drivers are present and what are they? JDBC drivers are divided into four types or levels. The different types of jdbc drivers are: Type 1: JDBC-ODBC Bridge driver (Bridge) Type 2: Native-API/partly Java driver (Native) Type 3: All Java/Net-protocol driver (Middleware) Type 4: All Java/Native-protocol driver (Pure) What Class.forName will do while loading drivers? It is used to create an instance of a driver and register it with the Driver Manager. When you have loaded a driver, it is available for making a connection with a DBMS. What are stored procedures? How is it useful? A stored procedure is a set of statements/commands which reside in the database. The stored procedure is pre-compiled and saves the database the effort of parsing and compiling sql statements every time a query is run. Each database has its own stored procedure language, usually a variant of C with a SQL preprocessor. Before the advent of 3-tier/n-tier architecture it was pretty common for s

jsp

jsp : java server page   JSP Comments: JSP comment marks text or statements that the JSP container should ignore. A JSP comment is useful when you want to hide or "comment out" part of your JSP page. Following is the syntax of JSP comments: <%-- This is JSP comment --%> jsp tags :     1.directives    2. scriptlet    3. declarations   4. expressions       1.directives     JSP directives provide directions and instructions to the container, telling it how to handle certain aspects of JSP processing. A JSP directive affects the overall structure of the servlet class. It usually has the following form: <%@ directive attribute="value" %> scriptlet tag  A scriptlet can contain any number of JAVA language statements, variable or method declarations, or expressions that are valid in the page scripting language. Following is the syntax of Scriptlet: <% code fragment %> You can write XML equivalent of the above syntax as follows: <jsp:scriptlet>    cod

EJB

EJB 3 Basics J2EE is a technology from Sun to develop multi tier applications. It is a standard which is implemented by many container providers. The container provides functionality like transaction management, clustering, caching, messaging between applications or in an application and much more. EJB 3 is becoming the next version of EJB. In March 2006, there are first demo implementations by some application server providers. This tutorial uses JBoss as application server. An EJB (Enterprise Java Bean) is a special kind of class. There are three major types of EJBs. Entity Beans They can be used to map an entry in a database table to a class. (Object Relational Mapping) Instead of using result Sets from a database query you work with a class. The application server provides the functionality to load, update or delete the values of a class instance to the database. Session Beans Session beans are used to implement the functionality of your application. There are two kind of session b

servlets

Listening to HttpSession Events The javax.servlet.http package provides two interfaces that you can implement to listen to HttpSession events: HttpSessionListener and HttpSessionAttributeListener. The first enables you to listen to a session's life cycle events, that is, the event that gets triggered when an HttpSession object is created and the event that is raised when an HttpSession object is destroyed. The second interface, HttpSessionAttributeListener, provides events that get raised when an attribute is added to, removed from, or modified in the HttpSession object. The HttpSessionListener Interface :- public void sessionCreated(HttpSessionEvent se) public void sessionDestroyed(HttpSessionEvent se) The HttpSessionEvent class is derived from the java.util.EventObject class. The HttpSessionEvent class defines one new method called getSesssion that you can use to obtain the HttpSession object that is changed. The HttpSessionAttributeListener Interface :- public void attributeAdde

jdbc tutorial

 definitions JDBC is an API for the Java programming language that defines how a client may access a database. It provides methods for querying and updating data in a database. JDBC is oriented towards relational databases. The JDBC API is a Java API that can access any kind of tabular data, especially data stored in a Relational Database. JDBC helps you to write java applications that manage these three programming activities: Connect to a data source, like a database Send queries and update statements to the database Retrieve and process the results received from the database in answer to your query The following simple code fragment gives a simple example of these three steps: Connection con = DriverManager.getConnection            ( "jdbc:myDriver:wombat", "myLogin","myPassword"); Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery("SELECT a, b, c FROM Table1"); while (rs.next()) { int x = rs.getInt("a");

best job sites lists

www.naukri.com www.monsterindia.com www.timesjobs.com www.jobstreet.co.in www.govtjobsdaily.com www.careerbuilder.co.in www.careerjet.com www.naukrihub.com jobs.oneindia.in www.bestjobsindia.in www.careesma.in www.bixee.com www.wisdomjobs.com www.clickjobs.com www.careerage.com www.freshersworld.com www.placementindia.com www.topindiajobs.com www.shine.com www.apnacircle.com bank jobs  sites     yes we can

java/php

A PHP front end is contained in, or associated with, a Java back end. The invoked front end use XML/HTTP to invoke Java procedures/methods of the running back end. Both, the front end and the back end establish a continuation which may be called at any time from the other continuation. For example procedures of the current PHP environment or of any PHP object called by java as long as the connection is established. The mechanism can also be used programmatically: the JSR 223 interface can be used to invoke PHP methods within a running PHP server (Apache/IIS, FastCGI, ...) so that Java components can invoke PHP instances and PHP scripts can call Java (e.g. Java, KAWA, JRuby) based applications or transfer the  control to the environment where the request came from. PHP/Java Bridge Web Application  is distributed as a standard JEE web application, JavaBridge.war. It can be deployed to any standard Java servlet engine or Java application server. It is a distributable ZIP archive, containi

php faq

php frame works 1. Akelos       2.ash.mvc         3. cakePHP       4. Codelgniter    5.DIY     6. eZ Components 7.Fusebox   8.PHP ON TRAX    9.PHP Dev shell      10. Prado   11.YII   12. WACT     13. ZEND    14 .Zoop 15.wasp   16.PHP openbiz    17 .prado    18. seagull   19. symfony   1.................................................... what is difference between print_r and var_dump? Can anybody tell me the difference between var_dump() and print_r() as I know that much only "print_r provides information about a variable, var_dump provides a slightly more complex analysis." prog: <?php $array=array(1,2,3,4,5); print_r($array); //Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 ) var_dump($array); //array(5) { [0]=> int(1) [1]=> int(2) [2]=> int(3) [3]=> int(4) [4]=> int(5) } ?> 2................................... waht is use of unset in php array ? unset() destroys the specified variables. The behavior of unset() inside of a function

SQL

SQL - Overview SQL tutorial gives unique learning on Structured Query Language and it helps to make practice on SQL commands which provides immediate results. SQL is a language of database, it includes database creation, deletion, fetching rows and modifying rows etc. SQL is an ANSI (American National Standards Institute) standard but there are many different versions of the SQL language. What is SQL? SQL is structured Query Language which is a computer language for storing, manipulating and retrieving data stored in relational database. SQL is the standard language for Relation Database System. All relational database management systems like MySQL, MS Access, Oracle, Sybase, Informix, postgres and SQL Server uses SQL as standard database language. Also they are using different dialects, Such as: MS SQL Server using T-SQL, Oracle using PL/SQL, MS Access version of SQL is called JET SQL (native format )etc Why SQL? Allow users to access data in relational database management systems. Al

RDBMS

What is RDBMS? RDBMS stands for Relational Database Management System. RDBMS is the basis for SQL, and for all modern database systems like MS SQL Server, IBM DB2, Oracle, MySQL, and Microsoft Access. A Relational database management system (RDBMS) is a database management system (DBMS) that is based on the relational model as introduced by E. F. Codd. What is table ? The data in RDBMS is stored in database objects called tables. The table is a collection of related data entries and it consists of columns and rows. Remember, a table is the most common and simplest form of data storage in a relational database. Following is the example of a CUSTOMERS table: +----+----------+-----+-----------+----------+ | ID | NAME     | AGE | ADDRESS   | SALARY   | +----+----------+-----+-----------+----------+ |  1 | raju     |  52 | Hyderabad |  2050.00 | |  2 | ramu     |  22 | mumbai    |  1500.00 | |  3 | ravi     |  23 | Kota      |  2000.00 | |  4 | hari     |  25 | Mumbai    |  6500.00 | |  5 |

JAVA

what is a class ?   Ans: a class is a blue print  for object . the class defines  variables, methods  and objects . the object manipulates data through methods . these methods constitutes  a set of operations.   class are the fundamental units in  an object -oriented programming . we use a  class to create  object (instances) each instance carries its own data .that is  data belongings to one object, it changed does not effect the data belonging to other object.      Simple Structure of class :    class demo {                          int count;                    public void display()                                  {                                       count ++;                                  }                       } class demo1{                                    public static void main(String args[])                          {                                                     }                    }   object :            An object is an instance of a class . An object is kno