Questions tagged as 'javascript'

1
answer

Custom Bookmark in Google Maps

How do I incorporate the Google map but with the custom marker? Do you have any public Google Maps API (which does not require an access key)? Currently I need to include "all" API, just to perform the operation (previously) get a latitude, long...
asked by 07.04.2015 / 14:38
1
answer

Detect the exchange of an image

Personal I have an img tag that has a button that loads several images for the person to choose, so he chooses the src of this tag is changed. I need to detect when this src change occurs and display an alert. I tried with the onchange but it di...
asked by 06.04.2015 / 21:30
1
answer

getElementById returning null if it declares the script inside the head [duplicate]

I would like to know why when I make a console.log in my main.js, it returns null in the console, although, when I declare <script>main.js</script> inside the body, it returns the value of the id I'm looking for. Foll...
asked by 29.12.2018 / 00:03
1
answer

How to record RTSP stream

I am using the package node-rtsp-stream more Websocket to make the transmission of my IP-Camera, and the visualization happens well, now I would like to know how to record this transmission and I have no idea how to do this. index.js o...
asked by 01.01.2019 / 16:05
1
answer

Using model.find () with LIKE in mongoose

I have a function here to search MongoDB using mongoose, but I would like it to find Brazil when I search for bra, Bra, Sil, sil, etc. I looked at the documentation and followed the example but it did not work, it does not return anything. Here...
asked by 03.01.2019 / 19:40
1
answer

Return on failure to submit

I have a submit, which before I perform this function: $('#modelEditar').submit(function (e) { var cancelada = $("#Cancelada").val(); if (cancelada == "False") { e.preventDefault(); var id = document.getElementById("nfseid").value;...
asked by 04.01.2019 / 12:32
1
answer

How to invoke bootbox.js after burning data in BD

How can I display a message box using bootbox.js after writing to the database by redirecting the user? I ran a test with the following script, but I did not succeed. if($execCurso){ ?> <script> $(documen...
asked by 08.04.2014 / 14:10
1
answer

How to concatenate RadioButtons values in Razor / HTML?

I have a question and it's kind of hard to find a practical way to solve it. I created a groupbox with 10 radiobuttons . I would like to know the best practice so that when the user marks one of them I store this value in a varia...
asked by 03.04.2014 / 00:41
1
answer

Function does not remove array elements

Within PHP I add two arrays and then I add them to a variable of a print with JS. <?php $objp = array(); $objs = array(); print("<SCRIPT language=javascript> objp = \"$objp\"; objs = \"$obj...
asked by 10.10.2014 / 16:30
1
answer

Pass parameters to modal bootstrap via javascript

I have a system that has a web version, you can see it here: All in Your Hands . In it you will notice that there is a carousel for displaying more accessed content and in this carusel js used to open a modal bootstrap in the case of some conte...
asked by 08.10.2014 / 17:04