dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: wbport

Page 1 of 16 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    2
    Views
    355

    You can have a textarea selected in JavaScript,...

    You can have a textarea selected in JavaScript, but the user would have to Cntl/C or Cntl/X as the first step in moving or copying it to another App (Alt/Tab). A simple example: ttr.htm .

    If you...
  2. Replies
    8
    Views
    1,658

    One question is what type of web site are you...

    One question is what type of web site are you interested in? I have a few dozen pages that illustrate with JavaScript problems (and solutions!) that interested me at some time. For example, after...
  3. Replies
    2
    Views
    443

    Other A place to get you started: You can get today's...

    A place to get you started: You can get today's date in milliseconds from a certain base and you can get the date of Halloween also in milliseconds from that same base. What would happen if you...
  4. Replies
    1
    Views
    372

    Are your pictures in the same folder as your...

    Are your pictures in the same folder as your webpage? If so, for your src within img would be "mypic.jpg". If the pictures are in a folder just above your webpage, it would be "../mypic.jpg". If...
  5. Replies
    2
    Views
    459

    You can write cookies to save data but without...

    You can write cookies to save data but without the user's assistance, that's all. You can put stuff on a textarea and preselect it and ask the user to copy it to the clipboard and do something with...
  6. OK, I see now. You are trying to walk over...

    OK, I see now. You are trying to walk over document.calc.pay.value every time you calculate it. First replace 'document.calc.pay.value =' with 'return '. Add a table to your html body with number...
  7. Does the source code say it is copyrighted? Have...

    Does the source code say it is copyrighted? Have you contacted the original author? Does your page acknowledge the original? In adapting a site from a "free web site if you let us put ads on it"...
  8. Check out the source to my tax...

    Check out the source to my tax pages. Instead of named text areas, I move things to ...elements[subscript].value . In your nested for loop after calculating the payment, use your subscript values...
  9. Why replicate your code? Nested for loops will...

    Why replicate your code? Nested for loops will let you vary number of computers as well as months and also give you subscripts to store and display your answers.
    It isn't necessary to name the text...
  10. Multiply the number of compters by their cost....

    Multiply the number of compters by their cost. Then use that as the amount financed when you crunch the numbers for 12, 24, and 36.
  11. I'm familiar with that formula, but have two...

    I'm familiar with that formula, but have two questions on your code. Where is term used and why would it be changed? Where is Months changed to 12 times the years plus any extra months calculated...
  12. Rounding a dollars and cents amount up to the...

    Rounding a dollars and cents amount up to the next quarter isn't that difficult.

    Multiply by 4 (actually multiply by 100 and divide by 25).
    Replace that amount by running it through the...
  13. Replies
    1
    Views
    653

    You might want to edit your table using...

    You might want to edit your table using subscripts in a for loop. Leave a text area near the bottom of your form for error messages. In case of an error describe it, do a focus() on the problem...
  14. Replies
    1
    Views
    710

    Try storing current values of a, b, and C in...

    Try storing current values of a, b, and C in separate variables which you store when it is necessary to leave. For example

    for (b = b_init; b < word .. etc)
    Of course, you would move zero to...
  15. Glad I could help. This was the first time I...

    Glad I could help.

    This was the first time I had seen WScript outside of user tools started in a music notation program, this is the end of a typical script:


    var...
  16. You need to be doing or performing the same thing...

    You need to be doing or performing the same thing on keyCode 13 as you do when someone clicks on Submit. Also, is there anywhere else on your page where the user would press Enter where you would...
  17. You need to create a hit key event. Check the...

    You need to create a hit key event. Check the top of this timesheet page for ideas, lines 11 - 37. The value of the return key is 13. The key hit event will have a LOT of traffic so be sure your...
  18. Can your script make an educated guess as to what...

    Can your script make an educated guess as to what the size of the window should be? Around line 182 of this mortgage page the size is calculated before the window is opened.
  19. Replies
    1
    Views
    448

    To round to the nearest multiple of four: 1)...

    To round to the nearest multiple of four: 1) Divide by 4. 2) Round. 3) Multiply by 4.
  20. Try to read a cookie you put on the user's site...

    Try to read a cookie you put on the user's site earlier. If you can't find it do your dialog thing and set a cookie to expire in 30 days. If you can find that cookie, no monthly dialog.
  21. Replies
    2
    Views
    867

    Regular expression question

    I am trying to read one or two numbers from a line, the first one may have a decimal point and one or two digits behind it and the 2nd one (if it exists) will have no more than two digits. This is...
  22. function playOne() { var randSum=0; for...

    function playOne() {
    var randSum=0;
    for (var i=0; i < 20; i++)
    randSum+= Math.random();
    return (randSum * 0.7748) - 7.748;
    } might work
  23. Replies
    6
    Views
    2,799

    Sorry, I missed the [i] in the original post.

    Sorry, I missed the [i] in the original post.
  24. Replies
    6
    Views
    2,799

    Are you getting your checkboxes and radio buttons...

    Are you getting your checkboxes and radio buttons mixed up? Checkboxes are stand alone as to whether they are checked or not but radio buttons come in sets. This round robin generator has several...
  25. Replies
    2
    Views
    857

    Try this resourse:...

    Try this resourse: www.codelifter.com/main/javascript/slideshow2.html I use it for a slideshow of cats: cats on a garden chessboard.
Results 1 to 25 of 394
Page 1 of 16 1 2 3 4
HTML5 Development Center



Recent Articles