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
submit events don't work (form edit)
03/12/2013
14:00
Avatar
cicciottino@libero.it
Member
Members
Forum Posts: 4
Member Since:
03/12/2013
sp_UserOfflineSmall Offline

in form editing don't work any of relative events

http://jsfiddle.net/BDACL/

have i miss something in configuration?

04/12/2013
12:07
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Unfortunatley the current implementation of form editing does not support editurl set to clientArray.

This is a future work.

In order the events to work in FormEditiong you will need to set the editUrl to a valid dummy file (i.e this file only exists on server and nothing more).

Regards

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.

04/12/2013
17:12
Avatar
cicciottino@libero.it
Member
Members
Forum Posts: 4
Member Since:
03/12/2013
sp_UserOfflineSmall Offline

thanks for the piece of information

i've tried to change the "editUrl" whith http://jsfiddle.net/echo/json/ that i suppose is a valid json dummy dataset even if is empty
but the beforeSubmit method doesn't still work

trying it on my local machine got this:

seems that the call to editUrl was OK[Image Can Not Be Found]

04/12/2013
17:16
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

This is a remote request – i.e cross site. Such ajax request are not allowed by default.

In order to do this you will need to set dataType of the edit options to jsonp.

Search the web for tis case.

Also in grid options set

… jqGrid({

ajaxEditOptions : { dataType: 'jsonp'},

});

Or make in your local server such dummy file

Regards

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.

04/12/2013
18:12
Avatar
cicciottino@libero.it
Member
Members
Forum Posts: 4
Member Since:
03/12/2013
sp_UserOfflineSmall Offline

ok for my local machine where is a cross site request (forbiden by default)

but

what about under fiddle domain? isn't the same domain?

(http://jsfiddle.net/BDACL/3/     the same domain of   http://jsfiddle.net/echo/json/  )

http://jsfiddle.net/BDACL/3/   (i've modified with fiddle updateUrl)

don't kill me if i make stupid questions 🙁

04/12/2013
18:12
Avatar
cicciottino@libero.it
Member
Members
Forum Posts: 4
Member Since:
03/12/2013
sp_UserOfflineSmall Offline

ok for my local machine where is a cross site request (forbiden by default)

but

what about under fiddle domain? isn't the same domain?

(http://jsfiddle.net/BDACL/3/     the same domain of   http://jsfiddle.net/echo/json/  )

http://jsfiddle.net/BDACL/3/   (i've modified with fiddle updateUrl)

don't kill me if i make stupid questions 🙁

05/12/2013
12:41
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Ok. You will need to do more investigations and read carfully what I write you.This code workn perfectly:

var mydata = [{
    name: "Toronto",
    country: "Canada",
    continent: "North America"
}, {
    name: "New York City",
    country: "USA",
    continent: "North America"
}, {
    name: "Silicon Valley",
    country: "USA",
    continent: "North America"
}, {
    name: "Paris",
    country: "France",
    continent: "Europe"
}]

$("#grid").jqGrid({
    data: mydata,
    datatype: "local",
    colNames: ["Name", "Country", "Continent"],
    colModel: [{
        name: 'name',
        index: 'name',
        editable: true,
    }, {
        name: 'country',
        index: 'country',
        editable: true,
    }, {
        name: 'continent',
        index: 'continent',
        editable: true,
    }],
    pager: '#pager',
    editurl: 'http://jsfiddle.net/echo/json/',
    ajaxEditOptions : { dataType: 'jsonp'}
});
var editOptions = {
    closeAfterEdit: true,
    beforeSubmit: function(z,x) {
        alert('does not fire – why?');
    }
}
$("#grid").jqGrid('navGrid','#pager',{edit:true,add:false,del:false,search:false},editOptions,{},{},{},{});

I hope you can find the diffrences and you tell me where is the change.

Kind Regards

Enjoy

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
31 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