Questions tagged as 'javascript'

2
answers

Get value in an iframe via Javascript

I have code that is in an external file and need to load it via Javascript, however I do not know how to do it. I already tried it in several ways, and apparently it would be better with an iframe, but not that. The idea was to use the load () f...
asked by 29.03.2015 / 20:01
1
answer

Check number of clicks on buttons

I have a script with functions to control what each button an application does. I declare a global variable so that when all the buttons are clicked, two actions are triggered: hide one div and show another. //variável global var completo = 0...
asked by 19.02.2015 / 00:45
1
answer

Submit form and update div content

I have two select option with districts and counties. Through JSON I can filter the districts with the councils only now I want to do the search the database. I want to submit form with the two choices and update the div tha...
asked by 18.02.2015 / 23:00
1
answer

Two selects with the same script

I have a select that uses a script to populate the cities field, through the selected state. The problem is that I need to add another select and when I add, only one select works. <script src="http://cidades-estados-js.googlecode.com...
asked by 23.02.2015 / 19:22
1
answer

How to get the url from the parent page of an iframe without being in the same domain?

I researched postMessage, but I only found examples of iframe resizing. I would like to know if there is any way to get the URL of the main page where my iframe is inserted using this or some other method.     
asked by 05.02.2015 / 14:07
1
answer

Plugin to sort images in an array

I'm looking for a javascript or jQuery plugin that allows me to have a table of images (for example, 6 x 6) and through drag 'n' drop or just clicks, allow me to reposition between them. I've already looked through all the search terms that I re...
asked by 07.02.2015 / 23:55
1
answer

What is the difference between "~ /" and "../" for directory browsing?

I saw this somewhere, wanted to know the difference.     
asked by 06.02.2015 / 02:30
1
answer

$ .getJSON Google Images displaying incorrect results

Based on this code: function baixarCapa(capa, item) { $.getJSON("https://ajax.googleapis.com/ajax/services/search/images?callback=?", { q: '"' + capa + '"', v: '1.0' }, function(data) { var url = data.responseData.r...
asked by 05.02.2015 / 15:34
1
answer

Send the data from one table to another

And the following, I have an entity called Post where there is a post record and I have an entity called Machine. The objective is: Haveatableequaltowherewecreatedamachineandthebuttonswhereyouareviewingandeditinginsteadofthoseyouwillhavetoconver...
asked by 05.02.2015 / 18:30
1
answer

Position insert bar in editable jquery div

I'm using the summernote API as the editor for email, it creates a div to be used as textarea. The only reference that leaves is the "note-editable" class. I made a code to replace a word with a tag with content-editable false so that the user t...
asked by 03.02.2015 / 18:41