Questions tagged as 'javascript'

1
answer

Object Object, how not to issue this alert

Well, I have pages that send asynchronous requests, but when interrupted they issue an alert [Object Object]. This is a bit of a problem as it appears while the server is directing to the page (like the one the client chose). Is there a wa...
asked by 01.06.2015 / 04:34
1
answer

Display Carousel after loading

I have two carousels on the page and while they are loading, they are broken. Only after they're right. I would like them to only be displayed, once loaded, but I can not. window.onload = function() { $('#corpo-conteudo-imoveis1')....
asked by 08.09.2015 / 14:54
1
answer

How to change array order javascript array

How do I change an array order. Example: I have an array with the following syntax: arr = [h5, ul, h5, ul, h5, ul, h5, ul,]; The purpose is to change the display order of the html, for example h5 beer / h5 with its respective ul is first exporte...
asked by 11.05.2015 / 02:29
1
answer

ajax upload does not pass variables

I can not pass the variables in the ajax method. <input type="file" id="id-input-file-2" name="arquivo" class="form-control arquivo" /> <input type="hidden" name="ID_Cotacao" id="ID_Cotacao" value="555"> . $(function(){ $('...
asked by 05.09.2015 / 05:24
1
answer

Graphic Raphael.js error

I am creating a line chart using the Raphael.js library. I used an example, added all the script and got an error in my browser: "Cannot read property 'linechart' of undefined". The example is very simple: <head> <title>...
asked by 24.04.2015 / 00:06
1
answer

Change background of a DIV in iframe

Next Person, I have a form to upload any image ... <form id="form-upload" enctype="multipart/form-data" action="url" method="post"> <input type="file" name="image" id="image" /> <input type="submit" name="salvar" valu...
asked by 27.04.2015 / 00:09
1
answer

Different divs in loop

I find the following problem, with the code below I wanted to add more fields without repeating divs . Code: <? foreach($itens as $myrow){ ?> <div id="LISTA1_FUNDO_PRETO"> TITULO<...
asked by 24.04.2015 / 02:08
2
answers

Change the color of a div with a setInterval

Here is the code: jQuery(function($) { $('a.panel').click(function() { console.log($($(this).attr('href'))); var $target = $($(this).attr('href')); $target.show().css({ left: -($target...
asked by 24.04.2015 / 12:50
1
answer

Limit jQuery checkbox

I'm creating a system where the bank's ready images and below each image has a checkbox, all this inside a for to get the images of the bank, wanted a function to be able to limit the amount of checkbox ie photos that the user can select, I'm us...
asked by 30.04.2015 / 15:45
1
answer

Convert JS timestamp to PHP

I would like to know how to convert this JS code to PHP: A = new Date(2020,1,1,0,0,0).getTime(); Although the result will always "be": 1580522400000 I'm doing this: $d = DateTime::createFromFormat('Y-n-j', '2020-2-1'); echo $d->ge...
asked by 26.04.2015 / 20:13