Questions tagged as 'javascript'

2
answers

Get values from a form post and forward to an html table

I am a layman in PHP and JSON, I have this code below that is working. It brings the values of a form , however everything in the same PHP tag, would like to separate and put in an organized table, for example: Name, Price, Quantity, Subto...
asked by 05.01.2017 / 00:49
1
answer

Hide element when printing page

I have a page of a product report that converts it to pdf using wkhtmltopdf. My problem is when generating the pdf I want to put a div with a banner at the end of category, if the category does not occupy the entire page. EX: report with 10 p...
asked by 26.09.2016 / 20:18
1
answer

What error with my script? [closed]

I'm new to javascript, and I have this script here: function mostrar() { var el = document.getElementsByClassName("detalhes"); el[0].classList.toggle("show"); } .detalhes { display: none; } <a href="javascript:mostrar();"&g...
asked by 05.09.2016 / 21:35
1
answer

Navbar bootstrap problem on Wordpress

A customer asked me to increase the size of the navbar, so far so good. I increased it and had no problem, however, when I go down the page and upload again, the navbar goes behind the slider.     
asked by 08.09.2016 / 22:55
1
answer

Popular table with data from a JSON

Hello, I need to populate a table according to what the user chooses in an input range, example in the range he chooses the value $ 200,000 ai at the end of filling the form returns me a table (done with ul and li) with the data referring to the...
asked by 04.09.2016 / 22:31
2
answers

Avoiding conflicts between variables in Javascript

All modal windows in my system open via ajax, and these have their own JS codes with variables and functions. In order to avoid problems with the variables and functions of the screens that call these modal, I thought of adopting the following s...
asked by 05.09.2016 / 16:37
1
answer

Detect destkop & mobile

I have a JavaScript function that redirects the visitor if he is using mobile. How do I reverse, when it accesses the mobile by URL ex.    mobile.meusite.com Redirect to    myite.com <script type="text/javascript"> var url_...
asked by 09.09.2016 / 14:26
3
answers

Problem accessing api using $ .ajax from jQuery

I'm having trouble accessing api using the $.ajax({}) function of jQuery. The Error: Mycode:<!DOCTYPEhtml><html><head><scriptsrc="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script...
asked by 31.08.2016 / 01:48
1
answer

How to know which div is displayed on the screen with javascript?

I have a website with several divs, and I need it when the screen arrives on a given div, an action happens, but I do not know which javascript or jquery event is responsible for that. Example: <div id='1'> div1 </div>...
asked by 05.09.2016 / 20:20
1
answer

Call javascript function not managed bean

I'm using the JSF framework with primefaces 6.0 and as I'm new, I'm having trouble calling a javascript when finalizing a method with a @RequestScoped scope bean. How can I do this? Is there any other way using this scope? I want to call a sc...
asked by 07.09.2016 / 17:14