[Javascript] INPUT TEXT show last characters
Terry Riegel
riegel at clearimageonline.com
Thu Feb 1 20:51:17 CST 2007
<html>
<head>
<title>Tester</title>
<script>
function sf()
{
document.forms.thetext.ci_mytext.focus();
document.forms.thetext.ci_mytext.scrollTop=1000;
document.forms.thetext.ci_mytext.scrollLeft=1000;
}
</script>
</head>
<body onload="sf();">
<form action="test.html" name="thetext" method=post>
<input type="text" name="ci_mytext" value="This doesn't sound like
a problem. Since the text will be a fixed size, you'll determine
that size.">
</form>
</body>
</html>
This gets it close. If you run this and type a key you will see the
cursor is at the end. It places the cursor at the end but doesn't
scroll for me until I hit a key (both in FF and Safari). Maybe
someone could come up with a way to make this work. It gets close.
If anyone can get it working I am very interested in this as I have a
similar need for this functionality.
Terry
On Jan 30, 2007, at 3:54 PM, Nico Ferretti wrote:
> Hi!
>
> I have a page with a lot of INPUT TEXT elements, already filled
> with URL's (so they have long strings within them).
>
> The problem is that I want to show the end of the string, not the
> beginning when the page loads.
>
> For example:
>
> ----------------------
> |https://lists.lat|
> ----------------------
>
> (the end would be ech.edu//pipermail/javascript/2007-January/
> thread.html )
>
> I want to show
>
> ----------------------
> |ry/thread.html|
> ----------------------
>
> Thanks in advance,
>
> Nico.-
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20070201/c597a529/attachment.htm>
More information about the Javascript
mailing list