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
Data base on other server then web page - update problem - how?
14/06/2013
00:23
Avatar
qwertxx
New Member
Members
Forum Posts: 2
Member Since:
13/06/2013
sp_UserOfflineSmall Offline

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?

14/06/2013
16:10
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

16/06/2013
00:04
Avatar
qwertxx
New Member
Members
Forum Posts: 2
Member Since:
13/06/2013
sp_UserOfflineSmall Offline

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. 

Forum Timezone: Europe/Sofia

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.com

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information