Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2005-09-22 17:22:56

TiCo
New member
Registered: 2005-09-22
Posts: 5

Make Link: value without 'http://' parsed as local link

Hi all,

I found out that if you type 'www.site.com' in the Link PopUp input field, the value is not parsed as absolute link (http://www.site.com), but as a local one (www.yoursite.com/xinha/www.site.com).

So, if the end user is not-so-experienced, it could be useful a quick simple function like this:


function http (myField) {
if (myField.value.indexOf("www.")==0) {
myField.value="http://"+myField.value;
    }
};


:: and then called onKeyPress in the URL field:


<input type="text" id="f_href" onKeyPress="http(this)">


-------
Bye

Offline

Board footer

Powered by FluxBB