interlee

Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Author
    Replies
  • in reply to: How to trigger custom error to fire up loadError #82688
    interlee
    Participant

    Thank you Tony. It worked.

    /**

    interlee
    Participant

    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”) ) {

    in reply to: Upgrading from 3.1 to 3.2rc #82671
    interlee
    Participant

    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”) ) {

    interlee
    Participant

    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”) ) {

    interlee
    Participant

    Thank you Tony.

    In 3.2rc, I tried loadError() function as below.

    in reply to: Upgrading from 3.1 to 3.2rc #82668
    interlee
    Participant

    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

    in reply to: Upgrading from 3.1 to 3.2rc #82660
    interlee
    Participant

    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

    tag that has 'loadingui' as its class type to insert something right before the tag. If my understanding is correct, where and how should the

    tag be defined since I could not find any part that defines the

    in jqgrid plugin sources? (I added the “loadingui” style in the grid.css as was indicated by the READMe file)

    Should I put put

    somewhere in my code?

    I would appreciate any feedback on this.

    Best regards,

    Daniel

    in reply to: Upgrading from 3.1 to 3.2rc #82659
    interlee
    Participant

    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(){

    interlee
    Participant

    Thank you Tony.

    In 3.2rc, I tried loadError() function as below.

    interlee
    Participant

    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

    . So, I wonder if this would be the cause of the problem

    interlee
    Participant

    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

    in reply to: getRowData : how to access the result array #82607
    interlee
    Participant

    Oh… my bad.

    There was a typo. $(”jq_teaching”) –> $(”#jq_teaching”)

    I am so sorry to bother you with it, but really appreciate

    interlee
    Participant

    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

    interlee
    Participant

    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.

Viewing 14 replies - 1 through 14 (of 14 total)

Stay connected with us in your favorite flavor!