Questions tagged as 'javascript'

1
answer

Like and Share Button Counter Custom for Social Networks Twitter and Facebook

How to get the total number of likes and shares of a URL on the Twitter and Facebook platforms? There are a number of sites on the Internet where you usually see custom Facebook and Twitter custom buttons, with a custom count...
asked by 03.07.2015 / 10:04
1
answer

Get only styles declared in CSS for an element

I am trying to make a CSS converter for inline styles using only client-side technologies. Searching even found something, in the case is library (jquery.inlineStyler) and this is implementation , but it does not answer me how I would l...
asked by 08.06.2015 / 21:59
1
answer

JQuery how to monitor stock exchange?

I have a radio button: <input type="radio" value="1" id="monitor" style="display:none;"> Here I change the value of it, and would like an alarm to be triggered: $(function(){ $("#umItemQualquer").click(function(){...
asked by 08.06.2015 / 04:06
3
answers

Running my AngularJS application on some server

I have a front end application consuming an api rails, but I'm new to this idea of separating the front end from the back end, my api runs on localhost: 3000, and my front is simply a folder that I go there manually and open my html page, I want...
asked by 25.09.2015 / 14:02
2
answers

How to make an XMLHTTPRequest to send values to the page itself?

What I have: I created several buttons through PHP and to distinguish them I used the $botoes_criados variable. So I have the value of the $botoes_criados variable in PHP that is passed to a button as follows: echo("<li&g...
asked by 02.10.2015 / 10:58
2
answers

How to overtake XMLHttpRequest can not load?

This error appears to me. How to overcome it?    XMLHttpRequest can not load "url example". In 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. Code var url = "htt...
asked by 14.04.2015 / 11:48
1
answer

get the date in the fullcalendar select event

I would like to know how to get the value of data when doing the select of a day in fullcalendar select: function(start, end, allDay) { start = $.fullCalendar.formatDate(start, 'yyyy-MM-dd'); alert('Valor da data: ' +...
asked by 11.04.2015 / 20:57
1
answer

How to present the error coming from MySQL?

I made the code below, and it works perfectly, but if MySQL returns an error, how will I know? I have no idea, can anyone help me? The message should return in alert , however I was able to create alert of Sucesso , howe...
asked by 30.07.2015 / 03:21
4
answers

addClass and removeClass with Jquery

I'm trying to create a menu where the one div gets a class if it's clicked, however I'd like to remove the class from the last link clicked on the menu. <div id="bolinha-dentro"></div><a href="">Meu link</a> <div id=...
asked by 31.07.2015 / 14:20
2
answers

replace using regular expressions

I'm running a regular replace tag to format a string, such as the CPF: var cpf = '99999999999'; cpfFormatado = cpf.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/, '$1.$2.$3-$+'); console.log(cpfFormatado); // 999.999.999-99 I'm trying to reduce the...
asked by 26.03.2015 / 19:43