Re: Add Link form default http:// setting

  •  03-07-2007, 3:19 PM

    Re: Add Link form default http:// setting

    Torman:
     How to make “http://” on “add link” form appear by default in URL text box and be default type. So users would not have to choose it.
     
    It's by design.
     
    Most of the links the user created will be absolute paths without the domain name ( <a href="http://cutesoft.net/default.aspx">Home</a> ). Only when you create absolute paths with the domain name ( <a href="http://cutesoft/default.aspx">Home</a> ), you need to set “http://” by default.
     
    If you still want to do that, please follow the steps below:
     
    1. Open Tag_A.ascx
     
    2. In the bottom of this file, copy and paste the following code:
     
    <script>
    function Update_sel_protocol (src)
    {
     var found=false;
     for(var i=0;i<sel_protocol.options.length;i++)
     {
      var val=sel_protocol.options(i).value;
      if(src.substr(0,val.length).toLowerCase()==val)
      {
       if(sel_protocol.selectedIndex!=i)
        sel_protocol.selectedIndex=i;
       found=true;
       break;
      }
     }
     //set others
     if(!found)
      sel_protocol.selectedIndex=0;
    }
    </script>

    This should resolve your problems.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View Complete Thread