Feeds:
Posts
Comments

Archive for the ‘javascript’ Category

Si vous écrivez souvent quelques lignes de codes en javascript , firefox est un bon environnement pour tester vos scripts , surtout si vous faite un traitement XmlHttpRequest .
Sous firefox plusieurs outils sont disponible (firebug,web developper ,seamonkey…) donc pas de souci mais par contre , le code javascript que vous écrivez [...]

Read Full Post »

getSeconds() and getMIlliseconds() return the seconds and milliseconds values.
<SCRIPT LANGUAGE=”JAVASCRIPT”>
<!–
var d = new Date();
var curr_hour = d.getHours();
var curr_min = d.getMinutes();
var curr_sec = d.getSeconds();
var curr_msec = d.getMilliseconds();
document.write(curr_hour + “:” + curr_min + “:”
+ curr_sec + “:” + curr_msec);
//–>
</SCRIPT>

Read Full Post »

Let us consider we get a value from a post actionone,two,three
i.e: $ss = $_POST['arv'];
Now using the php method explode() we will convert the string in to a array object
explode(seperator,string);
i.e. $tok = explode(‘,’,$ss);
so we have got a string array. Now we print the array using print_r() method. This method prints the array in string [...]

Read Full Post »

The javascript array values can be passed to a php file using the following method
Step 1:
Let us consider we have a js array as
<script language=javascript>
scriptAr = new Array();
scriptAr[0] = “one”;
scriptAr[1] = “two”;
scriptAr[2] = “three”;
<script>

scriptAr = new Array();
scriptAr[0] = “one”;
scriptAr[1] = “two”;
scriptAr[2] = “three”;
Step 2:
Now we will create a hidden form field as follows
<form action=”phpArrayTest.php” [...]

Read Full Post »

This some link to free javascript code source, for table, datagrid, Xml, and other’s..
hope this helpe to get started :
1- Ajax layer : Here
2- GUI Components: Here
3- Pages Components: Here
4- Security: Here

5- HTML: Here
6- Form control: Here

Read Full Post »

you want to bring back a visitor on the back after 2 seconds:
setTimeout(function(){history.back()},2000);

Read Full Post »

Among millions of tutorials about ‘javascript’ on the internet, these are the most interessant to start, among those I meet :
1- From w3schools: Introduction to JavaScript Here
2- From webdevelopersnotes: Online JavaScript Tutorial Here
3- From trans4mind: Ken Ward’s Java Script Tutorial Here

4- From www.java2s.com: Javascript tutorial Here
5- From CodeProject.com: Javascript for begginers, By [...]

Read Full Post »