Questions tagged as 'javascript'

1
answer

Place a select option inside a div with d3.js

I am trying to place a drop-down list (with select and option ) within a div and an SVG using d3.js, but it does not work and the select is not seen. I do not know if they are the properties or the reason why it happen...
asked by 30.11.2016 / 04:28
3
answers

How to go through all the Rows of a DataTable when it is filtered?

I try to go through all the rows that contain the " highlightchecked " class of a jquery DataTable using this code: $(dtTable12.rows().nodes()).each(function () { if ($(this).closest('tbody tr').hasClass('highlightchecked')) {...
asked by 01.12.2016 / 02:59
2
answers

AngularJs 'TabsCtrl' is not a function, got undefined .Net

I was taking an internet example of how to create SPA, but I'm stuck, the issue is that it uses some modules , which are nested and create controls with dependency towards modules , the problem is that I can not use the dependencies of ui.b...
asked by 17.10.2016 / 19:54
2
answers

Show / hide menus according to user profile / role

Good, my query basically is to guide me how to solve my problem in the most optimal way, I have a web with backend in nodejs where I send the static files (I do not use jade templates), I do all the modifications with javascript and ajax call...
asked by 01.10.2016 / 09:44
1
answer

verify php variable before doing the submit

I am learning on the fly and half blocked at times with some topic. I have a form with 2 buttons on my page detalle.php: <form action="carrito.php" method="POST" name="compra"> <input...
asked by 20.10.2016 / 03:06
1
answer

How to remove random value in data and impersonate it by values defined in javascript

Well, I have a function in javascript that what it does is print a graph, at the moment it does it with random values, but I'm interested in executing it with predefined values, and trying to save an array of numbers in a variable, and send it t...
asked by 05.10.2016 / 04:29
1
answer

know if there is a file so as not to write it

Should I use this function?    fs.exists (path, callback) I do not know how to do the function to know if the file with the same name already exists, and if not then create it my function is: function escribir(archivo,data){ fs.stat(...
asked by 05.10.2016 / 01:54
5
answers

Global javascript variables

I am making a AJAX request that returns a json , and I need to use the values of json outside the AJAX function, I hope the data was public or global, and I can not find how to do it. This is my code: $('#btnBusca').on("cli...
asked by 15.09.2016 / 15:14
1
answer

How can I know if a server allows JSONP or CORS

I want to use an API from a Wallpapers page but I run into restricted ajax domains. Investigate the error and it can be solved by using JQuery JSONP to take the information returned by the API. This is my request. $.ajax({ url: endpoin...
asked by 30.09.2016 / 22:40
1
answer

Mobile device browser does not play html5 video in mp4 format

I'm creating a website with background video in mp4 format. I am in the process of converting it to webM to see if I can get it reproduced in browsers on mobile devices and it works in chrome firefox and even internet explorer PCs but so far in...
asked by 20.06.2016 / 04:16