Questions tagged as 'javascript'

2
answers

Script to make a div appear

I have a user registry in my application, when I click on register I wanted to display a message. This whole treatment I'm already doing and playing the message in my ViewBag.Message. How do I show this DIV by clicking the register button?     
asked by 11.08.2015 / 14:29
2
answers

How do I change the position on the map each time the user clicks a link?

I need to display a map and just below would have a list with multiple addresses and when clicking on each address would be marked in Google Maps the place. I have researched the net but found nothing that I could base.     
asked by 16.01.2015 / 01:52
2
answers

Turn string into number

I have a problem that for many is simple, I have a code that takes the value of a input of type hidden and when I get this value, I add +1, that is, if the value is 3 it add +1 and has to stay 4: var total = $("#total").attr('val...
asked by 06.03.2015 / 19:35
2
answers

How to use jQuery effect FadeIn and FadeOut in warnings to users

I have the script FadeIn: <!DOCTYPE html> <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script><script>$(document).ready(function(){$("button").cli...
asked by 04.02.2015 / 19:40
2
answers

Get width in pixels

I want to get the pixel value of an svg element that is set to%. I have the following example, but returns m the value 0. link     
asked by 07.04.2015 / 00:36
3
answers

What is the best way to convert Javascript entities to Javascript?

Through English OS searches, I learned how to decode and encode HTML entities as follows: var wm = (function(wm){ wm.encodeHTML = function (html) { var t = document.createElement('textarea'); t.innerHTML = html; ret...
asked by 06.02.2015 / 17:44
2
answers

From one table to another html table

I have two table in an HTML page that is as follows: One with my selected subjects. Another one with the list of disciplines to select. PS: I'm just studying, I'm not using a database or something. So the tables are in this style:...
asked by 07.04.2015 / 16:15
3
answers

Create element only on first mouseover

I'm making a website and have an image in it that activates a Javascript function through onmouseover using a function . One of these methods I used in Javascript adds a new tag in a span with an "X" id on which this image is...
asked by 23.03.2015 / 03:39
1
answer

How to open file in MS-Office with Javascript or PHP?

I have a website that works only on a local network, where I have several files stored on the web application server, and I'd like to somehow use PHP or Javascript to open it directly with MS-Office, from the client side. In this way I could...
asked by 25.05.2014 / 22:47
1
answer

javascript compression techniques and tips

I recently found another way to use true and false replacing them with ! and ! . I was thinking of other ways to compress the codes or make them more "secret" but I did not find anything on the internet talking about it, just giving links t...
asked by 12.06.2014 / 08:21