www.webdeveloper.com

Search:

Type: Posts; User: 007Julien

Page 1 of 5 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    14
    Views
    738

    The condition is while(++nmb

    The condition is while(++nmb<4 || (1+tdy.getDay())%7<2; !
    Saturday : ((6+1)%7=>0 Sunday => ((0+1)%7=>1 . Then your have to add one with this two cases
  2. Replies
    14
    Views
    738

    Try simply this method : var tdy=new...

    Try simply this method :


    var tdy=new Date(),gap=0;
    // We add one day while the gap is lower to 4 or the day is a saturday or sunday
    do {tdy.setDate(tdy.getDate()+1)} while(++gap<4 ||...
  3. Replies
    4
    Views
    584

    Ayse : You are rigth, but the dateString format...

    Ayse : You are rigth, but the dateString format seems to depend on the country...
  4. Replies
    4
    Views
    547

    In this case, it's possible to use document.write...

    In this case, it's possible to use document.write (the document is not closed).
    But you have at first to load the script which define the variable copyright (a HTML string).

    An example of simple...
  5. Replies
    4
    Views
    584

    Use the date object with something like this : ...

    Use the date object with something like this :


    <script type="text/javascript">

    var d="2013-05-11 14:48:46";
    // Create a date object with year, javascript month (from 0 to 11), date, hour,...
  6. Replies
    2
    Views
    309

    Count the opening bracket and decrease this...

    Count the opening bracket and decrease this positive or null number with each closing bracket !
  7. Replies
    4
    Views
    752

    You must ask the webmaster of the site. This may...

    You must ask the webmaster of the site. This may be voluntary ....
  8. @vwphillips Why a variable vic ? Why ten...

    @vwphillips

    Why a variable vic ? Why ten inputs to use only two ? Why inputs at 700 px of the top ?
    Is it forbidden to detect key moves without input ?

    We are Sunday...

    A minimal variant ...
  9. See, for example, this page from w3schools.com...

    See, for example, this page from w3schools.com
  10. Replies
    4
    Views
    783

    The proposed solution will not work in opera if...

    The proposed solution will not work in opera if your use the mousedown function !
    Use something like this for drag and drop

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"...
  11. Replies
    22
    Views
    46,117

    We have only to work at the first day of months...

    We have only to work at the first day of months to avoid changing month :

    var brd=new Date(1980,0,30,12);// year , javascriptMonth( from à up to 11), date at noon
    // The date with year,...
  12. Replies
    22
    Views
    46,117

    Use the date object. Just from the current date...

    Use the date object. Just from the current date and subtract days, months and years to find the date of birth.

    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta...
  13. What do you think about this variant...

    What do you think about this variant* (See the source) with transparent doors ?
    For pilasters, shadows are expected... This should be possible with areas of color ?

    * It was built too quickly !...
  14. I find that formula when I was teenager... ...

    I find that formula when I was teenager...

    It's very simple. Each year (non leap year) is 365 days or 52 weeks plus one day, then each year gives a gap from one day. The leap years (after 1900...
  15. An other natural method only for information... ...

    An other natural method only for information...

    var dat="04/22/2013 2:51:00 PM";
    var j=dat.replace(/0?(\d+)\/0?(\d+)\/(\d\d)(\d\d)[^\/]+/,function(all,m,j,s,a){if (m<3){m+12;a=a-1}
    return...
  16. Replies
    13
    Views
    1,202

    A simple example : to retrieve a post on a page,...

    A simple example : to retrieve a post on a page, it could be useful to send and return the scroll height in a query string...
  17. Replies
    13
    Views
    1,202

    It's a possibility to transfer data between two...

    It's a possibility to transfer data between two pages with or without server...
  18. Replies
    13
    Views
    1,202

    The property search (document.location.search)...

    The property search (document.location.search) gives immediately the query portion of a URL(with the ? character). See location object
  19. Replies
    5
    Views
    1,047

    Sorry I make a mistake a leer cell 11110 is 30...

    Sorry I make a mistake a leer cell 11110 is 30 instead of 31 !
    32-1 is Math.pow(2,5)-1 or (1<<5)-1 = 11111 and 30 is 11110.
  20. It depends essentially of the form of the request...

    It depends essentially of the form of the request !
    Write the code can go very fast when you know what you should do. But the problem is most often to understand the customer request ! The number...
  21. Replies
    5
    Views
    1,047

    Use the division of two intergers (by 4 and by 2)...

    Use the division of two intergers (by 4 and by 2) with quotient and remainder to get the row, column and quadrant of the cells (from 0 to 15) of your grid. Then the code is something like this

    ...
  22. Replies
    31
    Views
    3,078

    Javascript is made to work with scripts ! Do not...

    Javascript is made to work with scripts ! Do not write so many lines...

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <meta...
  23. Thread: I need help

    by 007Julien
    Replies
    15
    Views
    1,962

    It's also possible to use a select tag See this...

    It's also possible to use a select tag See this page
  24. Replies
    31
    Views
    3,078

    It's too possible to define javascript Arrays...

    It's too possible to define javascript Arrays like this http://mamisab.chez-alice.fr/sudoku/Su17Epb.js with sudokus. Then there is no need of Ajax to load sudokus...
  25. Replies
    2
    Views
    633

    Create a new object Board with cells (an...

    Create a new object Board with cells (an unidimensional Array is sufficient), rows, cols and diagonals (use the quotients, remainders and their sums and differences) and a method place that update...
Results 1 to 25 of 120
Page 1 of 5 1 2 3 4
HTML5 Development Center



Recent Articles