Questions tagged as 'javascript'

3
answers

Error 'Access-Control-Allow-Origin'

Hello everyone, how are you? Well I'm doing a course work and at the time of receiving the api data this gives the following error:    Failed to load link : Redirect from ' link 'to' link 'has been blocked by CORS policy: No' Access-Contr...
asked by 08.11.2018 / 00:49
1
answer

Execute a method in an HTML element without using the click event

Good night, I have a radio button on a form, where it is only called when it meets the condition of an * ngIf, however, when ngIf is accepted and this element is called, I need a method to execute without you need to click any button. Here are m...
asked by 15.11.2018 / 21:54
1
answer

Select checbox automatically

I've created a calendar for meal bookings. The date and types of meals are being saved in the same column as the database table. When I put the amount of meals automatically select the checkbox for this type of meals, as shown in the image: Now...
asked by 16.11.2018 / 12:59
3
answers

How to make the first two numbers of a Math.random sequence are not EQUAL

I made a lottery system in order to learn, I will not post the whole code here just the part that I am packed. It is as follows: The draw of the PC is a sequence of 6 numbers that I present in the DOM (it does not matter), so I want the first...
asked by 05.10.2014 / 07:02
0
answers

Check element and replace - repeat JS

var test = new Array(); test["102-1"] = new Array("102-1", "Elemento"); $(document).ready(function () { $("a[name='" + test["102-1"][0] + "']").attr({ "data-original-title":test["102-1"][1] }); }); This code checks the page...
asked by 27.11.2018 / 18:51
0
answers

Calendar in JS and HTML

My goal is through the code below, creating a calendar acts, but it is giving me error and I am not able to create the table well, because except what I already have in HTML, nothing else appears. <html lang="pt"> <html> <...
asked by 15.11.2018 / 03:14
0
answers

Lock timePicker button

<?php include('ligabd.php'); session_start(); if(isset($_SESSION["id_cliente"])){ }else{ header("location:login.php", true, 301 ); } $successMsg=''; $consulta = 'SELECT * FROM marcacoes'; if (isset($_POST['send'])) {...
asked by 15.11.2018 / 11:09
0
answers

Switchery component does not work in a PartialView - Asp.Net MVC

I'm having problems with the data-plugin switchery (Remark bootstrap component) that does not want to work in partialviews. The interesting thing is that if it stays inside a normal view, it works perfectly, but when placed inside a modal window...
asked by 15.11.2018 / 14:38
1
answer

Automatically check date checkbox

I have 3 checkbox and 2 inputs . The second checkbox is parent() of input type number and the third checkbox is parent() of input type number : $calendar .= "<td bgcolor='$color' data-se...
asked by 15.11.2018 / 11:32
0
answers

A * - Jquery + Javascript

I'm doing a pathfinding test in jquery with JS, and gave a strong wrap. I looked for several places, but I can not reason how to start reading the "neighbors" to make a line between the "Origin" (square where the user clicks) and the destinati...
asked by 13.11.2018 / 15:14