Questions tagged as 'jquery'

2
answers

Run function only once after site loading

A friend passed me a script from a box that opens when someone enters the site, but refreshing the page appears again. Could you help me? Below the code: function timer() { jQuery('.cloudbanner').hover(function () { jQuery('#f...
asked by 15.05.2015 / 17:30
2
answers

Populating city and state selects with AJAX (PHP and jQuery Mobile) [duplicate]

I'm building a webapp with the framework JQuery Mobile, PHP and AJAX. In this app I have a form with selects of ESTADO and CIDADE , an AJAX has been done that when it chooses ESTADO , it loads CIDADES according...
asked by 19.06.2015 / 22:24
3
answers

Div with fixed position on the screen within the limits of another div

I need a div to be fixed on the screen, ie, go down as I see the rest of the page, but the problem with position:fixed is that it takes the element out of the page flow. I want this div to be fixed within the bounds of another div, and...
asked by 17.08.2015 / 19:34
2
answers

Detect whether the event was triggered by the user or via script

I need to detect if the event ( click ) was triggered by the user or by the trigger method of jQuery. By analyzing the event parameter I found two properties that I could use for this check: when the event is triggered via...
asked by 16.04.2015 / 14:32
1
answer

How to insert 2 inputs in the same TD with doubleclick?

I would like to insert 2 inputs into a td, today my code works with only one input, and even saves the information in the database, but I need to include one more input to enter a password to authorize the update. Today it looks like this:   ...
asked by 14.06.2018 / 13:53
1
answer

Is there a secure way to check the loading of frames in an HTML page?

Some time ago I built a tool with HTML and Javascript to help debug a family of web applications. Basically, the tool consists of a static HTML page and a collection of scripts that load a given system into an iframe and then allow you to ins...
asked by 20.12.2013 / 15:35
3
answers

How can I include the 'submit' button in the 'POST' array generated by 'serialize'?

In forms, I have the button type submit which when clicked will be intercepted by jQuery in order to make validations to the content of the form before sending it to the PHP process via Ajax. Form <?php $html = ' <form action=...
asked by 31.12.2013 / 16:24
1
answer

Div appear in the bottom (Superscrollorama)

I have a problem with Scrollorama. I would like the div to start appearing already in the bottom, but it is only appearing when I am already in the middle of the site. The class: $(document).ready(function() { var controller = $.superscroll...
asked by 25.02.2014 / 00:52
1
answer

Identify a specific part of the screen

Is it possible for me to identify a specific part of the screen with jquery and javascript? For example when passing by height y does it perform for me a function? I imagine something like this: var minha_altura = $(window).height(); var altur...
asked by 03.12.2015 / 12:23
1
answer

How to change this JSON object?

I have a problem with this: I am using CakePHP and sending JSON to a datagrid of EasyUI as follows: $rows = $this->Produto->find('all', array('fields' => array( 'id', 'codigo_produto', 'codigo_pedido' ))); $total = $this->Pr...
asked by 29.09.2015 / 15:02