PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

jQuery Update Method for Ajax Submit

  1. yellowhousedesign
    Member

    Hi all,
    Running into a bit of a snag. I am using Tiny Scrollbar http://www.baijs.nl/tinyscrollbar/ which basically allows me to style a overflow scroll-bars. Using this in combination with Gravity Forms - on submit - the content height area is not properly adjusted. He mentions in the FAQ to "use the update method on content changes" - which isn't necessarily specific to Tiny Scrollbar, but any general AJAX call. This should obviously be a pretty simple addition - but I'm not as familiar with the update method; I'm assuming he means change(). I've tried for about an hour without any avail - so any help would be greatly appreciated, as I believe this would also help others that may run into this. Thanks!

    Posted 12 years ago on Sunday January 8, 2012 | Permalink
  2. By reading their documentation, the "update" method they are referring to is a method specific to Tiny Scrollbar. Following is a sample code from their documentation page.

    var oScrollbar = $('#scrollbar1');
    oScrollbar.tinyscrollbar();
    oScrollbar.tinyscrollbar_update();

    What I think you need to do is use the Gravity Forms gform_post_render javascript hook to call the Tiny Scrollbar update method. Following is the documentation page for the gform_post_render hook which should point you in the right direction on how to use that hook.
    http://www.gravityhelp.com/documentation/page/Gform_post_render

    Posted 12 years ago on Wednesday January 11, 2012 | Permalink
  3. yellowhousedesign
    Member

    Really appreciate it, thanks!

    Posted 12 years ago on Wednesday January 11, 2012 | Permalink
  4. Thank you for the update.

    Posted 12 years ago on Wednesday January 18, 2012 | Permalink

This topic has been resolved and has been closed to new replies.