Questions tagged as 'javascript'

1
answer

Check start and end date and insert text between them!

Good morning, I have a "ready" code where the user must register an event that will later be shown in a calendar, well the first part is ready and the second is giving me problems, I would like to do a check of the start date and end date and en...
asked by 16.06.2016 / 14:53
1
answer

Several "Divs" within a foreach

I want an "imdb" star ranking system, but the element only appears once inside the cycle. Script: <script> $(document).ready(function () { $(function () { $("#rateYo").rateYo({ onChange: functi...
asked by 12.05.2016 / 17:12
2
answers

Applying JS to Validate Input with OnBlur

Hello, I have the following script: <script> function TestaCPF(strCPF) { var Soma; var Resto; Soma = 0; if (strCPF == "00000000000") return false; for (i=1; i<=9; i++) Soma = Soma + parseInt(strCPF.substring(i-...
asked by 15.06.2016 / 23:24
1
answer

When Javascript takes src from an image returns absolute path

I have the following HTML5 (only relevant): <html> <head> <meta charset="UTF-8"/> <title>Test</title> </head> <body> <div id="layout"> <main> <section>...
asked by 16.06.2016 / 03:25
1
answer

Hide menu by clicking outside and leaving in js

How to hide ul by clicking off the menu or hovering the mouse off the menu? I tried but I did not succeed. function aperfil(opthard){ if(document.getElementById(opthard).style.display== "none"){ document.getElementById(opthard).styl...
asked by 05.02.2016 / 14:55
3
answers

Javascript Change css when in certain div

I have a white logo on my website and a white menu, and my contact div has the white background, so they disappear. I want to know how to make a script that will change the logo and menu css when in this div.     
asked by 04.02.2016 / 19:06
1
answer

Pass text from a textbox via onclick parameter

I need to pass as parameter the content that is in textbox , in onclick of a button. How can I do this? This is the Html code: <div id="popup"> <table width="300" height="160"> <tr> <td colspan...
asked by 04.02.2016 / 17:59
1
answer

Keep the chat conversation divs when you change pages

Good community. I have a chat system, like fb. I am using js, ajax and php. All right up here. It works. The only problem now is that I wanted to save the current chat divs when changing pages. How can I do this?     
asked by 04.02.2016 / 22:22
2
answers

Change the value of a global variable within a mongoDB function? [closed]

How can I change, for example, the value of MyVar within the collection.insert function? Thank you! ;)     
asked by 02.04.2016 / 18:42
1
answer

Showing and hiding input

I have a button, when I click on it I want a field of type input , in that field, when I add some text I want it to go to the database, with a ALTER table . How do input appear and how do I get rid of it?     
asked by 30.03.2016 / 23:44