Comments (4)
If I understand correctly, you want to pass the id of the currently selected value to works.php?
Why don't you grab that id and send it in your query by using a function target instead of the url string.
See:
// target as a function example
$(".editable-text-full").editable(function(input, settings, elem) {
console.log(input);
console.log(settings);
console.log($(elem).data('test'));
}, {});
from jquery_jeditable.
Thanks for your time, but I'm afraid I don't understand. I have to send the current select before the new selection is made.
When I recover the possibilities from the Json file, precisely.
I saw that example in the manual, but I didn't understand how to make it work for me
I think this is a basic functionality to use input select in a dynamic page. Instead it is so complicated ;-) sorry, but I'm not a very good programmer.
Since the value of the input select does not appear in html, but only the value.text, the only way is to go and see what is written in the DB.
For this I thought of sending the id directly to the program that generates the json file, because html id is id of db record for me.
https://intra.kiwynet.com/works.asp?q_act=READWORKS&q_id=845
https://intra.kiwynet.com/works.asp?q_act=READWORKS&q_id=572
another way to prepare a key in html span as optionvalue = "BLD" to be read by the function, it would be the best thing
do I tell lies?
from jquery_jeditable.
analyzing the function thoroughly I found that loadurl also sends a series of parameters including the id, so for me it is enough
q_act=READWORKS&0=q&1=&2=i&3=d&4=%3D&5=5&6=7&7=2&pk=845&=1614789130874
Thank you for any help
from jquery_jeditable.
ok great!
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
- 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
- Using JSON to fill a dropdown selection HOT 6
- 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.