Questions tagged as 'javascript'

1
answer

Execute inline JS within the return of an AJAX

I have a hotsite that works in AJAX and friendly urls (more specifically with PJAX ). Where the top and footer are fixed, and only the content is injected into the page. The problem is that right now, I can not perform the inline javascript...
asked by 29.08.2014 / 07:31
2
answers

How to get the text of a radio button?

In my code I check the selected radio and would like to get the radio text field as well. How should I do it?! No while it mounts the radius according to the values found in the table and shows the name of the fields found. <? while(...
asked by 02.09.2014 / 19:39
1
answer

Wrong width in chart div

I'm trying to make an effect of when I choose an option in the select, I show the corresponding div with highchart . You have 2 problems: 1- The width of the chart is not completing the width of the div correctly. 2- I can not think...
asked by 26.04.2014 / 15:32
1
answer

Draw a polygon freely using the fabric.js

I'm using this code to try to draw a polygon freely: link canvas.on('mouse:move', function (options) { if (lines[0] !== null && drawingObject.type == "roof") { setStartingPoint(options); lines[lineCoun...
asked by 24.04.2014 / 00:13
2
answers

How to know that the file has reached the end with FileReader ()?

I am making a system that when the file has just been read opens the next file, the files are MP3 and wanted to play a sequence of songs whenever one is finished. How to do this with FileReader ()? I tried reader.onloadend = (function() {}...
asked by 12.06.2014 / 07:50
1
answer

JqGrid: Frozen column

I would like to know if someone has already placed a frozen: true column with cellEdit: true , I checked the doc that there is a restriction of it. Does anyone know of any way to do the frozen being the column editable? (forc...
asked by 07.04.2014 / 21:14
1
answer

Converting a .NET algorithm to JS

Friends, I have a small problem in 'converting' an algorithm. In the algorithm in .net I have the following conditional structure: if (')' == caracter){ String item = pilha.Pop().ToString(); while (!item.Equals("(")){ re...
asked by 05.12.2014 / 14:53
1
answer

Working with javascript environments using Grunt

I have a very bad problem in my web projects, I do not work with environments, I wanted my application to have different configuration types according to the environment, for example: in the DEV environment my application accesses a server and i...
asked by 11.09.2014 / 02:15
1
answer

How to make a script run only once?

I'm using Asp.net MVC In my layout I have a menu div I have the container div where my @RenderBody() is And below I have a script that rendeniza my menu: $(document).ready(function (e) { $(".Menu").each(function (index...
asked by 03.09.2014 / 16:00
1
answer

OpenLayers | CloudPopUp

I'm trying to make a popup using OpenLayers (more specifically using Ol4JSF) but the part of adding the popup uses the direct jscript, and the popup comes out all bugada. What is the reason? Codeused:<m:script>varlonLat=newOpenLayers.L...
asked by 07.02.2014 / 14:25