JMRKER's Profile User Rating: -----

Reputation: 131 Stalwart
Group:
Contributors
Active Posts:
853 (0.36 per day)
Joined:
25-October 08
Profile Views:
10,474
Last Active:
User is offline Today, 05:49 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Who Cares
Favorite Browser:
FireFox
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
50

Latest Visitors

Icon   JMRKER has not set their status

Posts I've Made

  1. In Topic: Print selected items out on a separate page.

    Posted 5 Apr 2015

    Couple of problems to fix even if you are using jquery
    of which I am only passing familiar with:

    1. You <label> tags are mis-spelled.
    2. No browser recognizes duplicated "id" values,
    ie: id="select-custom-19"
  2. In Topic: Multicolumn combobox

    Posted 3 Apr 2015

    The input field is hidden until "Select" is chosen.
    Obviously it could be implemented with a different event.

    Only advantage I see in my attempt is that the user's entry
    is available even if a different selection is chosen.

    Disadvantage to mine is that I did not format it as nice with CSS.
  3. In Topic: Multicolumn combobox

    Posted 2 Apr 2015

    If the datalist tag doesn't work in all browsers,
    would this be an adequate substitute until it is?

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8" />
    
    <title> DataList Substitute </title>
    <style type="text/css">
     #SelectValue { display:none; }
    </style>
    
    </head>
    <body>
    <select onclick="getSelectValue(this.value)">
      <option value="">Select</option>
      <option value="85883-67456-234 A 100101">85883-67456-234 A 100101</option>
      <option value="2332442 Z VM4445">2332442 Z VM4445</option>
      <option value="838821-645-233 C 200020">838821-645-233 C 200020</option>
    </select> <div id="SelectValue"> New info: <input type="text" id="SelectionValue" value=""> </div>
    
    <script type="text/javascript">
    function getSelectValue(info) {
      var sel = document.getElementById('SelectValue');
      if (info != '') { sel.style.display == 'none';  return; }
      sel.style.display = (sel.style.display == 'none') ? 'block' : 'none';
    }
    </script>
    
    </body>
    </html>
    
    
  4. In Topic: Multicolumn combobox

    Posted 31 Mar 2015

    Can you provide a small sample of the kind of information that would be withing the dropdown combo boxes?
    How many levels would be required?
  5. In Topic: ~~n symbol question

    Posted 13 Feb 2015

    View PostNallnaom, on 13 February 2015 - 10:52 AM, said:

    Bitwise logical operator huh! I'm sorry your example does not really give me much help, but I know what to read on about now! So thanks! :bigsmile:/>/>



    var isSquare = function(n){
      n = Math.sqrt(n);
      return ~~n === n;
    }
    
    

    Bottom line in the code above:
    It checks each bit of the answer of the Math.sqrt() function
    to make sure that it is an EXACT match.

    If it is not an exact match, then the value has probably been rounded somewhere.

    ~ is NOT
    ~~ is NOT NOT

    Logically, NOT NOT 'something' should be equal to the original 'something'.


    Function used in an example:
    <script type="text/javascript">
    
    var isSquare = function(n){
      n = Math.sqrt(n);
      return ~~n === n;
    }
    
    var x = 25;  alert(x+' is square of '+Math.sqrt(x)+ ' and is a perfect square: '+isSquare(x));
        x = 20;  alert(x+' is square of '+Math.sqrt(x)+ ' and is a perfect square: '+isSquare(x));
    
    </script>
    
    

My Information

Member Title:
D.I.C Addict
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Location:
Florida
Programming Languages:
javascript, perl, java, forth, basic, fortran, assembly (several)

Contact Information

E-mail:
Private
Website URL:
Website URL  http://

Friends

Showing 50 random friends of 4

Comments

JMRKER has no profile comments yet. Why not say hello?