Multiple Client Side Events?
Last Post 11-17-2010 07:32 AM by Ryan Bakerink. 5 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages
ChuckUser is Offline
river guide
river guide
Posts:157
Avatar

--
11-15-2010 10:52 AM
    If I have a question shortname field called $(FirstName),  I know that if I want on onkeypress client side event, I would have to rename it $(FirstNameonkeypress) correct?

    What if I want to add another client side event to it, e.g. an onkeydown and onkeyup.   How would you add an additional client side event to that same question?

    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    11-15-2010 11:49 AM
    Hello Chuck,

    I believe you can achieve this by taking the original short name:

    FirstName

    Now lets add the "onkeypress" client side event to the shortname:

    FirstNameonkeypress

    Now this is the tricky part but I think this will work, so lets add another client side event to the short field name:

    FirstNameonkeypress_onkeydown

    ------------------------------

    So I believe this will work, as long as these events are included in the name then Dynamic Forms should pick this up and add the client side events to it.

    Please test this out and let me know how this works for you.

    Thanks,

    Ryan
    ChuckUser is Offline
    river guide
    river guide
    Posts:157
    Avatar

    --
    11-15-2010 12:26 PM
    Posted By Ryan Bakerink on 11/15/2010 1:49 PM
    Hello Chuck,

    I believe you can achieve this by taking the original short name:

    FirstName

    Now lets add the "onkeypress" client side event to the shortname:

    FirstNameonkeypress

    Now this is the tricky part but I think this will work, so lets add another client side event to the short field name:

    FirstNameonkeypress_onkeydown

    ------------------------------

    So I believe this will work, as long as these events are included in the name then Dynamic Forms should pick this up and add the client side events to it.

    Please test this out and let me know how this works for you.

    Thanks,

    Ryan

    Hi Ryan,
    Thanks for providing that.   Very helpful.   But I did notice something in my inital test.  I created a test client side event and it was being used by both onkeypress and onkeydown.  How do I distinguish which event to be used?

    Thanks again.

    Edit:  No need to followup.  It works fine regardless.
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    11-16-2010 02:23 PM
    Hello Chuck,

    Did you mean which one would have precedence over the other if both were invoked?

    If this is what you're asking then, I'm guessing the event that appears first in the name should do it's thing and then move on the the next.

    Thanks,

    Ryan
    ChuckUser is Offline
    river guide
    river guide
    Posts:157
    Avatar

    --
    11-17-2010 04:46 AM
    Posted By Ryan Bakerink on 11/16/2010 4:23 PM
    Hello Chuck,

    Did you mean which one would have precedence over the other if both were invoked?

    If this is what you're asking then, I'm guessing the event that appears first in the name should do it's thing and then move on the the next.

    Thanks,

    Ryan
    Thanks Ryan.  Its working they way I want it.  I just had to rearrange the order of the functions appear on the client side.

    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    11-17-2010 07:32 AM
    Hello Chuck,

    I'm glad to hear that this is working how you'd like.

    If you ever have any questions please let me know.

    Thanks,

    Ryan


    ---
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi