Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: gerases
  • Content: Threads
  • Order by date
  1. gerases

    IE Mac

    Hello, I've got this pesky problem with the IE under Mac (5.1). Here's the code. var myTable = document.getElementById("tableID").getElementsByTagName("tbody")[0]; var myRow = document.createElement('TR'); var myTD = document.createElement('TD'); var elem = document.createElement('select')...
  2. gerases

    createelement / name

    Weird behavior in Safari: myRow = createElement('tr'); myTD = createElement('td'); elem = createElement('select'); elem.name = 'my_name'; myTD.appendChild(elem); myRow.appendChild(myTD); alert(myRow.innerHTML) gives: <TR> <TD> <SELECT></SELECT> </TD> </TR> Bottom line, the name...
  3. gerases

    Events

    Hello, here's a function that I have a question about: function enterPressed(e) { var charCode; if (window.event) { charCode = event.keyCode; } else { charCode = e.which; } // alert(charCode); if (charCode == 13) { return true; } else { return false; } }...
  4. gerases

    Six JavaScript features we do not need any longer

    Found this article on the net: http://www.wait-till-i.com/index.php?p=104 Can someone explain to me what the author is talking about in item 6? More precisely, what is the alternative to passing a lot of paramaters to a function? For example, I have a user list. When one presses "Edit" next to...
  5. gerases

    create button with createElement

    All right, a new problem. I'm trying to create a button with with document.createElement but IE refuses to work right. Here's the code: basicElem = document.createElement("INPUT"); basicElem.setAttribute("type", "button"); basicElem.setAttribute("value", "edit")...
  6. gerases

    onclick -- dynamic definition

    I have an html table with each row having a button that has its onclick defined as follows: onclick=edit(parm1,parm2,event) // this is generated from php Then, I have the edit function defined as something like this: function edit (parm1, parm2, event) Well, then in "edit" I need to redefine...

Part and Inventory Search

Back
Top