Questions tagged as 'javascript'

2
answers

How to make an animate up to the mouse position and after starting to follow the mouse?

I have the following code $(document).ready(function(){ var LeftInicial = $('.MarcadorMenu').css('left'); var WidthInicial = $('.MarcadorMenu').css('width'); $('.CorpoMenuHead').hover(function(){ $('.CorpoMenuHead').bind('m...
asked by 12.05.2014 / 16:27
1
answer

JAVASCRIPT ARRAY (map and reduce)

How's personal? I have this array here: [ {dia:2,turno: turno1,M:1,T:0,N:0}, {dia:2,turno: turno2,M:0,T:2,N:0}, {dia:2,turno: turno3,M:0,T:0,N:1}, {dia:3,turno: turno1,M:122,T:0,N:0}, {dia:3,turno: turno2,M:0,T:21,N:0}, {dia:3,...
asked by 17.12.2018 / 07:19
1
answer

Date is coming in wrong format

In a jquery function, I get a date in my View. It turns out the date is coming like this: /Date(1402369200000)/ I know I need to cast or something, but I do not know how. Can someone give me a help? My controller: [HttpPost] publi...
asked by 16.06.2014 / 16:29
1
answer

Block site seen from horizontal

I'd like to know how I can block my site when viewed horizontally by mobile phone, when it can only be handled vertically. It can be in JavaScript or PHP, but this should only happen with a mobile device. NOTE: When I say block, I want to...
asked by 01.03.2016 / 10:30
2
answers

What javascript function do I use to extract an HTML block from one place and insert it into another one on the same page

Next I'm working on moodle and 90% of the html is generated via backend, I need to change a <h1 id='courseheader')>Title</h1> of place via javascript since I do not have access to this element, the idea was to remove it...
asked by 10.03.2016 / 14:17
2
answers

Doubts Date with PHP and JS

I do not know anything about JS and would like to know if I have edit a field whose value came from the database using javascript? Because I saved the date of birth and the phone number of a client on the bank, and at the time of registration I...
asked by 03.03.2016 / 06:30
1
answer

Send integer as string in a JSON

I have a problem returning a very large integer value in JSON type: {“matricula”: 201737909200976697} What happens is that in return is bringing 201737909200976700. This occurs with any large integer like this one with 18 digits, so I wa...
asked by 08.11.2018 / 13:02
2
answers

How to put css style with javascript looking for classes

Goal and get invisible text with css visibility: hidden; e effect through javaScript I want to pass a function that when I push a button all classes with visibility: hidden are visible .. did you understand? I have the following...
asked by 11.08.2018 / 20:25
2
answers

Save PDF Form - Bootstrap

I would like to save the PDF form or print but keep the layout displayed on the screen. Example: <!doctype html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> &l...
asked by 06.08.2018 / 17:21
1
answer

Avoid actually image caching, do not just change the name of the src

I have an image that loads multiple times, each time with a content that will not be reused. for this problem, I found several answers suggesting something var d = new Date(); buff.src="carrega.php?ver="+d.getTime(); Or with random number....
asked by 28.12.2018 / 22:15