Questions tagged as 'javascript'

1
answer

Events and changes in a JSP?

Hello. I have a jsp being a chat (due to a restriction, I'm using Struts 1). In this JSP, I have the following div : <div class="conteudo" id="conteudo" name="conteudo"> . I need to return an automatic response (can be an...
asked by 18.11.2014 / 20:02
1
answer

how to validate form with ajax return

I'm not able to do form validation in this field that returns from ajax, function: validateVehicles (); How to validate checkboxes returning from ajax? I have a main.php page where I declare the call by ajax, on this page I include "cadastroA...
asked by 27.01.2015 / 13:06
1
answer

Print values from an array

I want to print the values of an array that are pushed when I click an object. The function works because the alerts appear. The problem is that it does not print the values in the html paragraph. var x1; var y; shape.onclick = fun...
asked by 03.12.2014 / 23:28
1
answer

How to edit page after rendered with Node.js? [closed]

I need every time a page is rendered with any path to be added one paragraph after <body> and another paragraph before </body> . I'm using Express.js and to do this by taking the string return from app.render a...
asked by 14.01.2015 / 23:12
1
answer

Recover disk image via callback

Well, I'm developing a feature that aims to upload an image (this step has already been done) and right after I "retrieve" it to select some color in it ( ColorPicker with Canvas ), just like this example . The problem is that I do not kno...
asked by 13.01.2015 / 19:04
2
answers

Large images corrupted or truncated when pulling SQL server with PHP

I'm looking for images from the SQL-server database through PHP and jQuery + AJAX. The image when it is small loads everything completinho, but when the image is a little big of this error in JavaScript:    Image corrupted or truncated: data:...
asked by 04.11.2014 / 14:35
1
answer

How to do paging with the Instagram API?

I made a page to display Instagram photos that have some hashtag pre-selected by me. I used an example that I found on the internet (I can not remember the source) and I do not know how to paginate the photos. How can I make paging with the...
asked by 04.11.2014 / 22:13
1
answer

Start function in a specific tag with pure JavaScript (gridalicious)

Well, I would like to ask your help to resolve this question I am facing. What would be the equivalent, in pure JavaScript, of the following jQuery code $(document).function(); Being more specific, I'm trying to rewrite this code bel...
asked by 19.03.2015 / 19:31
2
answers

Open Modal window if difference between dates is equal to X days

I'm not very knowledgeable with javascript and I'm not sure how How can I open a Modal window if the difference between two dates is equal to X days Exe. (If clicking on the field and date chosen has a difference of 1 day from the current d...
asked by 20.03.2015 / 13:32
3
answers

Increment or decrement var in resize window

Hello. I have a variable with a value of 0 and a window of size 1000. I would like to resize for smaller sizes, 999, 998, 997, the variable if it decremented by getting -1, -2 ... And in resize for bigger, it if it increased, 1, 2 ... Any help?...
asked by 20.03.2015 / 13:47