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 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Mar 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how to trigger an event automatically

    Hello all

    I have to solve this problem.
    I have a disabled field which can be changed by using search help showing the select option. After the user selects his wish, the disabled field contains his selection. I need to trigger an event automatically right after the disabled field is changed. This function triggers the event I need:
    BBPSCForm_Submit('SC_REFRESH')

    the code at the disabled field looks like this:
    <input type=text title="`#GL_ACC`" name="`T_SCREEN_ACCLIST-G_L_ACCT[j].name`" value="`T_SCREEN_ACCLIST-G_L_ACCT[j].value`" maxlength="64" size="11" disabled>

    I hope someone can help.
    Thanx

  • #2
    Regular Coder
    Join Date
    Feb 2009
    Location
    Wheeling, IL
    Posts
    358
    Thanks
    5
    Thanked 62 Times in 60 Posts
    Have you tried using onchange? Example:

    Code:
    <input type="text" onchange="do whatever you want to do" />
    Should definitely do the trick.
    The way to success is to assume that there are no impossible things. After all, if you think something is impossible, you will not even try to do it.

    How to ask smart questions?

  • #3
    New to the CF scene
    Join Date
    Mar 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It doesnt work, because the change is happening on the search help page.
    User clicks on a link to select options. After the selection the user is sent back to the main window. The field is changed (but disabled so it is not possible to change without the search help link). After this I need to trigger the the function with SC_REFRESH event, but I have no event on in the main window.

    BTW the BBPSCForm_Submit('SC_REFRESH') works fine if the field is not disabled and using for example an Onlick event.

  • #4
    Regular Coder
    Join Date
    Feb 2009
    Location
    Wheeling, IL
    Posts
    358
    Thanks
    5
    Thanked 62 Times in 60 Posts
    Well, in that case you're going to have to use a callback. Considering the distinct lack of code... I'd suggest you go to the following website and read up on it:

    http://w3future.com/html/stories/callbacks.xml

    Hopefully that helps.
    The way to success is to assume that there are no impossible things. After all, if you think something is impossible, you will not even try to do it.

    How to ask smart questions?


  •  

    Posting Permissions

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