Home Search Member List Faq Register Login  
UltimatePanel
Re: Problem with ultimate panel when canceling the "onbeforeunload" event

Thread Starter: Dan McCoy   Started: 03-04-2009 9:16 AM   Replies: 2
 Karamasoft Support Forums » General Discussions » UltimatePanel » Re: Problem with ultimate panel when canceling the "onbeforeunload" event
 Printable Version    « Previous Thread   Next Thread »
  04 Mar 2009, 9:16 AM
Dan McCoy is not online. Last active: 4/8/2009 4:40:07 AM Dan McCoy

Not Ranked
Joined on 03-04-2009
Posts 1
Problem with ultimate panel when canceling the "onbeforeunload" event
Hello

I have a strange problem witht he ultimate panel.
We have a web application in which we use the "onbeforeunload" event on the client to warn the user that they have unsaved changes on the page when they try to navigate away, and give them the option to cancel the navigation and remain on the page.

However, when the user presses cancel, the ultimate panel throws an "unspecified error".
Has anyone else found this problem?
Does anybody know a fix for this issue?

  
  04 Mar 2009, 12:23 PM
Karamasoft is not online. Last active: 11/10/2017 3:24:14 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,818
Re: Problem with ultimate panel when canceling the "onbeforeunload" event
If you reply with your code or send us a self-contained web app having this issue, we can try it in our test environment.
  
  06 Mar 2009, 4:42 PM
Karamasoft is not online. Last active: 11/10/2017 3:24:14 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,818
Re: Problem with ultimate panel when canceling the "onbeforeunload" event
When you set the URL attribute of the panel items in the panl XML file, it generates onclick event handlers to set the window.location.href to the URL specified. It seems that this event handler does not work when you define an onbeforeunload event handler. As a workaround, you can remove the URL attribute and set the caption of your panel items to link elements as follows:

<Item ID="Item1.1" Caption="&lt;a href='http://www.google.co.uk'&gt;Google&lt;/a&gt;" />

  
 Page 1 of 1 (3 items)
Karamasoft Support Forums » General Discussions » UltimatePanel » Re: Problem with ultimate panel when canceling the "onbeforeunload" event

You can add attachments
You can post new topics
You can reply to topics
You can delete your posts
You can edit your posts
You can create polls
You can vote in polls
Forum statistics are enabled
Forum is unmoderated

© 2002-2018 Karamasoft LLC. All rights reserved.