Questions tagged as 'javascript'

1
answer

How to pass parameters dynamically to Rails?

I have a rather complex problem to the extreme. I need to somehow pass parameters dynamically to the params via javascript, to show / hide some fields in a report on user's request. Below is a screen representation: I have a form where th...
asked by 30.10.2014 / 12:31
1
answer

How to construct Array of Objects

I'm trying to build an Array of Objects in JavaScript, but the result is not as expected. This is how I would like it to be: Butthat'showit'sstaying: This is the code I'm using: var wo = new Array(); while ( listItemEnumerator.moveNext() )...
asked by 30.07.2014 / 13:57
2
answers

Request ajax accessing scripts already included

Hey guys, I have a view that renders a partial view. Index.cshtml <script type="text/javascript" src="~/Scripts/jquery-2.1.1.js"></script> <div class="tab-control" data-role="tab-control"> <ul class="t...
asked by 30.07.2014 / 23:03
2
answers

Format Date in javascript for "from here to Xd Yh zm"

Friends, I am trying to format a date in javascript to stay in the following format: In x days, and Hours, Z minutes. But my code is not working properly: dt = dados[i].Hora - dataAtual; // o valor está em segundos todos_min = Math.roun...
asked by 30.07.2014 / 15:15
1
answer

Uncaught ReferenceError: CKEDITOR is not defined

I'm using CKEditor so the user can fill in some text. On the Home page of the site I was looking at DevTools from Chrome and found the error.    Uncaught ReferenceError: CKEDITOR is not defined - jquery.js: 5     
asked by 09.09.2014 / 18:12
1
answer

Error Javascript function [closed]

Can anyone tell me what I'm missing from this js function? alert("Insira o numero a ser pesquisado"); var num = prompt("Insira um numero: "); var array = [2,23,4,56,7]; function pesquisa(array[], num){...
asked by 09.09.2014 / 17:32
3
answers

Mouseover effect with jQuery

I'm jquery in jquery and need to create a simple way to detect mouseenter, or hover elements with a same class. I created a menu with four buttons, all with the same class, so I put the mouse over one of them giving an APPEND with a variable...
asked by 16.07.2014 / 22:43
1
answer

How to return data from an event by Graph API

I'm starting to test integrations with Facebook on my site and trying to return information from an event using the code in API Documentation I get the following error: code: 104 message: "An access token is required to request this res...
asked by 12.07.2014 / 20:03
4
answers

Click event only works the first time

I've tried to find it elsewhere, but I did not find a solution that worked for me. The site is this: link These 3 squares at the top are places for the photos of the services provided to the last 3 clients (shown in slideshow). When I cl...
asked by 14.08.2014 / 17:00
1
answer

Carousel or Cycle displaying 6 elements in grid format

In the HTML code below, I have a listing of images within a container . I'd like to limit the display of these images to a table of 2 rows and 3 columns and page to look better. <div class="container"> <a href="#"><img...
asked by 13.08.2014 / 17:05