Questions tagged as 'javascript'

2
answers

Button to copy page html

I need to provide a button where users will just click and copy all the code that was used to develop that page. I saw many similar questions, but none could solve my problem. It would be basically so, imagine that the example code below corr...
asked by 05.02.2018 / 13:22
1
answer

Is it possible for latitude and longitude to know the direction?

Please forgive me if the question is not right! It will be possible by the latitude, longitude coordinate to know the direction of the vehicle example if it is north or south or east or west example with php or javascript!     
asked by 29.12.2017 / 02:13
2
answers

Draw a circle on an image with JavaScript

I have an image and when I click on this image, I want to circle the location where I clicked. I also need to get the position to save to the bank later, because when I open the image again, I need to draw the circle again in the same positio...
asked by 24.11.2017 / 05:35
2
answers

Button to open / close content

Hello, I'm new here and also with programming ... I have several divs with different contents and are hidden, I would like that when I click on a button continue reading it closes and displays the contents of a certain div and other divs is hidd...
asked by 13.11.2017 / 04:38
1
answer

Script only number

I have a script that only allows typing numbers into input however when I type a phone number and saved in the database. The number is saved all scrambled. Example: I type in input 27998439197 and in the database it saves as 214...
asked by 27.11.2017 / 13:50
4
answers

message: "div is not defined"

I have a function to hide a div and open the data with a href. It works in another form normally, but it does not work in this form that I need that works, it returns me the following error:    message: "div is not defined" Follow the fun...
asked by 21.12.2017 / 14:07
5
answers

How to draw readonly from input

I'm trying to make clicking button btnEditar free inputs : funcionário , rca and regiao ... I used this script but it did not work: <script language='JavaScript'> $('document').on('click','#btnEdi...
asked by 29.11.2017 / 11:17
3
answers

How to return an object using the object name as a function parameter?

Good evening! Can someone tell me how I can return the object using an invocation of type: book (book1); function book(bookName) { var obj = { livro1: { quantidadePaginas: 300, autor: "Jorge",...
asked by 01.11.2017 / 02:53
1
answer

Input problem with validation

I have a form in php where I have some fields (input) and a submit button to send. One of the inputs I make the check in javascript if it has or does not equal link, if it has equal link it should not let the save button. But when I click the su...
asked by 15.09.2016 / 13:56
4
answers

How to display a JavaScript message in an ASP.NET MVC view?

I have this code: @if (!string.IsNullOrWhiteSpace (Model.ErrorMessage)) {      <Script>          $ ("#ModalError').modal.('show.');      </Script>      Response.Write("<script>alert('Olá');</script>");      HttpContex...
asked by 15.09.2016 / 20:20