Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] INPUT TEXT show last characters
- From: rvandam00 at gmail.com (Robert Van Dam)
- Subject: [Javascript] INPUT TEXT show last characters
- Date: Tue Jan 30 20:10:18 2007
On 1/30/07, Nico Ferretti <ferrettinico@xxxxxxxxx> 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| > ---------------------- Other than just making the text field large enough to show the entire string, I don't think its possible to do what you're asking for. However, you could hack it to work by having the page load with only the last X characters in the field and then as soon as someone clicks in the box, swap the short string for the full string. Unfortunately, in some (maybe all?) browsers that might suddenly snap the user to the beginning of the string which may not be a bit odd. Rob
- Follow-Ups:
- [Javascript] INPUT TEXT show last characters
- From: Nico Ferretti
- [Javascript] INPUT TEXT show last characters
- References:
- [Javascript] INPUT TEXT show last characters
- From: Nico Ferretti
- [Javascript] INPUT TEXT show last characters
- Prev by Date: [Javascript] INPUT TEXT show last characters
- Next by Date: [Javascript] is their a javascript function, or DOMproperty to find the char limit of a table cell or div?
- Previous by thread: [Javascript] INPUT TEXT show last characters
- Next by thread: [Javascript] INPUT TEXT show last characters
- Index(es):