Questions tagged as 'javascript'

0
answers

reCaptcha in lightbox

Hello, I'm trying to insert a recaptcha into a page, I was able to successfully insert the contact page through an AJAX form. The problem is in an AJAX form that is inside a lightbox (in case I use featherlight but I think it does not influen...
asked by 18.04.2017 / 14:19
1
answer

Uncaught (in promise): Error: Can not match any routes. URL Segment:

I'm getting the following error when I try to open a new form via [routerLink]: error_handler.js:54 EXCEPTION: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'usuario-cadastrar-dialog' Error: Cannot match any routes. URL...
asked by 18.04.2017 / 18:54
0
answers

Remember the item status with cookies

link I wanted that, in case the user opened one of the main items, when giving refresh, it would remain open. I've tried to do this in a few ways but I still can not, if anyone can help, thank you.     
asked by 12.04.2017 / 04:13
0
answers

Get data from an external url by the source code of the page

Hi, I need to get the latitude, longitude that is in a url In the source code of the url, has a table below, what I need is these values -22.96555, -43.17969 that is in (TD 4 of the table) I need it in a variable php could anyone help me?...
asked by 13.04.2017 / 01:15
1
answer

How to use inheritance and polymorphism when passing a JSON to an MVC C # Controller?

I have an MVC method that receives a client class as a parameter: public async Task<ActionResult> Cadastrar(cliente model) { } It turns out that this class has two children, a class called a person. and another class...
asked by 12.04.2017 / 01:13
1
answer

Good practice when loading a div with database data, using jQuery

What is the best way to build a div with jQuery Example: $(document).ready(function(){ $.ajax({ type:'post', dataType: 'json', url: 'listAllForum', success: function(dados){ for(var i = 0; dados.length > i...
asked by 12.04.2017 / 22:01
1
answer

Convert strings to booleans

I'm dynamically adding a javascript and to its src I need to pass some parameters ... the following function creates this "querystring": var querystring = {a:'b',b:true,c:'d',e:false}; var query = Object.keys(querystring).map((ke...
asked by 10.04.2017 / 00:11
0
answers

Modifying a third-party / external (JS) Script

I need to use an external script that generates a form (so far so good, it's working) ... Once the script is inserted into the page, I need the form's labels (generated by the script) to be responsive (I think a window.onresize ) ... But how do...
asked by 11.04.2017 / 22:29
0
answers

Save an image and generate Thumb with nodejs

I'm trying to burn an image to disk and after that generate a thumb of the image that was saved. To do this I save the normal base64 image that was sent and in the callback of fs.writeFile I call the function to generate the thumb. I'm try...
asked by 10.04.2017 / 20:45
0
answers

Download by javascript does not work on intel xdk

I have a script that works normally in the mobile browser and in the browser of the computer, however when it generates an apk it saves a file with another extension instead of the proposal. Below is my script $("#download").click(funct...
asked by 27.05.2017 / 14:08