www.webdeveloper.com

Search:

Type: Posts; User: wbport

Page 1 of 5 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    5
    Views
    460

    This is a demo of a script which announces a...

    This is a demo of a script which announces a weekly meeting (in this case, Wednesday at noon): nextwed.htm if that helps.
  2. Replies
    4
    Views
    790

    This might give you some ideas: function...

    This might give you some ideas:
    function readRadio(parm) {
    var sel = document.getElementsByName("S"+(6-parm));
    for (var i=0; i<sel.length; i++) {
    if (sel.checked == true) return i;
    }...
  3. Replies
    2
    Views
    597

    What have done so far? Did you get any clues...

    What have done so far? Did you get any clues from the textbook, handouts, or lecture?
  4. I didn't solve the problem, just evaded it. The...

    I didn't solve the problem, just evaded it. The Principal-Interest (P.I.) window now has line numbers which can be used (after closing the window) to initialize the original screen with the...
  5. Or let the computer do even more work: var...

    Or let the computer do even more work:

    var dayname = new Array ('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
    ......................................
    x =...
  6. [RESOLVED] Calling parent with new parameters.

    I have a mortgage calculator which can produce the following table when "Gen P.I. in new window" is selected (options were 20,000 at 5% for 6 years):

    Date Payment Interest AppPrin ...
  7. Replies
    6
    Views
    1,146

    One of my early pages (no forms or table) called...

    One of my early pages (no forms or table) called a function that wrote the time difference as document.write()s. The body contained

    It's been
    <SCRIPT language=JavaScript>
    <!--
    compDate("August...
  8. That's a lot more concise than what I ended up...

    That's a lot more concise than what I ended up using
    if (typeof(noteLength) == "undefined")
    return -1; Thanks for the input.
  9. [RESOLVED] Associative array problem, what if item is missing?

    I have the following function in various related pages:

    function getNoteLength(notelet) { // Returns duration of note , whole = 768
    var NoteLengths = { "16th":48, "32nd":24, "4th":192,...
  10. Replies
    2
    Views
    217

    Something like this should work: result =...

    Something like this should work:

    result = "tumblr_mgn6mfe9aD1rbaz5bo1_500.jpg (500×705)".match(/.*\((\d*)×(\d*)\)/
    if (result != null) {
    var picHeight=Number(result[1]);
    var...
  11. Replies
    2
    Views
    232

    From translate.google hello all, I'm...

    From translate.google

    hello all,

    I'm working on a website crust sins,
    and I am now making the menu but it does not really.
    I want a menu like www.ubuntu.com.
    could someone help me there
    I...
  12. My first line should have read: result =...

    My first line should have read: result = valueFromATextArea.match(/(\d*\.\d\d)\D*/)

    The last slash was needed to terminate the regular expression.
  13. result =...

    result = valueFromATextArea.match(/(\d*\.\d\d)\D*)
    if (result == null)
    alert("Insert appropriate squawk here");
    else
    var theNumberIWantToLookAt = parseFloat(result[1]);
  14. /(\d*\.\d\d)\D*/ Should do it. You can take...

    /(\d*\.\d\d)\D*/ Should do it. You can take result[1] to parseFloat to read it.
  15. Replies
    1
    Views
    212

    You could run a **.style.visibility = 'hidden'...

    You could run a **.style.visibility = 'hidden' command from a (body onload=***) or, if you have other things to do at startup, in a function theonload kicks off. I often have something like ...
  16. I think you don't need to add 1 to your random...

    I think you don't need to add 1 to your random number to keep it in the range 0-9.

    var row = Math.floor(1+Math.random()*10);

    You might want to pick 10 random numbers from 0-99 and use those to...
  17. Never mind. Just discovered I forgot new in...

    Never mind. Just discovered I forgot new in these lines:

    sumMeasure = 0, sumBatch = 0;
    for (var iU=0; iU < lineU.length; iU++) { // Initial processing loop on upper staff.
    lineUarr[iU]...
  18. [RESOLVED] Array of objects crashes script.

    I am trying to upgrade a working page to use an array of objects. The existing page is spacepart.htm and am working on spacepart1.htm.
    This is a sample of what's new:
    function noteTable(thisLine)...
  19. Replies
    1
    Views
    159

    Well, what is your question? FWIW mortgage.htm...

    Well, what is your question? FWIW mortgage.htm, will crunch the numbers if you know how much the loan is for, the interest rate, and length of the loan. It can't help with any service charges,...
  20. Replies
    6
    Views
    388

    It looks like the fields populated by...

    It looks like the fields populated by getElementById don't get executed until "submit" has been clicked so the Blur functions never get run with the latest data.
  21. [RESOLVED] JScript outside of HTML, WScript

    All of my JavaScript thus far has been as part of a webpage, but have been encouraged to create "tools" where text is provided to a function as a parm from "StdIn" and returned to a StdOut. This is...
  22. Replies
    3
    Views
    193

    I hadn't thought of doing a test in that order,...

    I hadn't thought of doing a test in that order, but I'll have to keep that in mind for the future, thanks for looking at it. It worked when I checked for null so I uploaded it to spacepart.htm. ...
  23. Replies
    3
    Views
    193

    Never mind. I am now checking for null rather...

    Never mind. I am now checking for null rather than an empty string.
  24. Replies
    3
    Views
    193

    [RESOLVED] Regular expression question

    In something to read clipboard data from a music notation program, I am not interested in a note if it has the Grace attribute, stem direction is missing, or spacing has already been applied. The...
  25. Replies
    22
    Views
    762

    You're welcome, but make sure you are a lot...

    You're welcome, but make sure you are a lot further along before coming to this forum. This should be the last resort, not the first. Someone on a programming forum I used to visit was notorious...
Results 1 to 25 of 120
Page 1 of 5 1 2 3 4
HTML5 Development Center



Recent Articles