Giter Club home page Giter Club logo

Comments (7)

gr00vytunes avatar gr00vytunes commented on June 12, 2024

here is index.php

    <link rel="stylesheet" href="bootstrap/css/bootstrap.css"/>

    <link rel="stylesheet" href="grid.css" title="openJsGrid"/>
    <!--<link rel="stylesheet" href="jquery-ui/css/smoothness/jquery-ui-1.8.22.custom.css"/>-->
    <script src="jquery.js" type="text/javascript"></script>
    <!--<script src="jquery-ui/js/jquery-ui-1.8.22.custom.min.js" type="text/javascript"></script>-->
    <script src="root.js"></script>
    <script src="grid.js"></script>

    <script type="text/javascript">
        $(function() {


            $(".users").grid({
                title : "users",
                page : 1,
                showPager : true,
                editing : true,
                nRowsShowing : 10,
                width: 800,
                editing: true,
                deleting : true
            }).on("loadComplete",function(e) {
                //console.log("loadComplete", this.instance);
            }).on("cellClick",function(e, $cell) {
                //console.log("cell",$cell);
            }).on("rowCheck",function(e, $checkbox) {
                //console.log("rowCheck",$checkbox);
            }).on("rowClick",function(e, $rows) {
                //console.log("rowClick",$rows);
            });

        });
    </script>
</head>
<body>
    <h2>Players</h2>
    <table class="grid users" action="ajax.php">
        <tr>    
            <th col="id" width="50">id</th>
            <th col="ForumID">ForumID</th>
            <th col="GTPSN">GTPSN</th>
            <th col="Position">Position</th>
            <th col="Formation">Formation</th>
        </tr>
    </table>
</body>

from openjs-grid.

gr00vytunes avatar gr00vytunes commented on June 12, 2024

and this is the table output

table

Many thanks for your help

from openjs-grid.

optikalefx avatar optikalefx commented on June 12, 2024

I can't see the issue off the bat, you seem to have things setup right minus the editing=true in php which isn't necessary. Can you send me a zip of your code including your database file?

[email protected]

Thanks!

from openjs-grid.

gr00vytunes avatar gr00vytunes commented on June 12, 2024

Yeah no worries.. shall I just send the table in question ? the DB is Massive :)

EDIT: I Will attach the full structure.. explain in email which table it is etc.

Thanks again! Email on way

from openjs-grid.

optikalefx avatar optikalefx commented on June 12, 2024

Haha yea that'l do. thanks!

from openjs-grid.

optikalefx avatar optikalefx commented on June 12, 2024

Well shit. I'm dumb. My documentation page is mesed up. Just add type="text" to any field you want editable.
For future reference, checkout grid.js line 58. Which is cellTypes. That defines all the possible options for "type"

Ill update my documentation asap.

from openjs-grid.

gr00vytunes avatar gr00vytunes commented on June 12, 2024

Thanks Sean, that is really much appreciated! :)

from openjs-grid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.