"Error: Unspecified error." when using onbeforeunload

8 posts, 0 answers
  1. saravanan k
    saravanan k avatar
    88 posts
    Member since:
    Mar 2010

    Posted 17 Apr 2010 Link to this post

    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
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 19 Apr 2010 Link to this post

    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.
  3. saravanan k
    saravanan k avatar
    88 posts
    Member since:
    Mar 2010

    Posted 19 Apr 2010 Link to this post

    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

  4. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 20 Apr 2010 Link to this post

    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.
  5. Ernest Mombay
    Ernest Mombay avatar
    23 posts
    Member since:
    Jun 2009

    Posted 01 Nov 2010 Link to this post

    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?
  6. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 03 Nov 2010 Link to this post

    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
  7. Ernest Mombay
    Ernest Mombay avatar
    23 posts
    Member since:
    Jun 2009

    Posted 04 Nov 2010 Link to this post

    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.
  8. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 09 Nov 2010 Link to this post

    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
Back to Top