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
Event to inspect what is being posted on save
05/12/2008
10:31
Avatar
Barry
Texas, USA
Member
Members
Forum Posts: 38
Member Since:
04/11/2008
sp_UserOfflineSmall Offline

Tony,

I've been working on a few pages to demonstrate what I think might be issues. I will share that with you when I get finished.

I want to be able to show the values being posted on saveRow. I am currently displaying the contents of RowData on the  afterSaveFunc but these values are not the same as those being posted.

Thanks

Barry

09/12/2008
06:42
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

If you give me example it will be good.

Thank you.

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.

09/12/2008
07:20
Avatar
Barry
Texas, USA
Member
Members
Forum Posts: 38
Member Since:
04/11/2008
sp_UserOfflineSmall Offline

Tony,

You didn't answer my question! Actually I see that I did not ask my question good.

Is there a way I can get the data that is going to be posted on the save Row?

Like I said above I am currently displaying the contents of RowData on the  afterSaveFunc but these values are not the same as those being posted.

Barry

09/12/2008
08:23
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Currently no. What are the differences - just tell me - the posted value

have this and in the grid  have this value. 

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.

09/12/2008
08:42
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

There is a diffrence only in checkbox - this is a known bug. Now I'm going to inspect all the editing modules to behave the same way.

Thank you

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.

09/12/2008
09:04
Avatar
Barry
Texas, USA
Member
Members
Forum Posts: 38
Member Since:
04/11/2008
sp_UserOfflineSmall Offline

Tony,

I prepared 2 examples for your review. Have a look.

http://sevenlakestennis.net/bug/p1/p.php

http://sevenlakestennis.net/bug/p2/p.php

Barry

09/12/2008
10:03
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello Barry,

We have speak about this bug. I have fixed them.

The only what is needed is to check what type is the field and if this

is not set to set the text as default. Your example will work if you

explicity set edittype: ' text' of all editable fields instead that they are

hidden: true.

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.

09/12/2008
10:53
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Sorry and add condition for hidden fields.

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.

10/12/2008
20:01
Avatar
Barry
Texas, USA
Member
Members
Forum Posts: 38
Member Since:
04/11/2008
sp_UserOfflineSmall Offline

Tony,

Adding EditType:'text' changed the behavior, but the results are still not correct.

http://sevenlakestennis.net/bug/p3/p.php

I'm still unclear as to what fixes you made. When will the next version be released.

Barry

11/12/2008
01:30
Avatar
Luigino
Member
Members
Forum Posts: 47
Member Since:
25/10/2008
sp_UserOfflineSmall Offline

Hello Barry,

excuse me if I'm going to ask you a thing....

I saw your examples, for curiosity, and I figured they returns results on the grid...did you just settled the parameter url in the function or did you had to load some .js to make the url parameter working correctly?

Because, while debugging my application I have this function for example:

            jQuery(document).ready(function(){ 
              jQuery("#list").jqGrid({
                url:'/wp-content/plugins/toscanoviaggi/editing.php?q=2',
                datatype: 'xml',
                mtype: 'GET',
                colNames:['id', 'Citta\\''],
                colModel :[ 
                  {name:'id', index:'id', width:20, hidden:true, hidedlg:true},
                  {name:'description', index:'description', width:300, editable:true} ],
                pager: jQuery('#pager'),
                rowNum:10,
                rowList:[10,20,30],
                sortname: 'id',
                sortorder: "desc",
                editurl: "/wp-content/plugins/toscanoviaggi/post.php?q=2",
                viewrecords: true,
                imgpath: '/wp-content/plugins/toscanoviaggi/themes/basic/images',
                caption: 'Toscano Viaggi'
              }).navGrid('#pager',
              {search:false}, //options
              {height:280,reloadAfterSubmit:true}, // edit options
              {height:280,reloadAfterSubmit:true}, // add options
              {reloadAfterSubmit:true}, // del options
            {} // search options
            );  
            });

and the strange thing is the function never goes into editing.php's url parameter because I put in the editing.php a little writing out file code to see if it passes but it didn't produced any files so it made me the doubt the url parameter doesn't work properly.

At least the grid appears on the page....

Any idea?

thanks

Ciao, Luigi

11/12/2008
13:47
Avatar
Barry
Texas, USA
Member
Members
Forum Posts: 38
Member Since:
04/11/2008
sp_UserOfflineSmall Offline

I use Firefox with the HttpFox and Error Console add-ins to see what is going on.

I noticed that sometimes a java script syntax error can cause the javascript to terminate without giving an indication. Most of the time I can see the error in the Error Console. You could also have issues on the server, possibly not getting or sending back the correct data or format.

I'm not sure I understood your situation to its fullest. Your URL must be working if you are producing a grid with data. So you put your grid in edit mode and then click save. It is at this point that you want to look at HttpFox and see exactly what was sent to the server and what was returned.

Barry

21/12/2008
09:09
Avatar
Luigino
Member
Members
Forum Posts: 47
Member Since:
25/10/2008
sp_UserOfflineSmall Offline

Thanks a lot Barry...

I never used HttpFox before but only Firebug.... and I find this HttpFox really really useful... just one little question.... when using a formedit which parameter of the function would make the formedit send submit's data to the .php file settled in the editurl parameter of the function?.....

Thanks

Ciao,

Luigi

21/12/2008
10:09
Avatar
Luigino
Member
Members
Forum Posts: 47
Member Since:
25/10/2008
sp_UserOfflineSmall Offline

No wait, resolved it since I understood how it worked the post parameter with httpfox (always this miracle of the mozilla :-D) but now I'd like to ask tony an issue:

I have implemented a SELECT where it creates a grid with different parameters, obviously I use jQuery("#list").GridUnload(); before to create the grid. BUT, when I click on Add Row or Edit row when I'm in a new grid, the formedit doesn't refresh too! I have to refresh the entire page to make it working... is there maybe a force parameter to refresh also the formedit with GridUnload()?

Thanks

Luigi

23/12/2008
03:23
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Use the new option in form editing recreateForm - see the news or simple remove the modal that holds the form. The id of the modal is combination from "editmod" + gridid - ie if the grid id is mygrid the the id of the modal is editmodmygrid

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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