Questions tagged as 'javascript'

2
answers

Undefined when accessing class attributes in NodeJS

Good afternoon guys, I was developing an api with node and mongo using express and mongoose and tried to implement the pattern repository, but when accessing the attributes of a class it returns an undefined message that I do not know the reason...
asked by 13.02.2018 / 17:59
1
answer

Update sweetalert 1.x for sweetalert 2 + javascript promises

When updating the library SweetAlert it stopped working, debugging the error saw that it had many modifications that made version 1.x incompatible with the new version, so I would like help transcribing my deletarRegistro() function....
asked by 13.02.2018 / 18:04
1
answer

Slide load at run time

I have a site with lots of images, so the first time the user opens the site it takes a long time to load because first load the images that are at the top of the site and then load the rest of the page. I wanted to know how to leave my structur...
asked by 10.02.2018 / 20:33
1
answer

How to make a javascript code update the direct time of the server?

I'm using a javascript code that loads the speaker's picture according to the date and time it's on the air. I would like the code to change the images according to the time of MY SERVER and not the user's computer, so that the photos also displ...
asked by 11.02.2018 / 01:34
1
answer

Dynamic Selects

I wonder if you can create dynamic selects on a page, identical to the free market signup. Actually, I'm trying to create an integration exactly with their routine. I'm having difficulty with the categories. Depending on the type of the paren...
asked by 31.03.2018 / 04:03
2
answers

Header and html footer with css and jquery for all pages divided into sub folders

I'm having a problem to call my header and footer on all pages, because when I put sub-folders inside the project, it simply does not get any more and I tried everything but I can not solve it, the js (jquery) , header and footer and the index,...
asked by 31.03.2018 / 20:29
2
answers

Using Jquery on a PHP page is it possible?

I have a Login page, which has a form, which sends the data of two fields (username and password) to a PHP file that performs the verification. This php file uses a function already written to a class. In this function, if the result is true, a...
asked by 30.03.2018 / 21:42
1
answer

Send form without Ajax and without refreshing the page

When you want to submit a form without updating the page, if you think about Ajax, that is a practical way to do it. But would there be another way to do this without using Ajax? For example, I have the following form: <form name="form"...
asked by 08.02.2018 / 03:11
1
answer

Javascript, an id that was null (empty) can be returned?

I need to know if it is possible to return a id that was removed, because I want to get the same and remove the id="", and then click on a button / p> (Target) 1 • Click button and remove √ 2 • I click on another button...
asked by 07.02.2018 / 19:54
0
answers

How to suppress the compilation message of asm.js?

If we use asm.js some browsers issue a compilation message. This: Successfully compiled asm.js code (loaded from cache in 201ms) How do I prevent this message from being sent?     
asked by 08.02.2018 / 17:51