Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Delete Form is not going away after adding afterSubmit function
26/11/2008
07:19
Avatar
diptendu
Member
Members
Forum Posts: 17
Member Since:
21/10/2008
sp_UserOfflineSmall Offline

Hello,

The Delete form usually goes away when a user confirms deletion.

However, ever since we have added an afterSubmit function

the form refuses to go away.

What could be the reason?

Regards,

Diptendu

27/11/2008
03:14
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

The form is closed automatically after every click of submit or cancel

button. This is standart behavior or I missed something?

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

27/11/2008
10:34
Avatar
-Matt-
Member
Members
Forum Posts: 7
Member Since:
14/11/2008
sp_UserOfflineSmall Offline

Hi,

I am experiencing the same problem.  I have a delete form with the afterSubmit function to run a grid reload on another grid. 

The actions happen on the database side fine but the form stays open after the submit is clicked.

Matt.

27/11/2008
10:36
Avatar
-Matt-
Member
Members
Forum Posts: 7
Member Since:
14/11/2008
sp_UserOfflineSmall Offline

Just to add

Is there a way you can force a form close within the afterSubmit to solve the problem.

I also make sure I use return true; in the function otherwise the form

hangs.

Matt.

27/11/2008
11:52
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

How look afterSubmit?

Does this event (function) return the needed array something like

afterSubmit : function(a,b) {

....

return [true,""];

}

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

27/11/2008
15:04
Avatar
-Matt-
Member
Members
Forum Posts: 7
Member Since:
14/11/2008
sp_UserOfflineSmall Offline

Hi,

No I just return true;

If it false then the submit button just greys out and is available to click.

When you reopen the form the submit is still greyed out.  So I return true

and it solves this issue.  But the issue of the form not closing still exists.

I have done a work around by using onSubmitClick and some work

arounds to solve my issue with post edits and grid refreshes.

M.

28/11/2008
02:27
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Thank you. If I look deep into the code this is common problem.

Will fix as soon as possible.

Thank you again.

Best Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

05/02/2009
12:37
Avatar
thesee
New Member
Members
Forum Posts: 2
Member Since:
05/02/2009
sp_UserOfflineSmall Offline

Hello, any news about this issue?

I'm using last beta versione and seems the problem is not solved.

If I'll fire the afterSubmit function the dialog doesn't disappear.

Any advice to close it is really appreciated 😉

Thank you in advance 🙂

06/02/2009
02:57
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

I think that the problem is fixed. What return your afterSubmit event?

Check your code. Also make a simple test:

afterSubmit : function (data, postdata){

return [false,"I return false"];

}

and then

afterSubmit : function (data, postdata){

return [true,""];

}

I think hat the common problem here is how you interpred data, usually you should do

data.resoponseText

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

07/02/2009
05:55
Avatar
thesee
New Member
Members
Forum Posts: 2
Member Since:
05/02/2009
sp_UserOfflineSmall Offline

Hi Tony, thank you for reply.

I'm and idiot, i was putting an if conditions with = 

if (a = b) ....should be if (a == b)

Sorry for waste your time 😉

Have a nice day 🙂

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
39 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information