Questions tagged as 'dom'

0
answers

resizable and draggable do not work on items added later

I am using draggable and resizable of jQuery UI to box so user can change dimension and move. It is working correctly if I put the <div> direct in the code: <form action="" method="post" class="form row" en...
asked by 30.12.2016 / 19:35
1
answer

Adding items to a list and then adding click event - JavaScript

I'm studying javascript and developing an All List . The only thing I want to do is to add elements to a <ul> and then to enable them to click so that they only change class. My html is very simple ... This...
asked by 15.12.2016 / 14:34
1
answer

AngularJs - Filter ng-repeat checkbox

Keeping in mind that I have a ng-repeat, how do I get only the items I marked in the checkbox?     
asked by 08.11.2016 / 21:05
1
answer

Modify the URL of a href using PHP HTML DOM

I want to modify a URL of an object that I am extracting from another site, in this case, from Exame.com. Follow the code: $exame = file_get_html("http://exame.abril.com.br/"); $exame_posts = $exame->find("p.content-item...
asked by 23.09.2016 / 01:36
1
answer

Get CSS class from other sites using PHP HTML DOM Parser

I'm trying to get a class from a news site, but I'm not getting it. $titulo = $html->find('feed-post-body-title gui-color-primary gui-color-hover', 0) ->innertext; echo $titulo; You're giving this error:    Notice:...
asked by 19.09.2016 / 20:28
0
answers

Knockoutjs trigger event after any modification in the UI or the model

Hello, how would you guys intercept changes in the UI or the model that were made sensitizing the knockout? Using subscribe I know there was a change in a property, but what if I had 100 models, with 10 properties each? I wanted to int...
asked by 05.07.2016 / 21:37
0
answers

problem in ajaxSucess

Hello, I'm having a hard time running a script after a call in ajax. What have I done so far? Well, I'll explain: I have a button with 2 actions, however, I need one action to occur before the other, the two are not together . > I h...
asked by 20.04.2016 / 20:53
0
answers

AngularJS validation does not work very well

I have a form that is shown within a modal, used by the Bootstrap framework, and because of this, angle validation does not work right. Only a few fields are validated and still random. For example, I have three fields in this form: FirstName...
asked by 15.06.2015 / 16:25
1
answer

Decrease page size for printing

I made a function that printed a div for me, but it needs to be printed on the toner size. This is the code: $('#imprimirComprov').click(function () { var conteudo = document.getElementById('imprimir').innerHTML, tela_impressao...
asked by 03.06.2017 / 22:19
1
answer

Detect id of a DOM element?

I'm developing an application in VueJS / Quasar and need to find the id of a given element using getElementById , how do I do this in VueJS ??     
asked by 30.08.2017 / 19:15