Comments (6)
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.
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.
- You should just take the first element of the array and it should encode fine in json.
- No reasonable reason for you to switch, no.
from jquery_jeditable.
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.
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.
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)
- How to turn off all Jeditable fields HOT 12
- Preempt editable sending value to the server if value is the same as the current value HOT 16
- Right Click, Double Click, Left Click ... all options to select from a Dropdown List HOT 1
- 2.0.18 - missing from changelog HOT 1
- not getting data from submitdata in jeditable HOT 1
- Select - Default value by current value selected HOT 4
- Data-driving select won't open and it scrolls to the top of the page HOT 3
- JS-Injection and PHP error on Live Demo https://jeditable.elabftw.net/ HOT 1
- How do we catch the "id" of the edited control when submitting to a custom function? HOT 7
- SELECT elements cannot be customized via the 'class'/'style' attributes HOT 3
- Datepicker plugin not able to correctly set the date format as specified
- jeditable destroys user tooltips HOT 2
- Introducing malle: similar to jquery-jeditable but without jquery
- Possible bug in display of selected select option on edit HOT 1
- placeholder option has multiple functions HOT 2
- Implementing adding new row on the using jquery.jeditable.js library HOT 4
- For a JSON return how do I pass a parameter to the php via loadurl? HOT 2
- Pass extra parameters using submitData HOT 6
- Save.php not launching HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery_jeditable.