Questions tagged as 'javascript'

1
answer

User with browser cookies disabled

I have a system and I use cookies to temporarily save an information, but I noticed a problem with a certain user and when trying to solve the problem, I noticed that it had cookies disabled (do not ask me why). I cook the cookies in a conven...
asked by 01.08.2018 / 16:51
1
answer

Why does ajax not work?

I have a code that does what I want, but refreshes the page. I have tried in many ways to use ajax to send the data to the database, but it still does not work, and I have 3 questions about ajax: 1 - Is it possible to create a $_SESSION...
asked by 31.07.2018 / 16:03
1
answer

In jquery write a different link in a href

I have this HTML snippet that is called on some screens when needed (clicking it opens an iframe inside the HTML): <a href="#" class="tour-360" id="tour-360-{{unit.hash}}" data-toggle="modal" data-target="#modal-tour-360"> <h3 cla...
asked by 04.10.2018 / 16:52
1
answer

Problem with routerLink in angle 6

I'm having the following error: Can't bind to 'routerLink' since it isn't a known property of 'a'. (" <h6 class="text-center"> Do not have an account yet? <a [ERROR ->][routerLink]="['/signup']">...
asked by 26.09.2018 / 00:50
2
answers

Random videos background

How could I do that, with each access to the site, a different video appeared? I understand that there are codes that alter the background with images as below: <script type="text/javascript"> window.onload = function(){ var imgr = M...
asked by 17.07.2018 / 12:03
1
answer

Focus on HTML elements with javascript

I have the following code. This code contains 5 divs where when clicking on each one, the one that was clicked receives a value of background.I want that after clicking on one of them, on the next click, the one that was clicked loses the beckgr...
asked by 18.07.2018 / 19:51
1
answer

Validate password strength on front-end [duplicate]

Good evening guys, I need to validate the password that will be typed in the input simultaneous to the typing of this, ie, need to validate with javascritp. I have 3 Divs and texts that must have their color changed as the password specific...
asked by 23.07.2018 / 02:25
1
answer

jQuery function to select values in divs and play to an array

I'm getting the values of several <div> s with the same class name and trying to play to an array in jQuery, but as I'm starting in the language I'm not getting it, I already searched the internet and nothing I found gave me a solut...
asked by 23.07.2018 / 04:04
1
answer

Image Upload in Blob Format

Good morning! I'm trying to send Blob binary data through Ajax to upload via PHP. index.html: document.getElementById("btnSave").addEventListener("click", event => { canvas.toBlob(function(blob){ var reader...
asked by 23.07.2018 / 19:39
1
answer

JS Duplicating When Sending Record

I have an application with Modal bootstrap, but when sending the data with the button it duplicates the event, it follows the js with the duplication. $(document).on('click', '.form-delete', function(e){ e.preventDefault(); var $form=$...
asked by 24.07.2018 / 15:45