Giter Club home page Giter Club logo

Comments (6)

NicolasCARPi avatar NicolasCARPi commented on August 25, 2024

Hello,

This is what your json should look like:

{"D":"Letter D","E":"Letter E","F":"Letter F","G":"Letter G","selected":"selected one"}

(from https://jeditable.elabftw.net/json.php)

Here yours is in an array and doesn't have the same structure.

Please note that this library is deprecated and I'm currently focusing on https://github.com/deltablot/malle/.

from jquery_jeditable.

kkaiser1952 avatar kkaiser1952 commented on August 25, 2024

Two questions if I may.
One: I thought I was using a prescribed method to change the output of my MySQL into JSON. I see now it didn't do the job. Should I just manually output the data in that format instead?
Two: I use jQuery in so many places I my C.R.U.D. app would there be a reasonable reason to switch to Malle?

from jquery_jeditable.

NicolasCARPi avatar NicolasCARPi commented on August 25, 2024
  1. You should just take the first element of the array and it should encode fine in json.
  2. No reasonable reason for you to switch, no.

from jquery_jeditable.

kkaiser1952 avatar kkaiser1952 commented on August 25, 2024

Thanks for that info both 1 and 2.
The output of MySQL now looks like this;

{"CARS and Trucks":"CARS and Trucks","PLANES including Private":"PLANES including Private","TRAINS including Subways":"TRAINS including Subways","BIKE And Motorcycles":"BIKE And Motorcycles",}

Which I do in php as; echo "$list"; but I'm missing the mechanism to move that data back to the for the dropdown. The example (thanks by the way) doesn't spell it out for me.

from jquery_jeditable.

kkaiser1952 avatar kkaiser1952 commented on August 25, 2024

I'm missing the mechanism to move that data back to the for the dropdown. The example (thanks by the way) doesn't spell it out for me.

from jquery_jeditable.

kkaiser1952 avatar kkaiser1952 commented on August 25, 2024

Never mind. I figured it out after many hours of trial and error I had a capital letter where I didn't want it. OH MAN!

from jquery_jeditable.

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.