Forums

Welcome Guest Search | Active Topics | Members

Cancel All Changes Button Options
natebell
Posted: Wednesday, July 25, 2007 8:31:25 AM
Rank: Member
Groups: Member

Joined: 3/28/2007
Posts: 56
Points: 0
When using the 'Cancel All changes' button pressing OK to the dialog confirmation works fine, it cancels the changes. However, if I press Cancel, it gives me an error, "Unspecified Error" in IE, and if I debug it says the theForm.submit() is causing the error. This does not happen in Firefox.

I have another custom button that closes the popup window, and this button works fine. It asks if you really want to leave without saving changes, and if I press cancel to stay on the page it works as expected.

If you have seen this any help would be appreciated, otherwise I'll work on getting a reproduction from the sample.

Nate
Sergey Peshekhonov
Posted: Thursday, July 26, 2007 1:33:21 AM
Rank: Advanced Member
Groups: Member

Joined: 6/6/2007
Posts: 54
Points: 36
Hello, Nate!

As I understand you try to use LinkButton for "Cancel all changes". I have reproduced your problem and have some
"fast" solution that seems to be helpful.

In solution, i have posted (http://www.aurigma.com/Forums/FindPost6757.aspx)
just replace:
Code:
butRestore.OnClientClick = "this.href = '#';if (this.disabled) return false;__doPostBack('" + butRestore.UniqueID+ "','');return false;";
with:
Code:
butRestore.OnClientClick = "this.href = '#';if (this.disabled) return false; try { __doPostBack('" + butRestore.UniqueID + "',''); } catch (e) {} return false;";

So, we just wrap place where exception is thrown with try {...} catch(e) {}.




Sincerely yours,
Sergey Peshekhonov.

Aurigma Technical Support Team.
natebell
Posted: Thursday, July 26, 2007 5:37:09 AM
Rank: Member
Groups: Member

Joined: 3/28/2007
Posts: 56
Points: 0
wow... why didn't I think of that!

thanks Sergey!
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.