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 [...]
Archive for the ‘javascript’ Category
debugger javascript avec Internet Explorer
Posted in javascript, tagged console erreurs, debugger javascript, ie, internet explorer, javascript on January 9, 2009 | Leave a Comment »
Get the System time with the number of seconds and milliseconds using javascript
Posted in javascript, tagged Date, getHours, getMilliseconds, getMinutes, getSeconds, javascript, milliseconds, seconds, system time, SystemTime on July 25, 2008 | Leave a Comment »
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>
How can I split the string using php?
Posted in javascript, tagged php, split, string on June 17, 2008 | 5 Comments »
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 [...]
How to carry an array value from javascript to php?
Posted in javascript, tagged array, javascript, php, submit on June 17, 2008 | Leave a Comment »
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” [...]
javascipt code source
Posted in javascript on June 2, 2008 | Leave a Comment »
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
excute function after a delay
Posted in javascript, tagged javascript; delay; back; on May 28, 2008 | Leave a Comment »
you want to bring back a visitor on the back after 2 seconds:
setTimeout(function(){history.back()},2000);
Some links to javascript tutorials
Posted in javascript, tagged javascript; tutorial; html; cours; on May 28, 2008 | Leave a Comment »
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 [...]