javascript,jquery,jquery-datatables,redrawRelated issues-Collection of common programming errors


  • Elisabeth
    javascript iphone ipad orientation
    I’m having the same problem that a couple of others have had with getting the correct behavior in a web app on an orientation change, and there doesn’t seem to be an obvious solution – I’ve seen this question asked a couple of times on Stack Overflow and no one’s yet been able to answer it.When I start the app in portrait mode, it works fine. Then I rotate into landscape and it’s scaled up. To get it to scale correctly for the landscape mode I have to double tap on something twice, first to zoo

  • Ulker Ibrahimova
    javascript jquery file-get-contents
    This question already has an answer here:Ways to circumvent the same-origin policy11 answersIs there any way to get full page source of snother different site? Example my site is example.com but i want to get facebook’s page source on example.com. I tired this one: http://phpjs.org/functions/file_get_contents/ And it gives me null. So anyone knows it?function file_get_contents (url, flags, context, offset, maxLen) {// Read the entire file into a string//// version: 906.111// discuss at: http://

  • shoriwa-shaun-benjamin
    java javascript android cordova webview
    I am trying to get my cordova webview to work with cordova 3.2 an use the phonegap Camera API to access the camera.Reference: Android WebViewsHere are some successful implementations of what I want to do, but these use Phonegap 1.9, i want to use Phonegap 3.2 (the latest one)Cordova WebView using AndroidAlso here’s a VideoWith the code below I am able to make the cordova webview display my index.html page without any issues but when I to access the camera by clicking on “Capture Photo” in my HTM

  • Inator
    php javascript apache nosql couchdb
    I’ve recently successfully installed CouchDB version 1.2.1 and as a test I can access it using the following Apache rewrite in CentOS 6:RewriteRule couchdb/(.*)$ http://127.0.0.1:5984/$1 [QSA,P]I have a PHP authentication class that I use across a home grown API to support my mobile apps. My API accepts and authenticates each request using an HMAC signature that is included in the URL like so:https://api.domain.com/endpoint/?timestamp=[timestamp]&signature=[signature]&id=[id]…etcEach

  • novicePrgrmr
    java javascript ajax json jsp
    I am sorry to ask this but i’ve been working on this for hours and I can’t figure it out on my own. I have to use json for part of a project and I was able to get it to work but now it’s not returning it back to the right jsp but instead just displaying the json jsp. I am pretty sure it is how I am receiving the json.here are screen shots of what is happening:this is the jsp that I need to use ajax on, I am wanting to populate the second dropdown using ajax:this is what is happening instead, (it

  • Andrew Whitaker
    javascript regex
    I am trying to build a regexp from static text plus a variable in javascript. Obviously I am missing something very basic, see comments in code below. Help is very much appreciated:var test_string = “goodweather”;// One regexp we just set: var regexp1 = /goodweather/;// The other regexp we built from a variable + static text: var regexp_part = “good”; var regexp2 = “\/” + regexp_part + “weather\/”;// These alerts now show the 2 regexp are completely identical: alert (regexp1); alert (regexp2);/

  • DOTang
    javascript regex
    I am searching for text inside of website resources (html and javascript), and need to identify 3 regular expressions that will locate this text under certain circumstances:some string of text when it is contained inside of a javascript single-quoted string some string of text when it is contained inside of a javascript double-quoted string some string of text when it is not contained inside of a javascript stringHere are some scenarios that are likely to occur (searching for the string “somestr

  • Andy E
    javascript html
    I’m building up a row to insert in a table using jQuery by creating a html string, i.e.var row = “”; row += “<tr>”; row += “<td>Name</td>”; row += “<td><input value='”+data.name+”‘/></td>”; row += “</tr>”;data.name is a string returned from an ajax call which could contain any characters. If it contains a single quote, ‘, it will break the HTML by defining the end of the attribute value. How can I ensure that the string is rendered correctly in the brow

  • sameer
    javascript angularjs maven yeoman
    I have recently integrated maven yeoman plugin with my app. I followed https://github.com/trecloux/yeoman-maven-plugin/blob/master/TUTORIAL.md My angular version is v1.2.3 . When I run the mvn clean install command, I get the following error . [email protected] node_modules\grunt-contrib-imagemin ?ö£?öÇ?öÇ [email protected] ?ö£?öÇ?öÇ [email protected] ([email protected], [email protected]) ?ö£?öÇ?öÇ [email protected] ([email protected]) ?ö£?öÇ?öÇ [email protected] ([email protected]) ?ö£?öÇ?öÇ p

  • Ronald Yeung
    javascript jquery ajax json cors
    What I am trying to do is to have a page on the HTTP protocol sending an AJAX call to the same Web server but using HTTPS. Both the requesting page and the AJAX handler are on the same server, having the same domain and port. (I.e., only difference is the protocol.) To illustrate,Fromhttp://www.example.com/index.phpTriggers a jQuery AJAX call tohttps://www.example.com/authenticate.php?user=123&password=456(I am hoping to pass the password through HTTPS to make it encrypted over the Internet.

  • Ulker Ibrahimova
    javascript jquery file-get-contents
    This question already has an answer here:Ways to circumvent the same-origin policy11 answersIs there any way to get full page source of snother different site? Example my site is example.com but i want to get facebook’s page source on example.com. I tired this one: http://phpjs.org/functions/file_get_contents/ And it gives me null. So anyone knows it?function file_get_contents (url, flags, context, offset, maxLen) {// Read the entire file into a string//// version: 906.111// discuss at: http://

  • Mitesh Vora
    jquery html css ellipsis
    I tried looking here Insert ellipsis (…) into HTML tag if content too wide but could not get in chrome to work. I there solution for multiline in all browsers??

  • Ronald Yeung
    javascript jquery ajax json cors
    What I am trying to do is to have a page on the HTTP protocol sending an AJAX call to the same Web server but using HTTPS. Both the requesting page and the AJAX handler are on the same server, having the same domain and port. (I.e., only difference is the protocol.) To illustrate,Fromhttp://www.example.com/index.phpTriggers a jQuery AJAX call tohttps://www.example.com/authenticate.php?user=123&password=456(I am hoping to pass the password through HTTPS to make it encrypted over the Internet.

  • Mac-Gon
    javascript jquery html5 css3 navigation
    I’ve been reading lots of the other posts, and no doubt it’s my inexperience with jQuery that is giving me trouble, but there are lots of things close to what I’m trying to accomplish. I have a div where I have a vertical navigation set of buttons. Inside that I want the other divs (child divs) that will be shown or hidden based on the navigation button clicked by the user. I want all of these divs to be in the same location on the screen…so, basically like a tabbed form but with vertical navi

  • user2023507
    jquery spring twitter-bootstrap spring-mvc thymeleaf
    I have following code : public class StudentController extends BaseController {@RequestMapping(value = “/student/edit”, method = RequestMethod.POST)public String submitForm(@Valid @ModelAttribute(MODEL_ATTRIBUTE_STUDENT) StudentDTO edited,BindingResult bindingResult, RedirectAttributes attributes) {if (bindingResult.hasErrors()) {return STUDENT_EDIT_FORM_VIEW;}//some logic…}@InitBinder public void initBinder(WebDataBinder binder) {SimpleDateFormat dateFormat = new SimpleDateFormat(“MM/dd/yyyy”

  • Liam Bailey
    javascript jquery history.js
    On this page: http://www.kastenreus.nl/onze-kasten/ we have the filters down the left hand side, we are having a problem with the link filters under Verfijn uw wensen, if you watch the console you can see it is firing 2 requests, the first one is what the content is loading in from, when it is the second we actually need.This is the click binded event:jQuery(“.codenegar_product_filter_wrap ul li a”).live(“click”, function(e){e.preventDefault();var $this = jQuery(this);if($this.attr(“data-key”) =

  • thealexbaron
    jquery css
    Click “Rate” – that should pop up a normal boxy dialog, but styles aren’t working. Any ideas?Here’s the working example on the site: http://www.great-quotes.com/boxyTest.htmThe official boxy docs: onehackoranother.com/projects/jquery/boxy/.boxy-wrapper { position: absolute; } .boxy-wrapper.fixed { position: fixed; }/* Modal */.boxy-modal-blackout { position: absolute; background-color: black; left: 0; top: 0; }/* Border */.boxy-wrapper { empty-cells: show; }.boxy-wrapper .top-left,.boxy-wrapper

  • lokisapocalypse
    jquery jquery-ui accordion sortable
    This is my first time posting so please let me know if I fail to provide enough details. I have a page that contains multiple accordions. I wanted to use multiple accordions because I wanted users to be able to have multiple sections open at once which is not native to accordion. I also want users to be able to sort those accordions. The way the page is currently set up, users can sort the accordion with no problems. When the user goes to sort the accordions, I have a script that will close all

  • CQM
    jquery android webview sencha-touch
    Is there a better webview for android? Google’s own documents mention not to rely on the webview object.But for using webkit it seems strange that it is so limited, compared to other webkit browsers used on mobile devices with comparable hardware.This is evident in jquery mobile implementations, or similarly sencha touch implementations for web apps. The Android version suffers slowdowns, rendering issues, and a poor user experience, where other mobile devices – like an iphone – will run it fine

  • jmort253
    jquery xml
    How would I go about parsing XML cross-domain? Could someone provide an example? The example doesn’t have to be restricted to only jQuery, as JavaScript will also suffice.

  • user2570937
    jquery datatables jquery-datatables
    I’m trying to use the reloadajax function however when I run it the table says processing and nothing happens. The button and everything works inside the table it just doesn’t reload the table and gets stuck. Any Ideas why?<script type=”text/javascript”> $.fn.dataTableExt.oApi.fnReloadAjax = function ( oSettings, sNewSource, fnCallback, bStandingRedraw ) {// DataTables 1.10 compatibility – if 1.10 then versionCheck exists.// 1.10s API has ajax reloading built in, so we use those abilities/

  • madth3
    jquery jquery-datatables
    I put the dataTable function initialization inside an object but I don’t get the same result as when I initialize it outside the objectInitialization outside objectvar dataTable = $(‘datatable’).dataTable();Initialization inside objectvar aObject = {dataTable : null,initFunction : function() {// this.dataTable contents is not the same when I initialize dataTable outside the objectthis.dataTable = $(‘datatable’).dataTable();} }Why is this? EDIT: Also, it doesn’t seem to successfully initialise th

  • Arthur
    jquery jquery-datatables
    I am using colvis and multi search together, but it has some issue though..Cases: 1. If I uncheck ‘Rendering Engine’, and use multi-search for Engine Version (e.g. with data data 6 or 7), it wont give any data. 2. for multi-serach for CSS grade, it wont search at all I’ve created a jsfiddle here http://jsfiddle.net/cyVjh/script used//Search $(“tfoot input”).keyup(function () {/* Filter on the column (the index) of this element */oTable.fnFilter(this.value, $(“tfoot input”).index(this)); })

  • madth3
    javascript php jquery jquery-datatables
    Problem : using dataTables javascript library to display data perfectly fine.Data is retrieved via PHP/mysql and then the table is drawn and the code cycles through the tables as such :JAVA code for dataTables -<script> $(document).ready(function() {$(“#PayMasterResults”).dataTable( {“sPaginationType”: “full_numbers”,”bPaginate”: false,”bJQueryUI” : true,”sScrollY”: “215”,”bLengthChange”: true,”bFilter”: true,”bSort”: false,”bInfo”: true,”bAutoWidth”: false,”sDom”: \'<“H”lTfr>t<“F

  • madth3
    jquery jquery-datatables
    In Datatables while viewing in the browser we show n columns. When a user clicks generate excel (implemented using TableTools), I want to hide some unneeded columns. How to hide columns at runtime?

  • madth3
    ruby-on-rails ruby ruby-on-rails-3.1 jquery-datatables
    Does anybody have experience with datatables and Rails 3.1!? I tried the simple_datatables 0.2.1 gem from :https://github.com/gryphon/simple_datatableswith kaminari and meta_search 1.1.0 but could not make it working. The table show up without images/css probably due to not properly loaded css styles. Searching in the tables crashes also…. due to some weird search flags it passes to the backend. Example : I have columns ‘name’ and ‘size’ and it passes : ‘search[name_or_sizefalse]’ The backend

  • Alexander Farber
    table header jquery-datatables
    I’m trying to create a table where more details can be seen when the plus-image is clicked – similar to the DataTables hidden row details exampleUnfortunately there is a warning being printed as JavaScript alert and also the table header is misplaced – as if there would be too many or not enough table cells in it:I have prepared a simple test case, which will work instantly, when you save it to a file and open it in a browser:<!DOCTYPE HTML> <html> <head> <link type=”text/cs

  • madth3
    jquery asp.net-mvc jquery-datatables
    I have an index.cshtml file with a simple table. I downloaded the css file and the min js file for the dataTable plugin. I put the following code in BundleConfig.cs:bundles.Add(new ScriptBundle(“~/bundles/table”).Include(“~/Scripts/jquery.dataTables.min.js”));bundles.Add(new StyleBundle(“~/Content/themes/base/css”).Include(“~/Content/themes/base/jquery.ui.core.css”,”~/Content/themes/base/jquery.ui.resizable.css”,”~/Content/themes/base/jquery.ui.selectable.css”,”~/Content/themes/base/jquery.ui.

  • madth3
    javascript jquery-datatables
    Based on the API docs at DataTables site, I created the following javascript function to show only one specific table at a time:function ShowColumn(columnNum) {var table = $(‘#MemberStatisticGrid’).dataTable();$(‘#SelectedMetricList option’).each(function (index) {table.fnSettings().fnSetColumnVis(index, false);});table.fnSettings().fnSetColumnVis(columnNum, true); }However, this fails with the error Uncaught TypeError: Object #<1> has no method ‘fnSetColumnVis’I don’t get why I am getting

  • aquajach
    ruby-on-rails twitter-bootstrap turbolinks jquery-datatables
    I have one page with a table enabled with jQuery datatables and also bootstrap (they are fine with each other at the moment). While things get messed up when adding turbolinks to my Rails 4 application. Here’s my application.js file://= require jquery //= require jquery_ujs //= require twitter/bootstrap //= require dataTables/jquery.dataTables //= require dataTables/jquery.dataTables.bootstrap //= require layouts //= require turbolinks //= require_selfIn the layouts.js file, I just simply put a

  • ByulTaeng
    c# performance forms controls redraw
    I have a form that contains a lot of runtime generated controls (image, button, panel,…), about 100 controls (I’m making a card matching game so there is a lot of controls in the form).I place the generating code into the constructor and each time the app starts, it took about 3-5s to load all the controls completely. If I bring another window on top and then back to my app, the controls will be redrawn again. How can I prevent the controls from being redrawn? If you don’t mind, please give me

  • Alex
    javascript jquery jquery-datatables redraw
    I have a datatable with few rows, I want to add new row in table :var oTable = $(‘#StudentsTable’).dataTable();Table2.fnStandingRedraw();when I init the dataTable I add :”bProcessing”: true,”bServerSide”: true,”bDestroy”: true,”fnFilter”: true,’bLengthChange’: true,’bPaginate’: true,’bStandingRedraw’: true,after ajax submit I want to redrow the table:submitHandler: function(form) {var $modal = $(‘#ajax-modal’);$modal.modal(‘loading’);$(form).ajaxSubmit({dataType: ‘json’,success: function(result)

Web site is in building