Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
As you can see on the picture, I've a big table with all my products of my virtual webshop. This view is the admin panel. All the data you can see in the input field are fetched with a select statement when the page loads.
What I want to realise: When someone edits the value of an input field at different places in the table, this specific data should be updated in my database.
What is the best way to realise this? Do I need to work with multi-dimensional arrays? Fetch all the data of that input field and overwrite all my database with update statement?
I would add the id of the row in the edit form. So you can send that with the changed values to the backend. Now you can update only that changed row in the database.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
I'm trying to do the following example Employee Birthday locate on this url : http://examples.sencha.com/coworkee/#home , but I do not know to much ext js and their methods or events can someone can help me please.
Here's the: FIDDLE
Theme on the site(you gave as an example) is Triton and it loads fonts itself.
I used Ext.view.View. You must pass Ext.XTemplate and store with data. So you can populate cards.
For styles open index.html.
Background color of the iframe(there where view is shown), when you switch to Triton, changes to the same color as it was given in your example(#f5f5f5) and because of this there difference may can't be seen, so here's the preview:
EDIT:
I made another fiddle where you can populate cards, added some XTemplate functions to differ colors and text according to event type:
FIDDLE
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have one task. My app will have links of different websites. Their order is defined in database. I want to rearrange then by drag and drop. The resultant order should be reflected in database. I am a rails newbie. Kindly tell me which gems and scripts and how I can use. Kindly give me code reference or example as well.
Use any GUI library for drag and drop. Assign a position to each element. Display by order on position. After drag-n-drop, call ajax to a method/function which will swap the positions in database.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
im trying to build something almost like a cashier system with php jquery and html
so im confuse about the point system
i got a simple input here :The input form
so the user will input their total price and base on that they'll get point ,
so for example user will get 1 poin every $10 , so when the user input $15 he's got 1 poin , and when the user input $13, he's still got 1 point, but when user input $20, he's gonna get 2 point , so thats basically thats how the system work, and my question is how to achieve that kind of system with php
you can use:
$points = floor($price/10);
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I am new to webpage design and I was wondering if I could get some piece of advice.
I have created a table using HTML that has 2 columns and "N" number of rows say 10. I want the first column to hold time values while the second to hold comments. For now I want both the time and comment values for the rows to be input by the user and saved into a database as soon as they are entered.
I thought about putting text boxes inside each cell of the table and trying to save the data that way but not all cells will be filled for a bigger table.
What would be the best way to save the table values into a database.
I think for you requirement you will need to use a Grid which will handle most of the things for you.
Have a look at jqGrid.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have a Javascript Bookmarlet, in which I want to grab a price that might be displayed on the current page.
So for example on shopping sites it could grab the price of an item the user is currently looking at.
I figured one way would be to grab all the text on the page, perhaps with something like get web page text via javascript
And then from there filter to get just the number after a currency symbol is found (£,$ etc) which should in theory leave just the Price.
However I am now sure how I would go about actually filtering to just the number, and if this is at all the right way to go about this?
How about get the text value of mark up?
E.g. Say you had:
<span id="price">£5.00</span>
You could do the following with jQuery:
$('#price').text();
Or vanilla javascript:
document.getElementById('price').innerText
Provided there is infact a wrapper around the text or you have access to the markup.