Questions tagged as 'javascript'

1
answer

.position () giving error - JQuery

I'm getting the following error: Uncaught ReferenceError: position is not defined What's wrong with the code? $(document).ready(function () { $('.main_menu a').click(function () { var g = '.' + $(this).attr('href').replace('#'...
asked by 02.08.2017 / 01:49
2
answers

Windows POPUP, how to create? [closed]

How do I stop creating a POPUP window, other than the ones that open a page on the internet? I need one that looks like a DIV, a block from when they access the site it appears before the person logs in with some information ... With a close...
asked by 04.07.2017 / 14:39
1
answer

Get ip and user machine name [closed]

I need to get the ip and username of the user with javascript because it is a local html and css page and is shared with the users of the network.     
asked by 04.07.2017 / 18:01
1
answer

Drag image out of div using JQuery UI

I have a div with a list of photos using the BxSlider plugin and I'm also using JQuery UI to perform drag and drop. Now, what I need is a way to drag the image out of that div (photos), because when I try to drag it it goes inside the div its...
asked by 03.07.2017 / 13:33
2
answers

Post var javascript in PHP

I have this in head: <script> $(document).ready(function(){ $.getJSON("http://freegeoip.net/json/", function(data) { var country = data.country_name; var ip = data.ip; var w = Math.max(document.documentEle...
asked by 02.07.2017 / 21:25
1
answer

Apply style to table in javascript

I have a table <div class="container-fluid" style="margin-left: -29px; margin-right: -29px"> <!--Striped Rows--> <div class="row clearfix"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-...
asked by 03.07.2017 / 14:56
1
answer

Fill table column with Json Object (using Footable)

I'm testing a plugin to load a Json into a table, the footable, I was able to make it load the simple Json. But when I test a Json in which one of the columns is a Json object I can not see the fields of that object. Json below: [ {...
asked by 18.07.2017 / 03:33
1
answer

Error Closure on a variable in loop of outer scope

I'm developing an application where I get a list of companies and their location (latitude and longitude), so I have to plot all these locations in Google Maps , my problem and when trying to add a listner to capture the click in th...
asked by 31.07.2017 / 15:34
1
answer

Google maps: map does not render via call javascript / jQuery

I need to embed a map in my project. However, from the tutorial of the API itself, I could not make it work, until they discovered that the problem was Bootstrap, or Laravel - or both, together. That is, although I am not sure, but under test...
asked by 30.07.2017 / 15:20
1
answer

javascript, mouse position on an element

To know the position of the mouse in a elm.onmouseover(mouse) use element, but you can not use this if it is already on top of that element, and elm.onmousemove(mouse) , you would have to move the mouse, like get the mouse position...
asked by 30.07.2017 / 00:17