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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jan 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Make this script work from a hidden field

    I found a script at http://hotarea.com/fast/display.exe?...ldPreview.html and thought it would be quite useful to have. The code is very simple, as can be seen if you follow the link.

    However, i need it to work with just the hidden field as the input, which means i can't use the onKeyUp event to trigger the script. The hidden field's value is updated by a different script.

    I can post the other (long) script if needed.

    Thanks in advance,
    Andrew

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    In your other script, all you need to do is update the innerHTML of the element that you wnat to change and not use another script.

    document.getElementById("theId").innerHTML = yourVariable;
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #3
    New to the CF scene
    Join Date
    Jan 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    Thanks, never thought about doing i that way


  •  

    Posting Permissions

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