Questions tagged as 'javascript'

1
answer

How to pass data to a new line created by javascript

I'm creating a function to save a form directly to a table, the table rows contain an onclick function that takes the function in javascript function xpto() { if (linha == null) { var linha1 = document.getElementById("tabela").inse...
asked by 30.05.2016 / 23:32
1
answer

Use jquery.validate to validate image dimensions

I'd like to know how to use jquery validate to validate the dimensions of the image being uploaded. In my case, the image has to be 400px in height and width.     
asked by 25.07.2016 / 23:04
1
answer

Active section in div

How can I use the jquery trigger? I need the page to load and this first "li" is already pressed. <ul id="quote-popup-tabs"> <li data-quote-tab-for="consorcio-auto">Automóvel</li> &l...
asked by 25.07.2016 / 21:40
1
answer

Which Form FTP Access From XPG Via Javascript

Do you have access to my free account on the hosting server XPG, through Javascript? I wonder if it's possible to just connect to Javascript with an FTP server ( ftp://ftp.xpg.com.br ), to "Send" files.    I need some way to select the loc...
asked by 28.07.2016 / 02:36
1
answer

Add inline CSS in the image using Tiny MCE

I'm using Tiny MCE for the client to post on a website I'm developing. It works super good, the problem is that when you put an image in Tiny MCE, and change its size, it generates the following line: <img src="source/imagem.jpg?14641" al...
asked by 25.05.2016 / 13:51
1
answer

How to create an alert only in user-customizable javascript?

I have a TV site and would like to know if you have a user who wants to watch a program at a certain time scheduled by him, be warned that the program is about to start. I want to see "Done Done at 9:30 a.m.," then he programs to be alerted a...
asked by 24.05.2016 / 09:25
1
answer

Unexpected token: from a URL with .json extension

When trying to get a JSON via the URL: http://www.cidades.ibge.gov.br/gmap/shapes/35/MU_M13_3550308_1000.json I get a status 200 with error: Uncaught SyntaxError: Unexpected token : Using AJAX as follows: $(document...
asked by 25.05.2016 / 17:14
1
answer

Formatted text box (code sample)

I need to display information on the screen, but it needs to be displayed as a code (javascript, c #) formatted and colored (code sample), is there any jquery component or something like that? Example $('#ID').click(function (){ alert("He...
asked by 25.05.2016 / 15:18
1
answer

How to load the latitude and longitude pairs for a C # object and work them?

Good evening! I am developing a web page where the user can draw a route. I use google maps api. I need to get the latitude and longitude pairs from the route, load to a C # object and, after working latitude and longitude information, return th...
asked by 25.05.2016 / 23:11
1
answer

How to use the Youtube API?

I have a page with a video that opens in a modal, needs to be paused when the modal is hidden. I tested examples I found on other sites but it did not work. Do I need to add any extra files to use the API control?     
asked by 27.05.2016 / 17:40