Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
natebell  
#1 Posted : Wednesday, July 25, 2007 12:31:25 AM(UTC)
natebell

Rank: Member

Groups: Member
Joined: 3/28/2007(UTC)
Posts: 56

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  
#2 Posted : Wednesday, July 25, 2007 5:33:21 PM(UTC)
Sergey Peshekhonov

Rank: Advanced Member

Groups:
Joined: 6/5/2007(UTC)
Posts: 57

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://forums.aurigma.com/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) {}.


Edited by user Monday, December 17, 2007 7:34:23 PM(UTC)  | Reason: Not specified

Sincerely yours,
Sergey Peshekhonov.

Aurigma Technical Support Team.
natebell  
#3 Posted : Wednesday, July 25, 2007 9:37:09 PM(UTC)
natebell

Rank: Member

Groups: Member
Joined: 3/28/2007(UTC)
Posts: 56

wow... why didn't I think of that!

thanks Sergey!
Users browsing this topic
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.