Questions tagged as 'javascript'

1
answer

How to send two integer parameters to an Asp.net MVC Controller using Ajax

I have a composite key table (PersonId and ProfissaoId). The PersonId property is in a hidden and ProfissaoId gets accumulated in a data-id. Stays two information must be passed to the controler so I can delete the record. Currently, I have this...
asked by 21.09.2018 / 23:28
1
answer

Function authorizing or not submitting form

I'm trying to execute a function in the form submit, it works correctly, however if I return true I need the form not to be sent. It's being done this way: $('#FornecedorNovo').submit(function (e) { var url = "/Fornecedor/Verifi...
asked by 21.09.2018 / 21:13
2
answers

How to filter Combobox data using the Laravel Framework?

Context: Home I'm looking to load the Template Checklist templates in the combo, but only those that are not in the structure checklist database table. In this case, only the Catu model would be loaded, since it is not registered in the s...
asked by 19.09.2018 / 22:12
1
answer

Error trying to assign a new value to a repeating object

I need to assign or even create a new attribute on an object within a loop, but it is giving the following error, which I have no idea what it is:    TypeError: Can not create property 'is_content_hide' on boolean 'false' EmailService.setM...
asked by 21.09.2018 / 19:35
1
answer

JQuery to swap small

Quick question I could not find anywhere .. How do I change the text of a small? I'm trying with the same code I used to change a text once, I think the problem is in the selectors, but I already tested with all of them and did not roll. I...
asked by 21.09.2018 / 22:37
1
answer

Function for add and remove button - to clone form

Good afternoon, I have the following question: I have a training form form, with the following fields in dropdown: GROUP EXERCISE SERIES REPEAT LOAD PAUSE and would like the option to repeat the field, thus: GROUP EXERCISE SERIES REPEAT...
asked by 20.08.2018 / 17:51
1
answer

How to configure the Summernote editor to display a web page inside the window?

Good morning, I wanted a little help and tips to make the text editor summernote open a web page, for example in a page I'm typing the HTML normally and click to see the code, it would appear the page ready. example:     
asked by 16.08.2018 / 15:10
1
answer

Laravel Relationship in Datatable server side

Would there be any way to pass the model relationship to the columns of the Datatable server side? For example in the Datatable script: columns: [ { data: 'marca_id', name: 'marca_id' }, { data: 'automovel_modelo', name: 'automovel_...
asked by 19.09.2018 / 13:36
1
answer

How do I put a function inside ng-bind-html?

I gave a simpler example to my problem: Inside my controller looks like this: $rootScope.myAction = function(){ alert('Olá mundo!'); } $scope.setAction = function() { var comp = $compile('<button ng-click="myAction()">Teste&l...
asked by 19.09.2018 / 18:04
1
answer

How to put a ui-accordion with another ui-accordion inside?

How do I uniquely identify the ui-accordion , the script is not loading? Javascript: $( function() { $("#accordion_search_item1,#accordion_search_item2,#accordion_search_item3") .accordion({ collapsible:true, hea...
asked by 18.09.2018 / 21:29