Questions tagged as 'javascript'

3
answers

Problem with window.open () JS

I have a table composed of 3 columns: link, status, action. In the action column, I have 2 links that will serve as "buttons": VIEW & TO DISCARD Thistablehasinaverage+100lines...IneedtheuserclickonVIEW,togetthevalueofthecolumn"Link" in th...
asked by 23.06.2015 / 20:50
2
answers

Fill div with ajax result

I have an ajax request with the following code: <script type="text/javascript"> function AddVoto() { $.ajax({ type: "POST", url: "{{url('votos/adicionar/')}}/{{{$postagem->id_postagem}}}",...
asked by 24.06.2015 / 16:02
2
answers

Javascript Chat does not return function

I learned that Firebase is an API that helps to create real-time apps , but following a little I know about JS, I tried to create a chat. I did not understand exactly why I could not return a message. Below I leave the study code: <!DO...
asked by 29.08.2014 / 15:51
2
answers

Questions about licenses

Are all programs made in "such" programming language free to market? and in relation to C # and javascript?     
asked by 29.07.2014 / 04:47
2
answers

Two actions in the same form

Hello! I need to have two actions in the same form. I researched some solutions and did the following: <form id="formnewsletter" name="formnewsletter" method="POST"> <input type="text" name="nome" id="nome" /> <input type...
asked by 22.08.2014 / 21:00
1
answer

Check if an element exists with switch

Hello, how do I do a check and check if a given element exists using switch?  To be more specific, I'm trying to use this code: var forumversion = function() { invision = jQuery('#ipbwrapper').length ? "invision" : "error"; phpbb2 =...
asked by 18.04.2014 / 00:08
2
answers

How to do redirect using AngularJs

I'm using angularjs , and need to redirect to another page inside my controller. How do I do this? Here is the code for my controller: meuController.controller('Controller', function ($scope) { $scope.save = function(){ $scope....
asked by 31.03.2014 / 17:34
2
answers

Add a value to a JSON object

How can I add a string of values to a JSON object? For example: var a = 12; var b = 3; var obj = { c: 11, d:22 } console.log(obj); How can I apply to and b within my obj variable to become part of this JSON object?     
asked by 04.05.2016 / 20:45
1
answer

How to use ajax to do select where

I need to bring information from the database to a modal , when I click on the button it should open the modal and bring the infos , the id of the registry can be written in tag or in any other way? But basically this is...
asked by 28.04.2016 / 00:48
1
answer

Response to preflight request does not pass access control check

When I try to give a GET on a link here on my server that is not in host location this message happens:    XMLHttpRequest can not load    link . Response to preflight request does not pass access control check: No   'Access-Control-Allow-Orig...
asked by 02.05.2016 / 15:06