Questions tagged as 'jquery'

1
answer

After php query open result in a new page

How can I, if I can, open a new page after returning a query in php , what I have today is this: $(function () { $("#frmConsulta").validate({ submitHandler: function (form) { var data = $(form).serialize(); console.l...
asked by 12.07.2017 / 22:57
2
answers

Concatenate variables in Jquery to send to php only the selected record

I have loop where I show the user the result of a query, every query of this 3 variáveis that I need to send to php, what I'm trying to do is send to php the variables that correspond to the clicked button, see the image: WhatI...
asked by 11.07.2017 / 22:44
1
answer

jQuery validation with ajax does not work

When I click submit, it does not validate the fields, simply submit without submitting. Does anyone know what it can be? Obs : The form has an id form_redes_social and all fields have their id and names correctly. $(document).ready(funct...
asked by 29.03.2017 / 17:49
1
answer

browser back button delete a class

I'm making a website that works on a single page. So when I click on a menu button it scrolls to the area I want with: $('html, body').animate({scrollTop: $('#nomedoid').offset().top},Math.abs(0)); And at the same time I put the window.hist...
asked by 29.03.2017 / 19:34
1
answer

Pass value from the OnkeyPress input of the button

I have an input: <input id="in_cpf_cnpj" name="cpf_cnpj" class="form-control" placeholder="Digite o CNPJ" required autofocus></> I need to send the value of it, as a parameter, to a function through the OnClick of a button, I'm...
asked by 11.06.2017 / 13:03
1
answer

How to download file via $ .ajax ()

This question arose from this post Sending data to an ActionResult from a different Controller from the current one answered by James S , I currently have this ActionResult that downloads file through a Post in a View and need to do th...
asked by 11.06.2017 / 19:10
1
answer

Protect against HTML changes without blocking the browser console

Good morning, how do I prevent the user from inspecting the html element and modifying it? For example: I return a value for the screen and feed it into an input called itemSerial, so the user can use the quantity field to enter an amount tha...
asked by 26.05.2017 / 15:22
1
answer

How to access property with # in a JSON file with JQuery?

Hello, I'm using Last.fm's api and I'm having trouble accessing the #text that's inside the image array. Data Link - > JSON I try: console.log(values.track[index].image[index].#text); But it does not work. How can I solve?     
asked by 24.03.2017 / 17:00
1
answer

Form added to page

I have a javascript function that loads forms from XML files. The files contain only form codes, inputs, selects, etc ... This data is loaded dynamically to a page via the jquery load () function. Soon afterwards another function populates those...
asked by 28.03.2017 / 21:37
2
answers

How can I pass the function of this function to a php file called geolocation via ajax?

var x = document.getElementById("demo"); function getLocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition); } else { x.innerHTML = "Geolocation is not supported by this browser.";...
asked by 28.03.2017 / 16:55