Latest Movie :
Recent Movies

JavaScript Object

JavaScript Print Script - window.print()

<form><input type="button" value="Print This Page" onClick="window.print()" />

</form>

--------------------------------------

JavaScript Window.Location

<script type="text/javascript">

window.location = "http://www.bbu.edu.kh";
</script>

--------------------------------------

JavaScript Time Delay

<html><head>

<script type="text/javascript">

function delayer()

{

window.location = "mypage.html";

}

</script>

</head>

<body onLoad="setTimeout('delayer()', 5000)">

<h2>Prepare to be redirected!</h2>

</body>

</html>

------------------------------------------

JavaScript window.open Function

<html>

<head>

<script type="text/javascript">

<!--

function myPopup()

{

window.open( "http://www.google.com/" );

}

//-->

</script>

</head>

<body>

<form>

<input type="button" onClick="myPopup()" value="POP!">

</form>

</body>

</html>

----------------------------------------

Upgraded JavaScript Popup Window!

<html>

<head>

<script type="text/javascript">

<!--function myPopup2()

{

window.open( "http://www.google.com/", "myWindow", "status = 1, height = 300, width = 300, resizable = 0" )}//--></script>

</head>

<body>

<form>

<input type="button" onClick="myPopup2()" value="POP2!">

</form>

</body>

</html>

--------------------------------------

Form Validation - Checking for Non-Empty

<script type='text/javascript'>

function notEmpty(elem, helperMsg)

{ if(elem.value.length == 0)

{ alert(helperMsg);

elem.focus();

return false;

}

return true;

}

</script>

<form>Required Field:

<input type='text' id='req1'/><input type='button' onclick="notEmpty(document.getElementById('req1'), 'Please Enter a Value')" value='Check Field' />

</form>

--------------------done---------------------
{[['']]}

SetInterval in JavaScript

<html>

<head>

<script>function showTime () {

var time = new Date()

var hour = time.getHours()

var minute = time.getMinutes()

var sMin = (minute<10) ? "0" + minute : minute

var second = time.getSeconds()

var sSecs = (second<10) ? "0" + second : second

var strTime = hour + ":" + sMin + ":" +sSecs

document.getElementById("clockFace").innerHTML = strTime;

}//showTime

</script>

</head>

<body onload="setInterval(showTime, 1000)">

<div id="clockFace" ></div>

</body>

</html>


{[['']]}

PHP and MySQL Scripts and Tutorials Download

{[['']]}

Creating a website using PHP Includes

Back to what we were doing, the layout of our page will be like:-

Step One A good rule is to keep all files which are related to a particular website in the same folder. This prevents any dead links or linking errors which may creep in later on when the website gets quite large. This applies to all websites you create and not just this tutorial. Another good tip which is worth remembering is to keep all filenames you create for pages in lowercase.

Read more...
{[['']]}

Design Layout Form Login

{[['']]}

Top Search Enging



{[['']]}

Cut & Paste JavaScript Image Clock


Description: This is a compact JavaScript image clock that's updated live every second. It comes with a default image pack for the interface, though you can easily specify you own "digits" images instead inside the script.
Download Source Code
{[['']]}

Live Clock JavaScript

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Time</title>
</head>

<body>

<body>
<script>

var Digital=new Date()


var hours=Digital.getHours()
var minutes=Digital.getMinutes()
var seconds=Digital.getSeconds()
var dn="AM"
if (hours>12){
dn="PM"
hours=hours-12
}
if (hours==0)
hours=12
if (minutes<=9)

minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
var ctime="<b><font face='Verdana' color='#8000FF'>"+hours+":"+minutes+":"+seconds+" "+dn+"</font></b>"
document.write(ctime);
//-->
</script>
</body>
</html>

Download Source Code -> Live text Clock JavaScript

Download Example Code -> Data and Clock on Status bar

Source code Calendar

Download -> I have been alive for...

Free Download : Game -> Ouths and Crosses

{[['']]}

JavaScript while Loop statement

{[['']]}

Form Calculator in JavaScript

This Form Calculator in JavaScript with HTML

Download this Source Code


JavaScript document.getElementById<script type="text/javascript">
function notEmpty()
{
var myTextField = document.getElementById('myText');
if(myTextField.value != "")
alert("You entered: " + myTextField.value)
else
alert("Would you please enter some text?")
}
</script>

<input type='text' id='myText' />
<input type='button' onclick='notEmpty()' value='Form Checker' />
{[['']]}

JavaScript Functions

What's a Function?
A function is a piece of code that sits dormant until it is referenced or called upon to do its "function". In addition to controllable execution, functions are also a great time saver for doing repetitive tasks.

To create a function, type the function keyword followed by a name for the function, followed by an opening, then a closing, parentheses, followed by an opening curly bracket “{“ and ending with a closing curly bracket “}”. Here is the syntax for creating a function:

function name(){}

Read more...

{[['']]}

For Loop Statement

The for loop is used when you know in advance how many times the script should run.

for (variable=startvalue;variable<=endvalue;variable=variable+increment)

{

code to be executed

}

Ex1:

<html>

<body><script type="text/javascript">

var i=0;

for (i=0;i<=5;i++)

{

document.write("The number is " + i);

document.write("<br />");

}

</script>

</body>

</html>

Ex2:

<script type="text/javascript">

<!--

var count;

document.write("Starting Loop" + "<br />");

for(count = 0; count < 10; count++){

document.write("Current Count : " + count );

document.write("<br />");

}

document.write("Loop stopped!");

//-->

</script>

Ex3:

For example, continue can be employed to display only the even numbers
between 1 to 20, skipping the odd numbers.

<script>

var msg = "";
for (var x = 0; x <=20; x++)
{
if (x%2)
{
continue;
}

msg = msg + x + "\n";

}

alert(msg);

</script>

Output:

0 2 4 6 8 10 12 14 16 18 20

<script>
var msg = "";
for (var x = 0; x <=20; x++)
{
if (x%2)
msg = msg + x + "\n";

}

alert(msg);
</script>

Output:

1 3 5 7 9 11 13 15 17 19

Similarly, break is employed to stop loop iterations completely.

Ex:

<script>
var msg = "";
var t = 1;

while (t <= 10)

{

if (t == 8)

{
break;
}
msg = msg + t + "\n";
t++;
}
alert(msg);

</script>

Output:
1 2 3 4 5 6 7

Assignment

1- In the code below, which numbers are displayed in the alert box?

<script>

var msg = "";
for (var x = 0; x < 10; x++)
{
if (x == 5 || x == 7)
{
continue;
}

msg = msg + x + "\n";
}

alert(msg);

</script>

2- How can you display the odd numbers between 1 to 20 WITHOUT

the use of continue?

Possible Answers

0, 1, 2, 3, 4, 6, 8 and 9.

var msg = "";

for (var x = 1; x <= 20; x = x + 2)

{
msg = msg + x + "\n";
}
alert(msg);

OR

var msg = "";

var x = 1;
while (x <= 20)
{
msg = msg + x + "\n";
x = x + 2;
}
alert(msg);

{[['']]}

While Loop Statement

The JavaScript while loop is much simpler than the for loop. It consists of a condition and the statement block.

Syntax:

while (condition)
{
...statements...

}

Ex1:

<script>

var msg = "";
var x = 1;
while (x <= 10)
{
msg = msg + x + "\n";
x++;

}

alert(msg);</script>

Ex2:

<script>

var msg = "";
var x = 1;
var res = 0;
while (x <= 10)

{

res = 12 * x;
msg = msg + "12 X " + x + " = " + res + "\n";
x++;

}
alert(msg)


</script>

Output: n/a

{[['']]}

The Do While loop

You can consider the do-while loop as a modified version of the while loop. Here, the condition is placed at the end of the loop and hence, the loop is executed at least once.

Ex3:

<script>

var x = 20;

do
{

alert("The number is " + x);
x++;
}
while (x <= 10);
</script>

Ex4:

<script>
var x = 20;
do
{
alert("The number is " + x);
x++;
}
while (x <= 30);
</script>

Assignment

Ex5:

<script>
var num=0;
while (num <= 30)
{
document.write(num+"<br>");
num = num + 3;
}
</script>

1- If the value of variable num is 20, how many times will the following while loop be execute

Ex6:
2- How many times is the while loop executed in the following code?

<script>
var b = 45;
var a = 14;
while (a <= 20)
{
document.write("All is well with me");
b = b + 5;
}
document.write("Once time");
</script>

3- If the condition evaluates to 'false', how many times is the do-while loop executed and why?

Possible Answers

Four times

Infinite times since there is no update statement for variable a inside the while loop.

Once, because the condition is present at the end of the loop.

{[['']]}

Switch Statement

<script>

var day="Friday";

switch(day){

case "Monday" : document.write("First Day"); break; case "Wednesday" : document.write("Four Day"); break;

case "Friday" : document.write("Happy Day"); break;

case "Sunday" : document.write("Weekend Day"); break;


default:document.write("Day Off");break;

}


</script>

{[['']]}

IF Statements

IF Statement
One Condition

var day="Friday";
if(day=="Friday"){
document.write("Happy Day");
}
--------------------------------
IF / Else Statement
Two Condition

var day="Friday";
if(day=="Friday"){
document.write("Happy Day");
}
else{
document.write("Bad Day");
}
-------------------------------------
IF / Else Statement
Many Condition

var day="Friday";
if(day=="Monday"){
document.write("First Day");
}
else if(day=="Wednesday"){
document.write("Four Day");
}else if(day=="Friday"){
document.write("Happy Day");
}
else if(day=="Sunday"){
document.write("Weekend Day");
}else{
document.write("Day Off");
}
{[['']]}

Create Form E-mail with JavaScript

{[['']]}

Calculator, For Statement

Write Code: javascript

<script type="text/javascript">

var total = 0;

var even = 0;

for ( x = 1, y = 1; x <= 100; x++, y++ ) {

if ( ( y % 2 ) == 0 ) {

even = even + y;

}

total = total + x;

}

document.write ( "The total sum: " + total + "<br>");

document.write ( "The sum of even values: " + even );

</script>

</head>

<body>

Output:
The total sum: 5050
The sum of even values: 2550
{[['']]}

JavaScript : Operand


<script language="javascript">

function operand(){

var fr = document.operator;

fr.txtr.value=parseInt(fr.txt1.value)+parseInt(fr.txt2.value);

}

</script>

<body>

<form name="operator">
<fieldset class="cut">
Operand 1:<br />
<input type="text" name="txt1" size="30" /><br />
Operand 2:<br />
<input type="text" name="txt2" size="30" /> <br />

Result :<br />

<input type="text" name="txtr" size="30" />

<input type="hidden" name="txth" size="30" />

</fieldset>
<fieldset class="cut">
<input type="button" name="btns" value=" + " onclick="operand()" />
<br />
</fieldset>
</form>
</body>

{[['']]}

JavaScript : Calculator


<script>
function sum()
{
var a=document.getElementById('t1').value;
var b=document.getElementById('t2').value;
document.getElementById('rs').innerHTML = eval(a) + eval(b);
}
</script>
.............
Result is :
<div id="rs"></div>

Download
{[['']]}

PDF Ebooks for Search word 'ajax in php'

AJAX and PHP

JavaScript is a scripting language, whose code is written in plain ... As pointed out in the beginning of the chapter, technology exists to serve ...... you'll use to build AJAX web clients, using JavaScript, the DOM, the XMLHttpRequest ...

More Download
{[['']]}

Beginning Ajax with PHP:


Apress, 2007 - Computers - 253 pages
Ajax breathes new life into web applications by transparently communicating and manipulating data in conjunction with a server-based technology. Of all the server-based technologies capable of working in conjunction with Ajax, perhaps none are more suitable than PHP, the world's most popular scripting language. Beginning Ajax with PHP: From Novice to Professionalis the first book to introduce how these two popular technologies can work together to create next-generation applications. Author Lee Babin covers what you commonly encounter in daily web application development tasks, and shows you how to build PHP/AJAX-enabled solutions for forms validation, file upload monitoring, database-driven information display and manipulation, web services, Google Maps integration, and more. Youll learn how to Take advantage of PHP and advanced JavaScript capabilities to create next-generation, highly responsive Web applications. Enhance commonplace application tasks such as forms validation and tabular data display. Manage cross-browser issues, ensuring your applications run on all major Web browsers. Take advantage of the Google Maps API and add spatial mapping features to your website. Youll also be introduced to other key topics like conquering cross-platform issues, countering potential security holes, and testing and debugging JavaScript with efficiency. All examples are based on real-world scenarios, so youll be able to apply what you learn to your own development situations.
More »
{[['']]}

Professional Ajax


John Wiley & Sons, 2006 - Computers - 406 pages
Written for experienced web developers, Professional Ajax shows how to combine tried-and-true CSS, XML, and JavaScript technologies into Ajax. This provides web developers with the ability to create more sophisticated and responsive user interfaces and break free from the "click-and-wait" standard that has dominated the web since its introduction.Professional Ajax discusses the range of request brokers (including the hidden frame technique, iframes, and XMLHttp) and explains when one should be used over another. You will also learn different Ajax techniques and patterns for executing client-server communication on your web site and in web applications. By the end of the book, you will have gained the practical knowledge necessary to implement your own Ajax solutions. In addition to a full chapter case study showing how to combine the book's Ajax techniques into an AjaxMail application, Professional Ajax uses many other examples to build hands-on Ajax experience. Some of the other examples include: web site widgets for a news ticker, weather information, web search, and site search preloading pages in online articles incremental form validation using Google Web APIs in Ajax creating an autosuggest text box Professional Ajax readers should be familiar with CSS, XML, JavaScript, and HTML so you can jump right in with the book and begin learning Ajax patterns, XPath and XSLT support in browsers, syndication, web services, JSON, and the Ajax Frameworks, JPSpan, DWR, and Ajax.NET.
More »
Download
{[['']]}

Professional JavaScript for Web Developers


John Wiley and Sons, 2011 - Computers - 840 pages
"Professional JavaScript for Web Developers," 2nd Edition, provides a developer-level introduction along with the more advanced and useful features of JavaScript.

Starting at the beginning, the book explores how JavaScript originated and evolved into what it is today. A detailed discussion of the components that make up a JavaScript implementation follows, with specific focus on standards such as ECMAScript and the Document Object Model (DOM). The differences in JavaScript implementations used in different popular web browsers are also discussed.

Building on that base, the book moves on to cover basic concepts of JavaScript including its version of object-oriented programming, inheritance, and its use in various markup languages such as HTML. An in-depth examination of events and event handling is followed by an exploration of browser detection techniques and a guide to using regular expressions in JavaScript. The book then takes all this knowledge and applies it to creating dynamic user interfaces.

The last part of the book is focused on advanced topics, including performance/memory optimization, best practices, and a look at where JavaScript is going in the future.

This book is aimed at three groups of readers: Experienced developers familiar with object-oriented programming who are looking to learn JavaScript as it relates to traditional OO languages such as Java and C++Web application developers attempting to enhance the usability of their web sites and web applicationsNovice JavaScript developers aiming to better understand the language

In addition, familiarity with the following related technologies is a strong indicator that this book is for you: JavaPHPASP.NETHTMLCSSXML

This book is not aimed at beginners who lack a basic computer science background or those looking to add some simple user interactions to web sites. These readers should instead refer to Wrox's "Beginning JavaScript, " 3rd Edition (Wiley, 2007).

This book covers: What Is JavaScript?--Explains the origins of JavaScript: where it came from, how it evolved, and what it is today. Concepts introduced include the relationship between JavaScript and ECMAScript, the Document Object Model (DOM), and the Browser Object Model (BOM). A discussion of the relevant standards from the European Computer Manufacturer's Association (ECMA) and the World Wide Web Consortium (W3C) is also included.JavaScript in HTML--Examines how JavaScript is used in conjunction with HTML to create dynamic web pages. Introduces the various ways of embedding JavaScript into a page, including a discussion surrounding the JavaScript content-type and its relationship to the element.Language Basics--Introduces basic language concepts, including syntax and flow control statements. Explains the syntactic similarities of JavaScript and other C-based languages and points out the differences. Type coercion is introduced as it relates to built-in operators.Variables, Scope, and Memory--Explores how variables are handled in JavaScript given their loosely typed nature. A discussion about the differences between primitive and reference values is included, as is information about execution context as it relates to variables. Also, a discussion about garbage collection in JavaScript explains how memory is reclaimed when variables go out of scope.Reference Types--Covers all of the details regarding JavaScript's built-in reference types, such as "Object" and "Array." Each reference type described in ECMA-262 is discussed both in theory and how they relate to browser implementations.Object-Oriented Programming--Explains how to use object-oriented programming in JavaScript. Since JavaScript has no concept of classes, several popular techniques are explored for object creation and inheritance. Also covered is the concept of function prototypes and how that relates to an overall OO approach.Anonymous Functions--Explores one of the most powerful aspects of JavaScript: anonymous functions. Topics include closures, how the "this" object works, the module pattern, and creating private object members.The Browser Object Model--Introduces the Browser Object Model (BOM), which is responsible for objects allowing interaction with the browser itself. Each of the BOM objects is covered, including "window," "document," "location," "navigator," and "screen."Client Detection--Explains various approaches to detecting the client machine and its capabilities. Different techniques include capability detection and user-agent string detection. Each approach is discussed for pros and cons as well as situational appropriateness.The Document Object Model--Introduces the Document Object Model (DOM) objects available in JavaScript as defined in DOM Level 1. A brief introduction to XML and its relationship to the DOM gives way to an in-depth exploration of the entire DOM and how it allows developers to manipulate a page.DOM Levels 2 and 3 Explains how DOM Levels 2 and 3 augmented the DOM with additional properties, methods, and objects. Compatibility issues between Internet Explorer and other browsers are discussed.Events--Explains the nature of events in JavaScript, where they originated, legacy support, and how the DOM redefined how events should work. A variety of devices are covered, including the Wii and iPhone.Scripting Forms--Looks at using JavaScript to enhance form interactions and work around browser limitations. Discussion focuses on individual form elements such as text boxes and select boxes and on data validation and manipulation.Error Handling and Debugging--Discusses how browsers handle errors in JavaScript code and presents several ways to handle errors. Debugging tools and techniques are also discussed for each browser, including recommendations for simplifying the debugging process.XML in JavaScript--Presents the features of JavaScript used to read and manipulate eXtensible Markup Language (XML) data. Explains the differences in support and objects in various web browsers, and offers suggestions for easier cross-browser coding. This also covers the use of eXtensible Stylesheet Language Transformations (XSLT) to transform XML data on the client.ECMAScript for XML--Discusses the ECMAScript for XML (E4X) extension to JavaScript, which is designed to simplify working with XML. Explains the advantages of E4X over using the DOM for XML manipulation.Ajax and JSON--Looks at common Ajax techniques, including the use of the "XMLHttpRequest" object and Internet Explorer's "XDomainRequest" object for cross-domain Ajax. Explains the differences in browser implementations and support as well as recommendations for usage.Advanced Techniques--Dives into some of the more complex JavaScript patterns, including function currying, partial function application, and dynamic functions. Also covers creating a custom event framework to enable simple event support for custom objects.Client-Side Storage--Discusses the various techniques for storing data on the client machine. Begins with a discussion of the most commonly supported feature, cookies, and then discusses newer functionality such as DOM storage.Best Practices--Explores approaches to working with JavaScript in an enterprise environment. Techniques for better maintainability are discussed, including coding techniques, formatting, and general programming practices. Execution performance is discussed and several techniques for speed optimization are introduced. Last, deployment issues are discussed, including how to create a build process.Upcoming APIs--Introduces APIs being created to augment JavaScript in the browser. Even though these APIs aren't yet complete or fully implemented, they are on the horizon and browsers have already begun partially implementing their features. Includes the Selectors API and HTML 5.The Evolution of JavaScript--Looks into the future of JavaScript to see where the language is headed. ECMAScript 3.1, ECMAScript 4, and ECMAScript Harmony are discussed.

More »
{[['']]}

Beginning JavaScript


John Wiley & Sons, 2011 - Computers - 792 pages
The perennial bestseller returns with new details for using the latest tools and techniques available with JavaScript

JavaScript is the definitive language for making the Web a dynamic, rich, interactive medium. This guide to JavaScript builds on the success of previous editions and introduces you to many new advances in JavaScript development. The reorganization of the chapters helps streamline your learning process while new examples provide you with updated JavaScript programming techniques.

Read more

{[['']]}

How to Delete a Facebook Page Created by You

Want to delete a page you created on Facebook? This guide will show you how to do it.

Once you have logged in to Facebook, go to the Page you want to delete. You can do this by looking for it using the search box at the top of your page.

Once you are there, click on the “Edit Page” button at the top right hand corner of the Page:


Then, on the left sidebar, click “Manage Permissions,” where shown in the next image:

Now, near the “Delete Page” label, click on the link that says Delete [Name of the Page],” which is the one shown in the next image:

This will open a window in which you will have to click on “Delete Page” to confirm the action.

Once you have done this, the page will be deleted.
{[['']]}

What is the difference between a Layer-3 switch and a router?

Hopefully this will help settle the long running confusion about Layer-3 switches in this forum...

Some network topologies as illustrations

1. Single Router
               Internet
|
| 1.1.1.0/24
|
Router
|
LAN 1 with Unmanaged Switch (UM)
10.0.1.0/24

Read more
{[['']]}

Answer Web Programming

{[['']]}

Style Creative Design




{[['']]}

Data Structures and Algorithm Analysis in Java, Third Edition

{[['']]}

Sport Clip by TV

S.M.A.R.T - awesome moves!

First Cambodia

Bangkok Airways TV Commercial - Cambodia.

Smart Mobile Cambodia's third TV commercial - stunning!
{[['']]}

TV Adertising from Beeline

Beeline Cambodia Lottery campaign

Beeline Cambodia promotion 2nd wave campaign - HOT PROMOS
{[['']]}

All Adertising from TV

POND'S Cinq TVC


LUX Everywomen TVC


Leo Beer (Girl Friend)


Panasonic Lumix Egypt


Leo Beer ( Wedding )


LEO Beer (football Soccer)


Best Miller Light Commercial


qb TALK TALK TALK TVC 2008
{[['']]}

Picture lovely

{[['']]}

Visit Cambodia -> Tourism

{[['']]}
 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. isophal.com - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger