Thank you Tony. It worked.
/**
My baaaad.
I realized that I was using unnecessary header information in my server script below. I commented out those and it worked perfect!
Thanks Tony!
if ( stristr($_SERVER[“HTTP_ACCEPT”],”application/xhtml+xml”) ) {
My baaaad.
I realized that I was using unnecessary header information in my server script below. I commented out those and it worked perfect!
Thanks Tony!
if ( stristr($_SERVER[“HTTP_ACCEPT”],”application/xhtml+xml”) ) {
My baaaad.
I realized that I was using unnecessary header information in my server script below. I commented out those and it worked perfect!
Thanks Tony!
if ( stristr($_SERVER[“HTTP_ACCEPT”],”application/xhtml+xml”) ) {
Thank you Tony.
In 3.2rc, I tried loadError() function as below.
Hi Tony,
Actually, I've already added the 'loadingui' in the grid.css according to the readme.txt. Anyway, since other people don't seem to have the same issue as I have, I will check my codes more.
Thanks,
Daniel
By the way, in the file grid.base.js for 3.2rc,
the line number 355 is as below :
$(“
“).insertBefore(this);
Although I'm not really familiar with jquery, my understanding is that the code is looking for a
Should I put put
I would appreciate any feedback on this.
Best regards,
Daniel
Thanks for the response. However, I'm sure I'm not using any obsolete methods that are no longer available from 3.2rc (I guess 3.2c in your post is identical to 3.2rc). For your reference, here is my code. This works fine with 3.1 but not with 3.2rc. Please let me know if you find any problem with the code.
Best regards
Daniel
var gridimgpath = 'themes/basic/images';
$(document).ready(function(){
Thank you Tony.
In 3.2rc, I tried loadError() function as below.
Hi Tony,
Regarding the issue above, the line number 355 in the file “grid.base.js” tries to insert something right before the tag
However, I could not find any file that defines the
Thank you for the reply. But I was wondering how a grid knows when there was an error in the server scripts (php).
Let's say that I have a grid that calls a server script (php) which connects to MySQL server and returns result to the grid. And let's say that the server script could not connect to the MySQL server (or there was an SQL error or whatever…) Then, how I would like to handle those exception is for the php script to return some kind of generic error message to the grid so that the grid knows that there was an exception in the server script and displays an error message instead of showing the “Loading…” message endlessly.
I know that there is an example how to handle this with the Formedit using the callback function. However, I could not find out how to do this same type of thing for the main grid.
I would really appreciate if anyone can show me a snippet for it. Or please let me know if my questions is not clear enough.
Regards,
Daniel
Oh… my bad.
There was a typo. $(”jq_teaching”) –> $(”#jq_teaching”)
I am so sorry to bother you with it, but really appreciate
Hi Tony,
When I copied everything except the file “grid.base.js”, the grids are working properly. It looks that the file 'grid.base.js' may be the one that caused the behavior.
Best,
Daniel
Hi Tony,
Thanks for the quick response.
As you suggested, I've downloaded the 3.2rc and overwrote the *.js files in the js folder with the 3.2rc ones. (I had been using jqgrid 3.1). Also, I added the new css element “div.loadingui” into the grid.css file. Unfortunately, however, the master grid does not display anything after this upgrade. (Please see the screen shot for your information: http://mc-dev-01.tech.northwestern.edu/fact/www/temp/master_detail_32rc.gif)This goes the same with other single grids as well.
Am I missing something in upgrading to 3.2rc?
Best regards!
Daniel Lee
P.S: I reverted the changes, copying those 3.1's *.js files back to the js folder, and the grids are working again.
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top