Forum
00:23
13/06/2013
Hi.
I have problem with jqGrid with update databes on other server, then server of my www page (blogspot.com).
I can read data via jqGrid correctly, but when i try to save changed cell using editUrl and saveRow , the dialog occure with message: Error.
$(w).jqGrid({
url: "database_domain/grid.php",
datatype: "jsonp",
colNames:['Data', 'Topic', 'Description'],
colModel:[
{name:'data',index:'data'},
{name:'topic',index:'topic'},
{name:'desc',index:'desc', editable:true}
],
pager: '#artpager',
sortname: 'id',
viewrecords: true,
editurl: "database_domain/submit.php"
});
$(w).jqGrid('navGrid', '#artpager',{ edit: false, add: false, del: false, search: false, refresh:true });
jQuery("#ed1″).click( function() {
$(w).jqGrid('editRow',"8″);
});
jQuery("#sved1″).click( function() {
$(w).jqGrid('saveRow',"8″);
});
jQuery("#cned1″).click( function() {
$(w).jqGrid('restoreRow',"8″);
});
submit.php of course is on the serwer and i can use it in browser.
What should i do?
16:10
Moderators
30/10/2007
Hello,
The problem is at your code on server and not in jqGrid.
Please see what respond exact the server. Do you have enought right to update and etc?
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.
00:04
13/06/2013
Thank you for reply.
Of course i have all rights.
I was caught (via PHP to file) $_SERVER variable after submit cell edition.
When i'm using my own ajax post/get methods in $_SERVER there is for example:
$_SERVER [HTTP_COOKIE] => PHPSESSID=f43ai14c8l7dt61t7rfnhpu7u3
But when i'm, using:
$(w).jqGrid({
url: dd_serwer_url + 'ulu.php',
datatype: "jsonp",
…
cellEdit: true,
cellsubmit: 'remote',
cellurl: dd_serwer_url + 'ulu_cell_submit.php?a=zi',
errorCell: function(serverresponse, status){
alert(serverresponse);
}
there is an alert with:
[readyState] = 4
….
[status] = 404
[statusText] = error
I checked $_SERVER and there is no $_SERVER [HTTP_COOKIE] with PHPSESSID.
Why?
Of course both files (ulu.php and ulu_cell_submit.php) are on the server and can be reached by webbrowser.
Most Users Ever Online: 715
Currently Online:
44 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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66