SpreadJS Documentation
Saving and Loading JavaScript Files

You can save to a JavaScript file (.js) using the File, Save, or Save As option in the designer. You can use the fromJSON method to load the file. The variable name in the method should be the same as the name of the file. If the file name is invalid, blank characters are replaced by underscores and the name starts with an underscore character.

Using Code

This example loads the name.js file.

JavaScript
Copy Code
<script type="text/javascript" src="name.js"></script>
 
<script>
    $(function(){
        spread.fromJSON(name);
    });
</script>
See Also

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.