Questions tagged as 'javascript'

1
answer

How to convert an html page into Image and download IE and Safari?

I need to convert an HTML page to an image and download that image. I got it for Chrome and Firefox, but in IE it does not work at all in either version. In Safari 5 I could not download, clicking the link opens the image in the browser. Does...
asked by 25.02.2016 / 15:22
1
answer

Return object javascript

var Mensagem = function(opcoes){ var padrao = { titutlo: "", msg: "", lido: false } var config = $.extend(padrao, opcoes); this.prototype = config; } var msg = new Mensagem({ titulo:...
asked by 16.11.2015 / 01:17
2
answers

Load page and at the end click a button automatically

I would like to automatically click the fileToUpload button when loading the page, in the following code: <body> <form name="form5" id="form1" enctype="multipart/form-data" method="post" action="Upload.aspx"> <div>...
asked by 23.11.2015 / 19:21
1
answer

Condition to add and remove attributes of an element?

I have a map and I need every time I hover over the state to display pointer . I'm handling this by the hidden attribute of the image tag. HTML: <svg version="1.1" id="svg-map" xmlns="http://www.w3.org/2000/svg" xmlns...
asked by 19.11.2015 / 18:58
1
answer

how to implement jsPanel with jsf

I'm trying to render an xhtml page inside jsPanel, but just get the jsPanel empty. this is the javascript: function executeLoad(aUrl){ $.jsPanel({ load:{ url: aUrl }, selector: "#content", title: "com url", boo...
asked by 08.12.2015 / 14:32
1
answer

Return function Angularjs / Javascript

How do I retrieve the value of this function using this way: var teste = getUser(); function getUser() { userService.getUser(userService.getUserLogged().id).success( function(res) { return res.data; } ); }...
asked by 08.12.2015 / 12:29
1
answer

Download file via ashx

I need to do a Javascript method that calls an ashx (generic handler) that returns an array of bytes (a file). This file can be XML, TXT or PDF. Until then I solved the problem, but when the file does not exist, I'm redirected to another page, b...
asked by 02.12.2015 / 20:35
1
answer

How to apply slider effect in web page?

Looking at this page may notice that there are links like Home, Services, Work, About and Blog. When you click on Services it changes the page using a slider effect, as if the page is being changed from right to left, and so on the other links...
asked by 02.12.2015 / 20:05
1
answer

Using multiple Google Maps API instances

I need to draw a map several times and I have a function that loads the map and is the first one to be invoked when opening the page. Here is the body of the function: map = new google.maps.Map(document.getElementById('map'), { zoom: 8,...
asked by 02.12.2015 / 13:05
2
answers

Mask in html field does not work

Good afternoon, I have a page in my application to register clients, nothing out of the ordinary. In this page, I have some fields (cif, rg, phone, telephone_2, etc.) that when typing are formatted with javascript with the following functi...
asked by 22.01.2016 / 20:57