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 strongm 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: *

  1. hexaplus

    Closure protection?

    I see what your were saying now my initial inclination was to simply block the proObj from being modified so the user could still make getElementById calls if they really wanted to but you right a write call could still wreck havoc. Thanks for your input. Ull post the regex when I get around to it.
  2. hexaplus

    Want to limit number of lines and characters in textarea

    Are you sure you don't want to use the maxlength="1250" text area property? or this var arrLines=strAllText.split("\r\n"); if(arrLines.length>maxLines) { alert('toManyLines'); var newArray=arrLines.splice(0,maxLines); objTextArea.value =newArray.join("\r\n"); } else { for(var...
  3. hexaplus

    Closure protection?

    Actually You can. Location would be need to be added to the list. Because document location and window are not reserved words they can be deffined as local variables. The above code is an example of closure the document and window deffinitions will take precedence over the global doument and...
  4. hexaplus

    need help with a JS mouseover/popup

    Not quite sure but it look like your subtracting 150 from the obj instead of adding it it to the add // var objleft=obj.offsetLeft-150; var objleft=obj.offsetLeft; adobj.style.left=objleft+objwidth;
  5. hexaplus

    Closure protection?

    Hello every one! I have a tricky Question for you all. I have a text box on a page which is going to use eval to evaluate math functions. I would like to leverage eval but don't want the user to shoot them selves in the foot inadvertently. can any one think of a way to get around the...

Part and Inventory Search

Back
Top