Issue with AJAX component's JavaScript event handling

10 posts, 0 answers
  1. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 30 Oct 2010 Link to this post

    Hello,

    I have a component that attaches to the onblur handler of a textbox.  The issue with this is that it doesn't want to attach; I have a math calculator component (an AJAX extender) that sums up the textbox values, and unfortunately its not doing the summation.  Do I have to setup something else for this?

    Thanks.
  2. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 02 Nov 2010 Link to this post

    Hi Brian Mains,

    This forum is dedicated to testing web applications using our Webaii .NET library framework. Is this somehow related to using our framework? I am not seeing a connection.

    Best wishes,
    Cody
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 02 Nov 2010 Link to this post

    Hello,

    Yes, I have an ASP.NET page that has an ASP.NET AJAX component in it, and none of the AJAX component event handlers are working.  This AJAX component attaches to textbox blur event, but this clearly isn't working during playback, so the test fails.  I'm trying to figure out how to make it work.

    So I'm testing the AJAX component in an ASPX page using WebAii.

    Thanks. 
  4. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 05 Nov 2010 Link to this post

    Hi Brian Mains,

    Got it. Thank you for clearing up my misunderstanding.

    Can you share with us the WebAii code you are trying to use? That will help a lot understanding what you are trying to do and then I might be able to spot the problem and help you fix it.

    Regards,
    Cody
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Tom
    Tom avatar
    3 posts
    Member since:
    Apr 2012

    Posted 06 Apr 2012 Link to this post

    Brian, I'm having the same issue.  Did you find a solution for this?
  6. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 06 Apr 2012 Link to this post

    Hello Tom,

    I don't know if Brian is monitoring this thread any longer since it was 17 months ago.

    Sometimes just turning on SimulateRealClick will overcome this problem. We also have this article that demonstrates how to invoke jQuery events through a small bit of code. The same basic approach should work for ASP.NET events.

    All the best,
    Cody
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  7. Tom
    Tom avatar
    3 posts
    Member since:
    Apr 2012

    Posted 10 Apr 2012 Link to this post

    Thanks Cody, that seems to work!
  8. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 10 Apr 2012 Link to this post

    Hi Tom,

    That's great news! Thank you for the update.

    Kind regards,
    Cody
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  9. Tom
    Tom avatar
    3 posts
    Member since:
    Apr 2012

    Posted 11 Apr 2012 Link to this post

    Cody,

    I notice on some test cases when I added a new code step to invoke the javascript blur() on an item:

    Actions.InvokeScript("$(name='textbox1').blur()");

    It works, and activated the alert dialog as expected, but it got stuck on executing that step!  My next step is to click on the alert dialog box, but it couldn't get there and timed out.  Any thoughts? Thanks.
  10. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 13 Apr 2012 Link to this post

    Hello Tom,

    I want to make sure I understand the problem... you're saying the Actions.InvokeScript never returns? I can't imagine how that's even possible. I've never seen that happen before. When you run into the problem does it happen every time or is it intermittent for that one test?

    Can you send me a test I can run locally that reproduces this symptom? I'd like to reproduce it and investigate what's going on.

    Regards,
    Cody
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top