This is a migrated thread and some comments may be shown as answers.

Issue with AJAX component's JavaScript event handling

9 Answers 79 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Brian Mains
Top achievements
Rank 1
Brian Mains asked on 31 Oct 2010, 12:16 AM
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.

9 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 03 Nov 2010, 12:00 AM
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
0
Brian Mains
Top achievements
Rank 1
answered on 03 Nov 2010, 12:09 AM
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. 
0
Cody
Telerik team
answered on 06 Nov 2010, 12:18 AM
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
0
Tom
Top achievements
Rank 1
answered on 06 Apr 2012, 07:49 PM
Brian, I'm having the same issue.  Did you find a solution for this?
0
Cody
Telerik team
answered on 06 Apr 2012, 08:35 PM
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
0
Tom
Top achievements
Rank 1
answered on 10 Apr 2012, 06:32 PM
Thanks Cody, that seems to work!
0
Cody
Telerik team
answered on 10 Apr 2012, 11:03 PM
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
0
Tom
Top achievements
Rank 1
answered on 11 Apr 2012, 07:06 PM
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.
0
Cody
Telerik team
answered on 13 Apr 2012, 10:00 PM
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
Tags
General Discussions
Asked by
Brian Mains
Top achievements
Rank 1
Answers by
Cody
Telerik team
Brian Mains
Top achievements
Rank 1
Tom
Top achievements
Rank 1
Share this question
or