dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: wbport

Page 1 of 18 1 2 3 4

Search: Search took 0.03 seconds.

  1. It also matches Feb 23 without the "rd".

    It also matches Feb 23 without the "rd".
  2. Replies
    6
    Views
    1,061

    I'm not sure if this is what you were asking, but...

    I'm not sure if this is what you were asking, but I had to break my boilerplate at unusual places to prevent it from being interpreted at the wrong time when opening a new window:


    var html =...
  3. Your original example looks like it was from sort...

    Your original example looks like it was from sort of template, with a minor modification it could produce a random number, say from 10-100 inclusive with just a few modifications. In this case you...
  4. Not equal.

    Not equal.
  5. You might want to try "Notepad++"; it changes...

    You might want to try "Notepad++"; it changes the color of the displayed code depending on where it is of if it is a comment. It also has an option to create a closing brace, bracket, or...
  6. Replies
    2
    Views
    773

    Well, what is it doing or not doing? What...

    Well, what is it doing or not doing? What message does Web Console give (look under Tools). How is decision displayed? What happens if the user fails more than one filter? If they flunk one of...
  7. Replies
    0
    Views
    578

    Advertisements too much

    I realize that "free" websites require advertisements to pay the bills. Ads that are placed in the right hand column are not a problem, but popup ads that come up every time someone switches to a...
  8. Replies
    3
    Views
    954

    The function getDay() returns 0 thru 6, Sun-Sat.

    The function getDay() returns 0 thru 6, Sun-Sat.
  9. Replies
    16
    Views
    3,680

    translation...

    translation
  10. Replies
    16
    Views
    3,680

    How about ...

    How about
    (1-Math.pow(numb_to_raise_to_a_power,exponent)) ? An example

    (principal*interest)/(1-Math.pow(1 + interest, -1 * payments))

    HTH
  11. Replies
    11
    Views
    4,334

    Also, you need to ask for month and day as well. ...

    Also, you need to ask for month and day as well. If their birthday is later in the year or later in the current month, their age will be the difference between the current year and birth year minus...
  12. Replies
    10
    Views
    2,459

    Well have at. You have what you need to change...

    Well have at. You have what you need to change the size of the random number and number of tries. You can even change the for loop so the value of your loop counter can appear in the prompt.
    ...
  13. Replies
    10
    Views
    2,459

    This was what I came up with a few years ago....

    This was what I came up with a few years ago.
    <html>
    <head>
    <title>Guess Number</title>
    <script language="JavaScript">
    function UserGuess () {
    var numGuess = Math.floor(Math.random()*1000) +...
  14. Replies
    10
    Views
    2,459

    You only need 9 guesses to find anything from 1...

    You only need 9 guesses to find anything from 1 to 500 (or 512).

    I would suggest a prompt that has the result of the last guess such as "125 was too low. Next guess: ". If you do this in a for...
  15. Replies
    2
    Views
    1,459

    That's beyond what JavaScript can do since it is...

    That's beyond what JavaScript can do since it is client-side only. You can't hide your source code so anyone with enough time and know-how can login, regardless of how many hoops you make them jump...
  16. Replies
    6
    Views
    1,584

    \\.\ Makes a good point: When are you going to...

    \\.\ Makes a good point: When are you going to show how you are attempting to solve this?

    After you have tried everything you can think of or have reached your brick wall, this forum can be an...
  17. Replies
    6
    Views
    1,584

    This shows one way to split separate lines in a...

    This shows one way to split separate lines in a text area into an array.


    tempField=document.penta.UPstaff.value;
    tempField=tempField.replace(/\r/g,"");
    var lineU=tempField.split("\n"); ...
  18. Replies
    6
    Views
    1,584

    I would start by running your first and second...

    I would start by running your first and second text areas through a split() function, breaking on a line feed or carriage return, creating a pair of arrays. Varying a subscript from zero by one...
  19. Replies
    6
    Views
    1,569

    This is one idea: function calculate() { ...

    This is one idea:

    function calculate() {
    var n = document.tournform.NoPlayers.value;
    var deck = new Array();
    var shuffle = new Array();
    var OutText = "";

    // Check that the...
  20. Something like (have not tested this) do { ...

    Something like (have not tested this)

    do {
    var x=prompt("Enter option 1, 2, or 3","") }
    until ((!isNaN(x) && (x > 0) && (x < 4));

    Use of prompt() is on the decline, but it is a good place...
  21. One idea is a "do .... until" loop with the...

    One idea is a "do .... until" loop with the first condition being (!isNaN) of the prompted variable, perhaps anded with other conditions to be sure the option is within your range.

    Jednym z...
  22. Replies
    8
    Views
    3,037

    jQuery To create a list of consecutive numbers in random...

    To create a list of consecutive numbers in random order, use a second array, example deck.

    for (i=0; i < 15; i++) deck[i]=i+1
    Your next for statement should probably be from the top down. To get...
  23. Replies
    10
    Views
    4,438

    You take the square root of "b-squared minus 4ac"...

    You take the square root of "b-squared minus 4ac" and isn't it, you have 4AC minus 1 plus b-squared. Try "BA -4*A*C" or "(4*A*C*-1+BA)" instead.
  24. Thread: CoTangent

    by wbport
    Replies
    4
    Views
    1,424

    Do you mean arctangent instead of cotangent? It...

    Do you mean arctangent instead of cotangent? It looks like you already have the ratio of the sides and want the angle.

    Math.atan2(x,y) * 180 / pi

    or just Math.atan(r) if you already have...
  25. Thread: DevX Tip Bank

    by wbport
    Replies
    0
    Views
    686

    DevX Tip Bank

    Where do posts for a JavaScript suggestion go in the DevX Tip Bank?
Results 1 to 25 of 437
Page 1 of 18 1 2 3 4
HTML5 Development Center



Recent Articles