×
Create a new article
Write your page title here:
We currently have 3,189 articles on s23. Type your article name above or create one of the articles listed here!



    s23
    3,189Articles

    Improved Search Form Example: Difference between revisions

    Content added Content deleted
    imported>mutante
    mNo edit summary
    imported>mutante
    mNo edit summary
     
    (One intermediate revision by the same user not shown)
    Line 13: Line 13:


    {{#input: type = submit | value = Full text search
    {{#input: type = submit | value = Full text search
    | onClick = findForm.action='/Special:Search/'+document.getElementById('input').value;
    | onClick = findForm.action='http'+'://s23.org/wiki/Special:Search/'+document.getElementById('input').value;
    }}
    }}



    Latest revision as of 19:07, 22 August 2007

    {{#form:name=findForm|class=find|action=/w/index.php|

           {{#input:name=content|id=query|type=hidden}}
           {{#input:name=q|id=q|type=hidden}}
           {{#input:name=go|id=input|type=text|value={{#request:go}}}}
    
           {{#input: type = submit | value = Title or DPL-query
                   | onClick = var input = document.getElementById('input').value;
                           findForm.action = '/w/index.php';
                           if (0>input.indexOf('=')) findForm.action = '/'+input;
                           else document.getElementById('query').setAttribute('value','{'+'{#dpl:'+input+'}'+'}');
           }}
    
           {{#input: type = submit | value = Full text search
                   | onClick = findForm.action='http'+'://s23.org/wiki/Special:Search/'+document.getElementById('input').value;
           }}
    
           {{#input: type = submit | value = Wikipedia
                   | onClick = findForm.action='http'+'://en.wikipedia.org/wiki/'+document.getElementById('input').value;
           }}
    
           {{#input: type = submit | value = Google
                   | onClick = findForm.action='http'+'://www.google.com/search';
                           document.getElementById('q').setAttribute('value',document.getElementById('input').value);
           }}
    

    }}

    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.