Questions tagged as 'javascript'

1
answer

Roll page after loading $ (document) with jQuery [duplicate]

How to automatically scroll the page gently to 400 pixels below the top when loading the page with jQuery with scrollTop (); ? <script> $(document).ready(function(){ // ROLAR A PAGINA }); </script>     
asked by 27.08.2018 / 07:04
0
answers

How to replicate multiple graphs in the chart library in a loop picking up the database?

I need to replicate several graphs showing the results of the database, however I would like to make dynamic without having to make a function for each bank information because there are many lines. JavaScript chart code: function radarArea...
asked by 27.08.2018 / 13:58
0
answers

How to access return of an EventEmitter object created from http.get

I have a service that performs a get on a given address. @Injectable({ providedIn: 'root' }) export class PersonService { private person: Observable<Person>; personBroadcast = new EventEmitter(); constructor(private http: HttpC...
asked by 27.08.2018 / 14:50
0
answers

SyntaxError: expected expression, got '' in AJAX call

Hello I'm having an error in an AJAX call in my JavaScript. For some reason, it does not get to the function in my Controller and gives the following error: SyntaxError: expected expression, got '. This function is called as soon as I cli...
asked by 29.08.2018 / 21:06
0
answers

Detect when Scrollbar is not at the bottom of the page

I'm creating a Chat without refresh that displays your results in reverse order leaving the current ones on the bottom and the old on the top. I already have the effect of moving the page to the end when a new comment is posted, but I need it...
asked by 08.09.2018 / 03:19
0
answers

Image for base 64 in javascript is not working

I need to convert an image to base 64 to send to the database, I believe the characters are not fit in my variable? My form: <form method="post" enctype="multipart/form-data"> <label id="labelfile" class="btn btn-primary wa...
asked by 24.08.2018 / 14:36
1
answer

Pass an id through a checkbox in Angular 5

I need to pass an id through a method on a form when my checkbox is checked. I tried several ways without any results. Below is the code                             {{event.name}}                <div class=" col-3 simple-...
asked by 24.08.2018 / 15:05
0
answers

How to do if not repeat the function for those who already reached a number

I make a call in the DB from the API to see the sales percentage data for a store's branches, and if the percentage is greater than or equal to 100% I should play a song and change its color to green. And I use the schedule ( link ) > to...
asked by 23.08.2018 / 17:34
0
answers

How to create a button in AlloyEditor?

I'm using alloyeditor and I have conveyed the following toolbar: toolbars: { add: { buttons: ['image', 'hline', 'table', 'camera'], }, styles: { selections: [{...
asked by 24.08.2018 / 16:38
1
answer

Website with horizontal scrolling

Well, I have to make a site like horizontal scroll with this , (the site I went through is just for example scrolling, not the effects) but I have no idea how to do it, I gave a good researched before asking the question here. As I know it i...
asked by 23.08.2018 / 16:49