Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Change text value

If I put the code like this
[code]

[/code]
How to change the value of "fff" to "ttt". If can, in ASP(I think may be it is a way), not Javascript. Thank you.

Comments

  • StPatrickStPatrick Member Posts: 76
    There is nothing to do with ASP here. ASP is a server-side and you need client side, e.g. Javascript.
    Of course you can use VBScript for this too, but remember that only IE supports VBScript as client-side language

    [b][italic]Philip Patrick[/italic][/b]
    [b]Home page[/b]: http://www.saintopatrick.com
    [size=1][italic]"Two beer or not two beer?"[/italic] [b]Shakesbeer[/b][/size]

  • jeffy_khorjeffy_khor Member Posts: 163
    Can you give me some example of how to do it in VBScript, as I don't know JavaScript.
    Another question, Can VBScript fully take over JavaScript.
    Thank you.

    : There is nothing to do with ASP here. ASP is a server-side and you need client side, e.g. Javascript.
    : Of course you can use VBScript for this too, but remember that only IE supports VBScript as client-side language
    :
    : [b][italic]Philip Patrick[/italic][/b]
    : [b]Home page[/b]: http://www.saintopatrick.com
    : [size=1][italic]"Two beer or not two beer?"[/italic] [b]Shakesbeer[/b][/size]
    :
    :

  • StPatrickStPatrick Member Posts: 76
    Hmm, I think I replied you somewhere, well, don't remember :)
    As for VBScript, I'd say - no. Only IE accepts VBScript as a client side language.

    Ok here are examples. Remember to add "id" to your INPUT
    Javascript:
    [code]


    function changeText(text){
    document.getElementById("T1").value=text;
    }

    [/code]

    VBScript:
    [code]


    Sub changeText(text)
    document.getElementById("T1").value=text
    End Sub

    [/code]

    [b][italic]Philip Patrick[/italic][/b]
    [b]Home page[/b]: http://www.saintopatrick.com
    [size=1][italic]"Two beer or not two beer?"[/italic] [b]Shakesbeer[/b][/size]

  • Chris BrownChris Brown USAMember Posts: 4,624 ✭✭

    __ [ http://forcoder.org ] free ebooks and video tutorials about || Ruby PL/SQL Objective-C Perl Go Python Delphi Scratch R Visual Basic MATLAB C Swift Visual Basic .NET JavaScript PHP C++ Assembly Java C# Lua FoxPro VBScript Kotlin Hack Awk Alice Crystal Bash Lisp SAS Erlang Julia Prolog Apex ML COBOL Scala Fortran Transact-SQL ABAP Scheme Rust LabVIEW Dart Logo Ada F# Clojure D || _____

Sign In or Register to comment.