Great Ideas. Always Flowing.

We are not happy until you are happy. Client satisfaction guaranteed. Whatever your needs and requirements, we have the skills and resources for the job!

Quick login...


Or... now make it easy with Facebook Integration
Connect via Facebook



Top Sellers

Frustrated over the lack of customization for your user's registration fields? Dynamically setup your DNN Portal with custom registration fields, layout, questions, and other core integration options......

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to upload videos in various format and automatically encode them to flv or H264 format, you also can add videos from internet or record live videos from your webcam.

Build high performance, completely customizable data-entry forms and views driven by your DNN and external databases. New built-in tools make it a snap to quickly create data entry forms, data views, and even database tables. Plus, add your own HTML, CSS, Javascript, SQL commands, stored procedures,

The most advanced DotNetNuke shopping cart on the planet. Easy to use e-Commerce, Secure Shopping Cart Software and SEO friendly. B2C / B2B Ecommerce Sites.

One stop solution for events calendar and events registration! FREE DOWNLOAD is available now!

Timing on the Client Side Events on different Devices
Last Post 10-08-2013 07:36 AM by Ryan Bakerink. 10 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Mark BuelsingUser is Offline
river guide
river guide
Posts:241
Avatar

--
09-25-2013 11:47 AM
    I am finding that the client side events (CSE) are behaving differently on my smartphone than on the PC and I need a fix or workaround.

    There are three combo boxes on the form, each with the identical client side event that totals the values of the three fields and puts the total in a lower textbox.

    If I watch closely on the PC, I can see that the client side event fires when I click open a combo box and again when it closes when a choice has been made. The second fire is more important to me because if I make a choice in the combo box, the QuestionOptionValue is included in the total calculation that the client side script does. So it all calcs fine on the PC.

    On the smartphone (android) and on tablets and ipads, it appears that the client side event fires when the combo box is opened but does not fire when a choice is made. The result is a problem. The choice the user made in the combo box is not included in the calculation. Or more accurately it might be said that the calculation does not happen.

    Additionally, the CSE will run if I touch the form or any other field after changing the value of the combo box. I interpret that as forcing the focus to leave the combo box - and that is what makes the on exit CSE fire. Right?

    1. Why is the behavior different on the mobile devices?
    2. How can I trigger the client side event to run after the combo box closes so that the user's choice is included in the calculation the client side event does?
    3. Is there a setting that needs to be changed?

    Thanks in advance for your help.
    Mark BuelsingUser is Offline
    river guide
    river guide
    Posts:241
    Avatar

    --
    09-25-2013 12:03 PM
    Can this be fixed by using javascript to move focus to the next field? How do I do that? I want this to happen client side so that the user does not have to wait for the round trip to the server.
    Mark BuelsingUser is Offline
    river guide
    river guide
    Posts:241
    Avatar

    --
    09-27-2013 06:10 AM
    Isn't there a way to trigger that Client Side Event to fire after the choice is made on the combo box?
    Mark BuelsingUser is Offline
    river guide
    river guide
    Posts:241
    Avatar

    --
    09-28-2013 11:25 AM
    Been working with the javascript and not understanding how to move to the next field yet. Ans still not sure if that will run the client side event.
    Mark BuelsingUser is Offline
    river guide
    river guide
    Posts:241
    Avatar

    --
    09-30-2013 04:13 AM
    Still hoping to get a tip to make the CSE fire when the user makes a choice in the combo box.
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    09-30-2013 05:19 AM
    Hello Mark,

    You may want to test the onClick, onkeyup, onkeydown, onkeypress, etc... features that you simply append to the short field name of your Question. Page 152:
    http://www.datasprings.com/userguid...rGuide.pdf


    For instance, if you include onkeypress to the short field name of your Question, then whatever JavaScript is placed in your Client Side Event section, will be executed on keypress.

    By default, a Client Side event operates as the onChange or sometimes onBlur depending on the Question field type. It sounds like this is operating as an OnClick attribute when using your Android.

    You can add an event handler using jQuery with your Combo box. All the information needed to do so is located here:
    http://api.jquery.com/change/

    I would recommend adding this jQuery event handler in the Footer Template for this Dynamic Forms. You can find this under Module Configuration -> System Messages.


    Please let me know if you have any questions.

    Thanks,

    Ryan


    Mark BuelsingUser is Offline
    river guide
    river guide
    Posts:241
    Avatar

    --
    10-01-2013 08:00 AM
    Ryan,

    1. are the onClick, onkeyup, onkeydown, onkeypress events available for field types other than textboxes? I tried these all on my combo boxes and really did not see any difference.

    2. Are other types of events available besides onClick, onkeyup, onkeydown, onkeypress?

    Thanks!, Mark
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    10-01-2013 02:06 PM
    Please review the User Guide to see the list of available events.

    For a combo box you'll need to use OnChange(which is usually the CSE section, but in your case the provided JavaScript in this section is acting as Onclick on an Android), I don't believe appending the onfocus or onclick to the shortfield name of a combo box will help.

    I would recommend looking into the jQuery link that I provided. You may need to implement this just for the sake of the Android interactions. Does this script operate as expected with a computer?

    Please let me know.

    Thanks,

    Ryan
    Mark BuelsingUser is Offline
    river guide
    river guide
    Posts:241
    Avatar

    --
    10-02-2013 04:59 AM
    Ryan, Those 4 events were the only ones in the manual. My question was intended to ask if you knew that any others were wired to work in addition to what the manual spoke of. Additionally, the manual only describes these events in association with the textbox expressly. It does not speak about the events available for the other field types so I'm still not sure what is supposed to work for combo boxes. I'd like to know now if I can add onchange to the field name and have it work for a combo box.

    I appreciate your link for the event handler procedure. I did study it and following the directions am able to raise an alert in response to the combo box on change. I don't know enough javascript to write the procedure to grab the combo's new value and put it into a nearby textbox. That is why I keep coming back to trying to use the CSE, because in there I can use the $(ShortFiledName) references and be good to go.

    Also, this functionality failure should not be marginalized towards android phones. The CSE is behaving one way with a Windows computer and is failing to fire (on change) on Androids and the Mac, I Phone and I Pad. So that includes virtually all phones, tablets and Macs. With sales for mobile devices exceeding computers soon more of my thousands of users are using mobile than computers. This has broken some of the usefulness and functionality of Dynamic Forms for all these devices. The numbers involved suggest that DataSprings might have incentive to develop a fix to the combo box on change event instead of having one user create a one-use workaround. Respectfully and humbly suggested.
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    10-08-2013 07:31 AM
    Hello Mark,

    Thank you for your concerns and suggestions.

    Regarding the events I know they work with Textboxes and Multi-textboxes. This may not be true for Combo boxes, however this isn't definitive in the User Guide so I thought it may be worth a try. If this isn't the case, I believe the jQuery handler would be the best way to handle this issue.

    It's worth a try to place the jQuery handler into the Initial JavaScript section under Module Configuration -> Advanced Coding Options -> Custom JavaScript File.

    Initial JavaScript provides the ability to use Dynamic Form tokens that are created by the shortfield name of questions on your form. However please note that in order to have a Question's token accessible in Initial JavaScript, you must have minimally some type of JavaScript in the client side event on the Question level. Providing a variable declaration would be suitable if you have no specific need for JavaScript in the client side event. I use this all of the time for this exact scenario:

    var nothing;


    I'll submit the details in this forum thread to our Bug tracking system so that this issue can be reviewed and queued within our future patches.

    Please let me know if you have any questions, concerns or issues.

    Thanks,

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

    --
    10-08-2013 07:36 AM
    I have submitted a bug ticket into our bug tracking system:
    https://datasprings.atlassian.net/browse/DR-40

    Please let us know if you have any issues with the jQuery event handler.

    -Ryan
    You are not authorized to post a reply.


     
     

    Join our mailing list...

    Get current news and events the easy way
     
     
       
    Subscribe Me

    Recent Blogs...

     
    Copyright 2005 - 2011 by Data Springs, Inc.
     
  • 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