Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New Coder
    Join Date
    Aug 2003
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How to make textfield string insertion invisible to user

    I have a textfield that I populate with a string when the user clicks a button elsewhere on the page. Is there a way to make the populating of the field invisible to the user?
    Thanks!
    Mary

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Please read the forum rulez as this sounds like your other question.
    Try style="display:none"
    Last edited by zoobie; 10-21-2003 at 12:21 AM.
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #3
    New Coder
    Join Date
    Aug 2003
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I want to hide the programmatic INSERTION OF TEXT, not the actual field....

  • #4
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi;

    Instead of a textfield use a hidden form input.

    <form name="myForm">
    <input type="hidden" name="programmatic" value="Text String">
    </form>

    ...Willy

  • #5
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Did ^^^^that^^^^ answer your question?

  • #6
    New Coder
    Join Date
    Aug 2003
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Close but no cigar

    Hi Willy,
    Not quite but I appreciate the answer just the same. I have a search field that the user can input what he wants. And I have a button that says "display sold products" and it works good too. I just didn't want to have the user watch as the search field was being populated programmatically with the word "sold" - kind of cheesy. Any ideas??
    Thanks a ton!
    M

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    1,137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <form name="myForm">
    <input type="hidden" name="programmatic" value="Text String">
    <input type="text" name="searchfield" value="my search">
    </form>

    <script>
    function foo(){
    var ght=document.myForm.programmatic.value;
    ght+=document.myForm.programmatic.value;
    document.myForm.programmatic.value=ght;

    alert(ght);
    alert('is now in the progmatic form box');
    }
    </script>

    then just call function foo before the search is submitted.

    scroots
    Spammers next time you spam me consider the implications:
    (1) that you will be persuaded by me(in a legitimate mannor)
    (2)It is worthless to you, when i have finished


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •