Questions tagged as 'javascript'

3
answers

How to create link with scroll to page destination

Hello, I would like to know how I can link to my video page that scrolls the page down, but this page does not contain any ids to use in the mode: <a href="linkdapagina#localdesejado"> . Is there another way? For example, does this l...
asked by 01.11.2017 / 19:00
1
answer

Get click element (this) in method

I am refactoring a SPA using MVC with classes and etc ... I made a method that is called when I click on a <i> element and would like to get that element to later delete a relative of it (a <tr> two levels above)....
asked by 01.11.2017 / 12:39
2
answers

Define key of the object by a variable

I have the following object Perfil1 ["Souza", "4", "3"] Perfil2 ["Pedro", "2", "1"] Perfil3 ["Lucas", "5", "8"] and a for going from 1 to 10 How do I change the profile number of each key according to the number of for I tried to do t...
asked by 09.11.2017 / 12:59
1
answer

How to make element minimized or hidden in site?

What is the name so I can search as it does, of those items in html that appear minimized on the page. for example: In an html site in your home on the right side near the window bar has a cropped image that when you click on it it slides to...
asked by 08.11.2017 / 19:15
3
answers

Event onclik button in dynamic html table StringBuilder

Good afternoon personal forum, I'm trying to add a button in a dynamic html table to redirect to another page passing parameter by url. But I'm not getting via javascript. I am using ASP.NET C # WebForms. I have the following function to write v...
asked by 20.09.2017 / 20:49
2
answers

take value from a JS variable and put in the input value

I need to put the result of this javascript in the input value for php to identify the variable. var mydate=new Date() var year=mydate.getYear() if (year<2000) year += (year < 1900) ? 1900 : 0 var day=mydate.getDay() var month=mydate.get...
asked by 21.09.2017 / 08:02
1
answer

Questions with Dynamic Checkbox with required or not

Hello, I've tried everything with javascript, from tutorials I found on the internet, but nothing helps me, I think it's because my form is dynamic, that is, the user who registers the questions and alternatives. In this case, this code takes tw...
asked by 22.09.2017 / 19:42
1
answer

Multiple simultaneous replaces with javascript [closed]

How can I do multiple simultaneous replicates without having to do one by one? Example: I have a formula, in a string format, whose image follows immediately. IhavealreadycalculatedallthesevaluesandIhavetoreplacethesecalculatedvaluesinUSE...
asked by 20.09.2017 / 16:34
1
answer

What does JavaScript take as default?

Example, I have window.location.href , location.href , document.location.href This second case, what will JavaScript default to? o Window? Default I say, I can use both the window and the document, so since I do not add any...
asked by 09.10.2017 / 15:09
2
answers

Send value to javascript function

Hello I'm trying to send a value to a function by clicking the button, what could be wrong? echo"<button id=".$nome." onclick='produtoComprado(/'".$detalhes."/')'>".$nome."</button>"; Thank you     
asked by 08.10.2017 / 17:25