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.
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...
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...
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;
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.