Grid save session state

QuestionsGrid save session state
Hanadi Salka asked 2 years ago

Good Day,

 

When we try to use session state feature, we get error Uncaught TypeError: $.jStorage is undefined

We have include the required js files based on documentation

 

please find the code

https://gist.github.com/HanSalka/54d6e5e8fde8dd7a52e18aa5b960e560#file-gistfile1-txt

 

4 Answers
Abu Ghufran Staff answered 2 years ago

The rawgit service is discontinued long time ago.

Replace:

<script src="//cdn.rawgit.com/gridphp/jqGridState/e06788e68cd9f97db9da4bb4ba1c4a82890aed9e/jqGrid.state.js" type="text/javascript">
</script>

with

<script src="//cdn.jsdelivr.net/gh/gridphp/jqGridState@master/jqGrid.state.js" type="text/javascript"></script>
_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Hanadi Salka answered 2 years ago

I have replace the <script src=\\\”//cdn.jsdelivr.net/gh/gridphp/jqGridState@master/jqGrid.state.js\\\” type=\\\”text/javascript\\\”></script> Still I get the error Uncaught TypeError: $.jStorage is undefined Code: https://gist.github.com/HanSalka/b794b78c8facacce1e02345926635961#file-index-php

Abu Ghufran Staff answered 2 years ago

I’ve updated another version that replaces $ with jQuery. Please test after replacing this file.

cdn.jsdelivr.net/gh/gridphp/jqGridState@97c84525057cadbf841d90cb3033a8838ecd87b5/jqGrid.state.js

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Hanadi Salka answered 2 years ago

Thank you . It works.

Your Answer

0 + 10 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?