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

"Error: Unspecified error." when using onbeforeunload

7 Answers 114 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
saravanan k
Top achievements
Rank 1
saravanan k asked on 17 Apr 2010, 02:06 PM
Hi,

I am using an ASP update panel and RadAjaxLoading Panel. I prompt the user to save the details when he navigates away. I get an "Error: Unspecified error." ,when I click on the cancel button in the popup which appears. Is there a workaround/Fix for this?

Regards,
Saravanan

7 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 19 Apr 2010, 12:07 PM
Hello Saravanan,

Thank you for contacting Telerik Support.

Could you please elaborate a little bit more on your scenario? Are you using RadAjaxPanel or RadAjaxManager controls? Also how have you tried to save the details, using Ajax? If you are able, please send us sample runnable project which shows the issue, so we could test it locally and advise you further.


Greetings,
Maria Ilieva
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
saravanan k
Top achievements
Rank 1
answered on 19 Apr 2010, 03:22 PM

Hi,

Let me explain in detail

I am using Ribbon UI in my master page. The content pages are within ajax update panel and RadAjaxLoadingPanel. I prompt my users to save the form details, when they navigate away from a page.

Scenario:
If a user does not save a form and tries to navigate away by clicking on a button in the ribbon UI(redirects to some other page), a prompt appears with Ok and Cancel. If the user clicks OK, he navigates to the link. If he clicks on cancel, the page redirection will not happen.

Error:

When the user clicks cancel, An "unspecified error" pops up. This
happens only if the user tries to navigate by clicking a button in ribbon UI

function __doPostBack(eventTarget, eventArgument) {

 

 

if (!theForm.onsubmit || (theForm.onsubmit() != false)) {

 

theForm.__EVENTTARGET.value = eventTarget;

theForm.__EVENTARGUMENT.value = eventArgument;

theForm.submit();--------->Error here

}

}


Regards
Sarvanan

0
Maria Ilieva
Telerik team
answered on 20 Apr 2010, 10:34 AM
Hi saravanan,

Have you tested the application using regular asp UpdatePanel instead of RadAjax? Also does the error appear if the ajax is totally disabled on the page?


All the best,
Maria Ilieva
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
Ernest Mombay
Top achievements
Rank 1
answered on 01 Nov 2010, 09:09 PM
Hello. We are using the AJAX control version 2010.2.713.35 and this issue is happening to our application.

I created a custom window.onbeforeunload function that will show a message when the user leaves the page by clicking a link. However, when they click cancel on the prompt, they will get this "Error:Unspecified error" message. Any resolution to this problem?
0
Maria Ilieva
Telerik team
answered on 03 Nov 2010, 03:54 PM
Hello,

Can you please make some local test by disabling the Ajax on the page and verify if the error persist. Also please try using regular asp UpdatePanel and let us know what the result is.


All the best,
Maria Ilieva
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
Ernest Mombay
Top achievements
Rank 1
answered on 04 Nov 2010, 02:21 PM
Basically what I have are several asp:Panels that are driven by a RadAjaxManager with custom RequestStart and ResponseEnd functions (to show a different loading image based on which panel is visible). It'll take a lot of re-plumbing but I'll try and see if the onunload works on a normal non-AJAX version of the page.
0
Maria Ilieva
Telerik team
answered on 09 Nov 2010, 03:06 PM
Hello Ernest Mombay,

Please also test the application with asp UpdatePanel instead of RadAjax. This will help us isolate the source of the issue and if it is the RadAjax.

Kind regards,
Maria Ilieva
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
Tags
Ajax
Asked by
saravanan k
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
saravanan k
Top achievements
Rank 1
Ernest Mombay
Top achievements
Rank 1
Share this question
or