Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Meitar

    (@meitar)

    If I understand correctly, the solution to running both smoothState and any WordPress plugin that uses JavaScript (not specifically this plugin, but rather any similar plugin) is to follow the instructions here. Inline Google Spreadsheet Viewer already runs its JavaScript at the appropriate times (that is, “within the document ready function”) for the linked instructions to work, so there isn’t anything more that I can do from within this plugin to help ensure smoothState compatibility.

    Thread Starter parioni8

    (@parioni8)

    Now that we have settled (with 0.6.2) the problem of the “gid” perhaps we can better understand what is the issue that still plagues the operation of this your wonderful plugin (BUT ONLY WITH THE CHART !!! because the tables are displayed) with the equally beautiful navigation system that is SmoothState.

    Since you say that the script runs “within the document ready function” as requested by the creator of SmoothState, I would like to understand why it does not work yet.

    On the page ginolon.altervista.org I uploaded a sample of your plugin, another plugin for displaying graphs of Google (much more complex and it does not work too!) And SmoothState. All on a simple basic intact WordPress template.

    We want to understand why together, while being in compliance with the codes required by SmoothState not we?

    Again, IMPORTANT: Your plugin works with SmoothState when it comes to displaying tables, see here: https://ginolon.altervista.org/test-1/ even if you do not see the datatables (but at this moment I’m not using, I do not need)

    But WHEN IT COMES TO SEE THE CHART then nothing is displayed, see here: https://ginolon.altervista.org/test-1-inline-google-spreadsheet-viewer-chart/

    EXCEPT IF I OPEN THAT PAGE FROM ZERO then I click on another page and then come back on the one that contains the chart: then the chart is displayed.

    Why this behavior? Strange, very strange.

    Please, let us help each other which can be useful in our work and the work of anyone, just like the bugs that I’ve reported.

    Plugin Author Meitar

    (@meitar)

    Hm. If other plugins for Google Charts are also having the same problem, it sounds like the problem is actually one with Google Charts and SmoothState, not the WordPress plugins.

    Can you create a static test case without WordPress? That is, can you make a simple HTML test that only include 1 Google Chart and SmoothState?

    Thread Starter parioni8

    (@parioni8)

    You are right.

    Here is Google Chart with simple SmoothState. Nothing with click on menu.

    Can you help me anyway?

    https://ginolon.altervista.org/googlechart/

    Thread Starter parioni8

    (@parioni8)

    Someone has fixed drawChart of Google Chart. Can you tell me what to recall when i’m using your plugin for charts?

    https://screencast.com/t/05bR1A7nv

    Thread Starter parioni8

    (@parioni8)

    Can you do a general, public function for to be called on callback after ajax loading?

    I tried to call “drawMyChart” the function at the line 7 of “igsv-gvizchart.js” and then i tried to call it from smoothstate-functions.js but nothing.

    What to call?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Doesn't work with SmoothState.js. What to call with ajax after load of the page?’ is closed to new replies.