Questions tagged as 'javascript'

1
answer

Why does not the form validate the fields?

I am doing a validation of the registration screen so that it is reusable for the registration change screen, when registration is working correctly, however when it is the change it does not take /** * Funcao para verificar se é para...
asked by 05.11.2015 / 20:28
1
answer

From the View how to get Model in Partial View

In View main, Index.cshtml , I load a partial view where it has a model . How do I make the Index call this model so I can serialize and send it to an action controller ? Follow the example below: View Principal.cshtml @se...
asked by 05.11.2015 / 12:44
1
answer

How to use oninvalid in textarea [HTML5]

I wanted to know how to use oninvalid in the text area. <textarea type="text" pattern=".{1,255}" id="mensagem" name="mensagem" class="form-control no-resize" rows="6" placeholder="A mensagem" required maxlength="255" autofocus oninval...
asked by 03.11.2015 / 21:32
1
answer

Navbar is changed with scrolling

I'm trying to get my navbar to change when I scroll down. So far, I have the following HTML code: <nav class="navbar navbar-default navbar-fixed-top"> <div class="container"> <!-- Brand and toggle get grouped for bet...
asked by 04.11.2015 / 22:33
1
answer

verify if backend method is true and not client as well

I have a code that on my backend it returns true or false, I'm working with ruby and rails 5. So I have it's an if or so ja: <% if @order? %> <h2> teste 2 <h2> <%else> <h1>teste 1</h1> <%end>...
asked by 05.11.2015 / 18:06
2
answers

Open link in iframe after post PHP + JS [duplicate]

I asked another question here in the forum about another subject that helped me a lot about this however the link opens in a new page. What I would like is that by clicking on the submit it would open inside an iframe inside the page and if...
asked by 05.11.2015 / 16:57
1
answer

How to integrate a Java code with one in JavaScript?

//retorna o usuário logado no sistema public class ContextObject { public static Usuario getUsuario() { ContextObject contextObject = ContextFactory.getContextObject(); return contextObject.usuario; } } //mostra em...
asked by 05.11.2015 / 12:43
2
answers

Removing a tab-content and adding class active to content

I have a tablist on the page that is responsible for picking up some content through a function . When this function returns no value, the right thing is to give hide to this list and its content . Until then eve...
asked by 23.11.2015 / 14:51
2
answers

how to traverse all elements of a php vector with javascript

How can I go through all the elements of a php vector in javascript because my javascript only takes the last name but my 'var_dump ()' is all I can understand how can I do this can anyone help me? php code: foreach($_SESSION['carrinho'] as...
asked by 20.11.2015 / 22:42
1
answer

How to put variable within quotes in javascript? [duplicate]

I need to make this code work. But whenever I put the variable in place or inside the "" it does not work. //jvectormap data var visitorsData = { "US": 398, //USA "SA": 400, //Saudi Arabia "CA": 1000, //Canada "DE": 500, //Germany "FR": 760,...
asked by 21.11.2015 / 19:09