Comments (9)
Original comment by [email protected]
on 22 Sep 2011 at 8:49
- Added labels: Type-Other
- Removed labels: Type-Defect
from jquery-datatables-editable.
Thank you Dariush for your 'modeltraintracker'-example! I used it for a project
of mine and everything works fine, except for one thing: filling the 'add-form'
with your 'form.php'-file (I don't know what the code on that page is doing...).
Would you be so kind to give an example of form.php too?
Thank you,
Harrie
Original comment by [email protected]
on 7 Jun 2012 at 2:36
from jquery-datatables-editable.
Here is form.php:
<?php
require_once('auth.php');
require_once('config.php');
//Connect to mysql server
$link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
if(!$link) {
die('Failed to connect to server: ' . mysql_error());
}
//Select database
$db = mysql_select_db(DB_DATABASE);
if(!$db) {
die("Unable to select database");
}
?>
<br />
<div class="error" style="display:none;">
<img src="css/images/important.gif" alt="Warning!" width="24" height="24" style="float:left; margin: -5px 10px 0px 0px; " />
<span></span>.<br clear="all" />
</div>
<label for="scale">Scale:</label><br />
<select name="scale" id="scale">
<option value="" />
<?php
$s_result = mysql_query('SELECT s_id, s_scale FROM scale ORDER BY s_scale');
while($s_row = mysql_fetch_row($s_result)) {
echo "<option value=\"$s_row[0]\">".$s_row[1]."</option>";
}
?>
</select>
<br />
<label for="manufacturer">Manufacturer:</label><br />
<select name="manufacturer" id="manufacturer">
<option value="" />
<?php
$m_result = mysql_query('SELECT m_index, m_name FROM manufacturer ORDER BY m_name');
while($m_row = mysql_fetch_row($m_result)) {
echo "<option value=\"$m_row[0]\">".$m_row[1]."</option>";
}
?>
</select> <div id="addManPopup" style="display:inline;" class="addPopup">Not listed?</div>
<br />
<label for="partnumber">Part Number:</label><br />
<input name="partnumber" type="text" id="partnumber" value=""/> or <input name="partnumber" id="partnumbercbx" type="checkbox" value="unk" />Unknown
<br />
<label for="roadname">Road Name:</label><br />
<select name="roadname" id="roadname">
<option value="" />
<?php
$r_result = mysql_query('SELECT r_index, r_roadname FROM roadnames ORDER BY r_roadname');
while($r_row = mysql_fetch_row($r_result)) {
echo "<option value=\"$r_row[0]\">".$r_row[1]."</option>";
}
?>
</select> <div id="addRoadPopup" style="display:inline;" class="addPopup">Not listed?</div>
<br />
<label for="type">Type:</label><br />
<select name="type" id="type">
<option value="" />
<?php
$t_result = mysql_query('SELECT t_index, t_type FROM type ORDER BY t_type');
while($t_row = mysql_fetch_row($t_result)) {
echo "<option value=\"$t_row[0]\">".$t_row[1]."</option>";
}
?>
</select> <div id="addTypePopup" style="display:inline;" class="addPopup">Not listed?</div>
<br />
<label for="roadnumber">Road Number:</label><br />
<input name="roadnumber" type="text" id="roadnumber" value=""/> or <input name="roadnumber" type="checkbox" value="n/a" id="roadnumbercbx" />N/A
<br />
<label for="description">Description:</label><br />
<input name="description" type="text" id="description" value="" size="30" maxlength="50" />
<br />
<label for="value">MSRP / current value (nearest dollar):</label><br />
<input name="value" type="text" id="value" value="" size="10" />
<br />
<input type="hidden" name="ref" value="item" />
Original comment by [email protected]
on 7 Jun 2012 at 5:27
from jquery-datatables-editable.
Thank you again. I see that you're only using form.php to fill the <option>'s
in the <select>'s from the database. That's complicating things (i.e. your
jquery-script on the mainpage)a bit for me, because I just need a form with
simple <input>'s. But I'll see what I can do.
Greetings,
Harrie
Original comment by [email protected]
on 7 Jun 2012 at 7:58
from jquery-datatables-editable.
There is a bug in your jquery-code (on
http://www.modeltraintracker.com/sandbox/items.php), Dariush: when you click
"Edit selected item" right AFTER you have clicked "Add new item" (en closed
that form with "Ok" or "Cancel") then the edit-form is empty!
I'll try to solve this myself, but maybe you know sooner where and why the
error occurs?
Harrie
Original comment by [email protected]
on 9 Jun 2012 at 1:45
from jquery-datatables-editable.
Hello ! Great job !
Which librairies did you use for pdf saving ?
Thanx
Original comment by [email protected]
on 16 Jul 2012 at 5:47
from jquery-datatables-editable.
Thanks, I use TCPDF.
Original comment by [email protected]
on 16 Jul 2012 at 6:10
from jquery-datatables-editable.
Re Comment #5 - I've seen this problem before, and try as I might, I have not
been able to pin it down to anything. It doesn't happen all the time, but it
does happen enough for me to notice it.
Original comment by [email protected]
on 16 Jul 2012 at 6:11
from jquery-datatables-editable.
I have download your ModeltrainTracker application but i didnt see Mysql dump
database... where i can download it ?
Original comment by [email protected]
on 15 Nov 2012 at 1:05
from jquery-datatables-editable.
Related Issues (20)
- issue with inline delete redrawing with pagination, only 1st page worksrest ( including searches ) do not redraw table
- Not compatible with jquery higher than 1.9
- Add new row: after first insert, the Cancel button not shown
- Error on Deleted Row
- Only first page of mult-page table is editable. HOT 1
- Delete Button problem HOT 2
- makeEditable() is undefined HOT 1
- Unable to customize buttons HOT 1
- How I can make Editable more of one table
- Patch for /trunk/media/js/jquery.dataTables.editable.js
- Editing AJAX sourced data in the popup window
- Patch for /trunk/media/js/jquery.dataTables.editable.js
- Delete behaving as Post call
- Refresh the table after delete a record
- Refresh the table after delete a record HOT 1
- Missing images for demo_table.css HOT 1
- vgfdzvfz
- editable with responsive HOT 1
- makeEditable() on two tables in the same page HOT 1
- sNewCellDisplayValue is undefined. Typo in variable declaration
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-datatables-editable.