Questions tagged as 'javascript'

0
answers

TypeError: undefined is not an object (evaluating 'self.data.ID')

I'm trying to apply unit testing on my onPersistSuccess function, but this error appears    TypeError: undefined is not an object (evaluating 'self.data.ID') I have tried to define it in several ways but the error persists. I would like...
asked by 23.10.2017 / 14:38
1
answer

How to disable a datatable at the time of printing

The page has a datatables link , I would like to hide the items that are created by it at the time of printing, example: search field, paging etc. My datatable looks like this: <script> $(document).ready(function () { $('...
asked by 19.11.2018 / 17:08
0
answers

How to read a JSON file to render HTML list

I have a difficulty in an application that le json file and renders it in HTML, I am not able to access the object correctly, the variable products is as undefined. can anybody help me? if you have any other way to resolve I'm also open html...
asked by 14.11.2018 / 03:26
0
answers

Reading a JSON by http in AngularJS does not work

Hello I'm trying to read a JSON via http using AngularJS (I need to use AngularJS) and I can not even display the first JSON data since it does not have a string that I can call in function (response) in $ scope.countries = response. ? I do not...
asked by 09.11.2018 / 20:45
0
answers

What is the Javascript Cache class?

I saw Javascript have a class called Cache . By the little that I could understand seems to have relation with requisitions. I wanted to know a little more about this class: Is it only for requests made with Request? Or could it be used...
asked by 31.10.2018 / 17:53
2
answers

Select all checkbox when clicking another checkbox of PrimeFaces

I'm having a question, how do I select all checkboxes that are inside a panelgrid? I have seen that it is possible to do this via javaScript. But I was in doubt about how to execute the method because to select all. At first he wanted to see...
asked by 22.03.2014 / 20:38
2
answers

Remove Select2 parameters

I have a problem using the Select2 plugin, I need to make an AJAX request, but I need the final URL to be as follows: api/user/findbyname/name And the way it's coming is this: api/user/findbyname/?q=name&_=1395243972884 My code is...
asked by 19.03.2014 / 16:52
1
answer

Put one site inside another as checkout light box

I'm a web developer and I came across a problem where I need to display a registration form inside another page. The client does not want your user to be directed to our page, I have tried to instruct him to use iframe, but this has resulted in...
asked by 23.03.2018 / 20:40
3
answers

JavaScript Redirect

Why does not it redirect to the page typed in URL? function irPara(url){ url = document.irParaURL.URL.value; return location.href = url; } <form name="irParaURL"> <label>Dígite um site:</label> <i...
asked by 01.05.2018 / 22:15
1
answer

How do I make my form work with reCAPTCHA?

I'm saving the data for Ajax, but my reCaptcha is not working properly, the form is sent even without pressing inside Captcha. My Controller [HttpPost] [CaptchaValidator(PrivateKey= "secretKey", ErrorMessage="Captcha Invalido", Req...
asked by 18.09.2018 / 01:05