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

  • 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]

  • 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]
    :
    :

  • 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]

Sign In or Register to comment.

Howdy, Stranger!

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

Categories