www.webdeveloper.com

Search:

Type: Posts; User: 007Julien

Page 1 of 20 1 2 3 4

Search: Search took 0.03 seconds; generated 59 minute(s) ago.

  1. Replies
    6
    Views
    624

    It would be better to display two buttons to add...

    It would be better to display two buttons to add a row (its disappear with the 5th row) or to delete a row (if any) of your table...
  2. How do you find this new version with sound ...

    How do you find this new version with sound to convert foreign currencies ?
  3. Replies
    4
    Views
    871

    Replace, in your database, all single quote by a...

    Replace, in your database, all single quote by a ' or a typographic apostrophe ( ’ ), also known as the typset apostrophe, or, informally, the curly apostrophe obtain with alt 0146.
  4. Thread: Memory

    by 007Julien
    Replies
    1
    Views
    338

    Here is a memory...

    Here is a memory
    Use an object to build your memory. There is no need of an array to find the kth image src, it's k+'.jpg' !
    At the beginning you have only to show back of card and to define a...
  5. Other Read something like this for localisation...

    Read something like this for localisation (l10n) or internationalisation (l18n).
  6. Replies
    1
    Views
    529

    The object color is not define in the second...

    The object color is not define in the second function. The values color.rgb[0], color.rgb[1] and color.rgb[2] are not defined ! They must take the argument with : top-color.rgb[0], top-color.rgb[1]...
  7. Try to upload this php page on your server ...

    Try to upload this php page on your server

    <?php

    header("expires: mon, 26 jul 1997 05:00:00 gmt");
    header("cache-control: no-cache, must-revalidate");
    header("pragma: no-cache");...
  8. Here is a newly created Euro universal...

    Here is a newly created Euro universal converisseur. I will still put in a few points to make...
  9. The European Central Bank publish many things...

    The European Central Bank publish many things about Foreign exchange references rates...

    At first this page http://www.ecb.europa.eu/euro.html give the daily reference rates which are usually...
  10. Inputs have two name attributes with different...

    Inputs have two name attributes with different values.
    Replace your code with something like this (with the country in the class tag)

    <input type='checkbox' name='list' class='indent-28...
  11. A simple page to full a form with the dates of...

    A simple page to full a form with the dates of the current week :

    <!DOCTYPE>
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta name="generator"...
  12. Use the Date object : var myDate=new...

    Use the Date object :

    var myDate=new Date(yyyy,mm-1,dd);
    var nextDate=new date(myDate.getFullYear(),myDate.getMonth(),myDate.getDate()+1);
  13. Replies
    2
    Views
    751

    You do not say how textpos1, textpos2... are...

    You do not say how textpos1, textpos2... are defined. I suppose the questions are displayed on different successive lines (with n new Lines) from textpos which is the argument of the function...
  14. To simulate a Gaussian variable with mean 0 and...

    To simulate a Gaussian variable with mean 0 and variance 1, it suffices to calculate :

    X = Math.sqrt(-2*Math.log(Math.random())*Math.cos(2*Math.random());

    Calculate Y = m + s X for the mean m...
  15. To see object properties try : ...

    To see object properties try :

    console.log(JSON.stringify(distribution));
  16. Try this code : var...

    Try this code :



    var nbr,nbs="7.33333|0.034343434|0.0434343434|0.05768787878787|3.854523523523523|0.142857142857".split('|');

    for (i=0;i<nbs.length;i++){var...
  17. 2048 - Touchmove - How to prevent scrolling and page switching ?

    Touch move is made for Gabriele Cirulli's 2048 Game.

    For me, the problem is on this page (or on the author page*), to avoid scrolling and page switching on a TipadXl (LNA Xtrem) and other phones...
  18. Replies
    2
    Views
    490

    Simply an arrStr=str.split(','); give an array...

    Simply an arrStr=str.split(','); give an array with the result.

    Then you have only to build a string with something like this (non tested) :


    // HTML
    <p id="rsp"></p>

    // Javascript at...
  19. This to get something like java : function...

    This to get something like java :

    function Person(firstName){
    this.firstName=firstName;
    }
    var p1=new Person();
    alert(p1+'\n\nConstructor: '+p1.constructor+'\n\nJson: '+JSON.stringify(p1));...
  20. Use the Select selectIndex Property...

    Use the Select selectIndex Property with a loop for i=1,2,3 or 4 on document.getElemenById('type'+i).
    The only problem is that this property give 0 (for the first option) with no user action (See...
  21. Replies
    1
    Views
    525

    Other Unless I am mistaken, this ...

    Unless I am mistaken, this /@font-face\s*\{[^}]+}/g regular expression will capture all @fontface declaration.

    We capture all string beginning with @font-face, followed with : zero or more (*)...
  22. (function(){ //... instructions })(); This...

    (function(){
    //... instructions
    })();
    This code define an anonymous function and call it immediately. It's useful to work in a namespace without interferences with the global space.
    For...
  23. Replies
    1
    Views
    412

    This regular expression rescode=/\b[\d]{8}\b/g...

    This regular expression rescode=/\b[\d]{8}\b/g capture all 8 digits between two word boundaries (\b) in a text.

    Use rescode=/School Code[:\s]+[\d]{8}\b/g to capture the entire motif.
  24. Replies
    1
    Views
    579

    Try this change (I can not test now) : ...

    Try this change (I can not test now) :


    document.getElementById('puzzle').onmousemove = document.getElementById('puzzle').ontouchstart = function(e) {
    clickLoc.x = Math.floor((e.pageX -...
  25. Replies
    8
    Views
    1,013

    I make a mistake. Try this code : if...

    I make a mistake. Try this code :


    if (usrName.replace(/[\s]+/g,'')=='') alert('Please fill your user Name !')

    We have to delete all spaces, tabulations ... etc. with a g to delete all...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles