Questions tagged as 'javascript'

1
answer

How to use a global variable counter? [duplicate]

Click to test! My goal is for the count variable to get the value that will accumulate in the arrayVec1 function, but instead I always get the result 0. Can anyone tell me how I can pass the value out of the function and assign it to the...
asked by 26.05.2015 / 21:44
1
answer

Replace URL in an embed tag

I have a <embed> tag in my HTML: <embed class="flash" src="http://example.com/swf/10/nome.swf"> I wanted to find a way to change the address to http://example.com/swf/5/nome.swf . Ignoring flashvars, how can I do...
asked by 06.04.2015 / 19:11
1
answer

How to transfer items between ListBox with Double Click

I would like to know how I can transfer items between two ListBoxes, I want the user to double click on an item to be transferred from one listbox to another. I did not find any events in my double-click Asp-ListBox. In the link below you...
asked by 31.03.2015 / 19:29
1
answer

listenTo does not hear its respective trigger

I have several other listenTo that respond correctly to your trigger, but that below is not responding, I tried anyway to make it respond, but all attempts were unsuccessful. addFotoPrincipal: function(){ app.vent.trigger('fotoPrin...
asked by 31.03.2015 / 15:23
1
answer

Center Text block vertically according to the size of the div beside

My partners, I'm losing my hair with this problem I'm facing. I have some pages made with bootsptrap, in which each container has a row and has two columns (each with the following classes: col-xs-12 col-sm-12 col-md-6 col- lg-6), in this the...
asked by 31.03.2015 / 02:57
1
answer

How to pass JSON array as a parameter and access its objects in another function?

Hello, I'm having trouble accessing the objects in an array of json that is passed as a parameter between two-class functions. In the functions that get the array of json, the corresponding variables are like " undefined ". I have three files...
asked by 22.03.2015 / 23:49
1
answer

Problems to delete a "circle" object that is on google-maps

I'm having trouble deleting circle-like objects (API google-maps) being shown on my map. I have a function that receives JSON data and creates a global array ( arrayElements ) containing objects ( element ) that have: JSON information and an...
asked by 25.03.2015 / 01:51
1
answer

Uncaught InvalidStateError: Failed to execute 'send' on 'WebSocket'

  Uncaught InvalidStateError: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state. (index): 29 (anonymous function) Code: function smConnect() { ws = new WebSocket('ws://127.0.0.1:1805/'); delete ws.URL; ws.onop...
asked by 19.03.2015 / 23:54
1
answer

Infinite Loop. How to stop the Loop in a certain situation?

I've implemented the code below, it runs the page every X Seconds, but it never stops, it gets in an infinite loop. I would like to make the code stop running when: if (track_click >= total_pages - 1) {} But I do not know what...
asked by 18.03.2015 / 22:09
1
answer

Break div when content exceeds maximum size

My style css to a div, like an A4 page .pagina { width: 210mm; min-height: 297mm; max-height: 297mm; padding: 30mm 20mm 20mm 30mm; margin: 10mm auto; border-radius: 5px; background: white; box-shadow: 0 0 0.5cm...
asked by 13.03.2015 / 16:55