Saturday, April 30, 2011

BASIC XML

| Saturday, April 30, 2011 | 0 comments

What is XML? I don't know smile

  • XML stands for EXtensible Markup Language
  • XML is a markup language much like HTML
  • XML was designed to carry data, not to display data
  • XML tags are not predefined. You must define your own tags
  • XML is designed to be self-descriptive
  • XML is a W3C Recommendation

The Difference Between XML and HTML

XML is not a replacement for HTML.
XML and HTML were designed with different goals:

XML was designed to transport and store data, with focus on what data is.
HTML was designed to display data, with focus on how data looks.

HTML is about displaying information, while XML is about carrying information.

XML Does not DO Anything

Maybe it is a little hard to understand, but XML does not DO anything. XML was created to structure, store, and transport information.

The following example is a note to Tove from Jani, stored as XML:

<note>


<to>Tove</to>


<from>Jani</from>


<heading>Reminder</heading>


<body>Don't forget me this weekend!</body>


</note>






The note above is quite self descriptive. It has sender and receiver information, it also has a heading and a message body.



But still, this XML document does not DO anything. It is just pure information wrapped in tags. Someone must write a piece of software to send, receive or display it.



Readmore..

Friday, April 29, 2011

laying JavaScript

| Friday, April 29, 2011 | 0 comments

Where to Put the JavaScript

JavaScripts in a page will be executed immediately while the page loads into the browser. This is not always what we want. Sometimes we want to execute a script when a page loads, other times when a user triggers an event.

Scripts in the head section: Scripts to be executed when they are called, or when an event is triggered, go in the head section. When you place a script in the head section, you will ensure that the script is loaded before anyone uses it.

Where to Put the JavaScript

Scripts in the body section: Scripts to be executed when the page loads go in the body section. When you place a script in the body section it generates the content of the page.

Readmore..

Structures Condition and Repetition section

| | 0 comments

hey hey, You can implement this in php, and other programming languages​​,. The following is basic to know the loop

1. Structure Condition
Branching control structures (decision making) that control the structure function
to conduct elections for the command to be executed in accordance with certain conditions.
There are four branching orders in PHP, that is if, if .. else, if .. elseif, and switch.

Thinking smile Structure Condition If

stucture condition If
if (condition) {
statement-if-condition-true;
}

Description:
condition is a statement or a variable that should be checked TRUE or FALSE.

Winking smile Structure Condition If ... Else
If ... else command is used to select a statement based on a
condition. This command will execute a particular statement if the condition is true and will
run another statement if the condition is false. Syntax is
as follows:

if (condition) {
statement-if-condition-true;
} else {
statement-if-conditio -false;
}

Description:
condition of a statement or a variable that should be checked his TRUE or FALSE. If
the condition is TRUE, the statement in the if block will be executed, otherwise if
the condition is FALSE, the statement in the else block will be executed.

Readmore..

Popular Posts

 

Total Pageviews

stat

© Copyright 2010. http://programminghaha.blogspot.com . All rights reserved | http://programminghaha.blogspot.com is proudly powered by Blogger.com | Template by o-om.com - zoomtemplate.com