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 [...]
Posts Tagged ‘javascript’
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 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” [...]


