Menu
  • HOME
  • TAGS

How can we send field in Delete Action which are not Key

ajax,jquery-jtable

I found answer of it. We need to add this code in field section of jtable customDelete: { title: '', width: '0.3%', display: function(data) { var $but = $('<button title="delete" class="jtable-command-button jtable-delete-command-button" >delete</button>'); $but.click(function(){ var $dfd = $.Deferred(); if(data.record.configType == 'global') { alert('Global Type Configuration are not allowed for deletion.')...

jTable not showing new row content after MySQL INSERT with node.js

mysql,node.js,jquery-jtable

While working on a child table I came across the same problem, except this time I was able to find a solution. In order to get the new row to display its data, I needed to reload the jTable with the recordAdded event. It's a shame that I can't keep...

Jtable An error occured while communicating to the server. - post 500 error

javascript,c#,jquery-mobile,jquery-plugins,jquery-jtable

find the problem it should be [WebMethod(EnableSession = true)] public static Object CreateCar(Car **record**) { try { bool addresult = new CarRepo().CreateCar(record); return new { Result = "OK" }; } catch (Exception ex) { return new { Result = "ERROR", Message = ex.Message }; } } ...

jQuery AJAX call in jTable

php,jquery,mysql,ajax,jquery-jtable

What's not to understand, URL is most important part of $.ajax call, basically it is a end point you need to call to get some data. This URL can be absolute like in this case: var url = 'http://api.themoviedb.org/3/', mode = 'search/movie?query=', movieName = '&query='+encodeURI($('#movie-title').val()), key = '&api_key=470fd2ec8853e25d2f8d86f685d2270e'; $.ajax({ url:...

How to display HyperLink Data in JTable column?

jquery,html,ajax,jquery-jtable

Take a look on this link : http://blogs.lessthandot.com/index.php/WebDev/ServerProgramming/nancy-and-jtable-formatting-your/ I think this is what you want. Add field display. When we configure our fields for jtable we have a display attribute that takes a function and in that function we can do our formatting. display: function (data) { return $('<a href="JarFillingDetail.php?id="'...

jQuery JTable paging not working

jquery,json,pagination,paging,jquery-jtable

I don't know what your sql statement is like, but I was having the same issue you were and finally figured out that you have to set the paging yourself, using LIMIT in MySQL (it's a bit more complicated in MSSQL). --MySQL, PHP "SELECT * FROM Students ORDER BY Name...

Jtable POST fails to send data (using PHP)

php,jquery,post,jtable,jquery-jtable

I fixed this by cleaning my code and adding this into the table properties: ajaxSettings: { type: 'POST', data: {'UserId': '<?php echo $userid;?>'}, url: './tableactions.php' }, Works fine now....

How can I set different themes to multiple (jQuery) jTable on the same page?

jquery,jquery-jtable

From the documentation of jTable It is pretty clear that they are using jquery-ui themeroller for themes, jTable has it's own themes those can be used easily. But, you may want to use color schema and styles of your jQueryUI as jTable's theme. So, this option can be used to...

Integrating jTable (jQuery) into an ASP.NET MVC 5 project that uses a default layout

jquery,asp.net-mvc,asp.net-mvc-5,jquery-jtable

It could possibly have to do with your bundles config references and loading of the scripts through your Layout.cshtml, since it works when you hard code the references in your view. With these plugins it is important to have the order of files loaded correctly and also the references pointed...

MySQL, PHP passing ORDER BY parameter

php,mysql,sql,jquery-jtable

I think this: function buildQuery($startIndex, $pageSize, $sorting) { return "SELECT * FROM reports WHERE `new`=0 ORDER BY $sorting LIMIT $startIndex, $pageSize"; } $res = $mysqli->query(buildQuery($startIndex, $pageSize, $sorting)); Is a lot easier than defining: DELIMITER $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `getReadReportsPaging`(startIndex INTEGER, pageSize INTEGER, sorting VARCHAR(255)) BEGIN SET @Query = "SELECT *...

jtable single column/field in a table refresh

javascript,php,jquery,jquery-jtable

I found a way around how to solve it: First create a new field in JS like this: test: { title: 'test', display: function (data) { var $div = $('<div id="test"">'+data.record.id+'</div>'); return $div; } }, Than create a function that will be run every 10 seconds and make an AJAX...

adding pagination to all tables using jtable in jsp

java,jquery,mysql,jsp,jquery-jtable

Here is the answer for this requirement (stackoverflow.com/questions/27644483/dynamic-fields-using-jquery-in-jtable)