Questions tagged as 'javascript'

0
answers

Problems displaying data with Ajax

Hello. I'm having a hard time getting the user to click on a different button on my form to run an Ajax. If I put Ajax out of my $('button') it displays on the page perfectly, listing all the stores worked perfectly as I put it in the...
asked by 08.09.2017 / 17:17
3
answers

HTML link to open form without causing page refresh

I created a button on a form, but when clicking it refresh the index page where it is and do not want it, I do not want it to refresh the page, just want to open the popup with the form, how do I correct it? > a href="#" onclick="window.open('f...
asked by 05.09.2017 / 16:37
1
answer

Print document on the printer without user interaction

I need to print a document by sending directly to the printer without the user having to choose the printer. How do I do this with PHP5 or JavaScript ? I checked that with JavaScript has the option to do with window.pri...
asked by 05.09.2017 / 16:36
1
answer

Sending an Array by POST with JSON for PHP

Next, I need to send an array by POST with JSON. I have read about JSON.stringify and in my PHP code I use json_decode, but in practice I am not able to apply. I'll put the code here and change it more or less with the idea that I hope, even wro...
asked by 13.08.2017 / 23:49
0
answers

Step by Step with javascript [closed]

I would like to know how to do a Step-by-step in JavaScript. This is the Template that I need to go mounting a business card ... I need to mount a photo for a tomb ... My model     
asked by 14.08.2017 / 16:18
0
answers

Open Modal Code Behind

I have this modal and need to open it in the code-behind. I'm trying to JavaScript but it's not working, follow the code: $(document).ready(function () { //seleciona os elementos a com atributo name="modal" $('a[name=mod...
asked by 14.08.2017 / 17:38
1
answer

Add / Remove Inputs dynamically php

I'm creating a form in which when filling, the user will add more fields dynamically, until then I already have, but I would like to separate the value of each field added to send the data separated in PHP. because all are with the "name" parame...
asked by 14.08.2017 / 16:54
1
answer

Load ViewModel and external template into the Knockout component

I'm trying to load the template and the ViewModel into a knockout component using require.js, but so far unsuccessful. index.html (view) <!doctype html> <head> <link href="assets/css/bootstrap.min.css" rel="stylesheet"...
asked by 13.08.2017 / 00:35
1
answer

Request Return - Angular4

I started the studies with angular4, and I'm trying to get the json return of a simple request through a service . But when calling the requesting method, it gives me the following error in my component login.component.ts :...
asked by 16.10.2017 / 04:19
1
answer

document.getElementsByClassName and elements with more than one class

When an element has more than one class it works if you use document.getElementsByClassName passing only one of the classes? If I have an element like: <div class="class1 class2 class3 ..."></div> Can I get this elemen...
asked by 13.08.2017 / 02:13