Questions tagged as 'javascript'

1
answer

JavaScript / PHP: Page Redirect

Good evening, I'm a complete beginner in web development, and after several google searches, I could not get a satisfactory answer. I am using the window.location.href command to redirect the pages of my system, however as they are in loc...
asked by 30.06.2015 / 01:38
2
answers

Convert TIME () from PHP to DateTime with JavaScript

How to convert a time() generated with a PHP to a DateTime style this: 2015-07-14 21:42:44     
asked by 03.07.2015 / 01:47
1
answer

Error: Uncaught TypeError: Can not read property 'split' of undefined

I have the following problem, could anyone help me? When I'm on a site that runs Javascript and I give a command. The error happens in mySaved.js.196 Follow the line that I click on this site JavaScript claims the problem and does not p...
asked by 01.07.2015 / 20:32
1
answer

Calling a JSF bean method inside JavaScript

I would like to call a JSF method inside my JavaScript code. For every time it executes this method in JavaScript within the function call another method that is inside JSF. Does anyone have any idea how to do this?     
asked by 05.05.2015 / 01:16
1
answer

Problems inserting HTML using ajax

I'm having trouble inserting HTML using ajax HTML: <table class="table table-hover"> <thead id="thead"> <tr id="tr-thead"> </tr> </thead> <tbody id="tbody">...
asked by 18.03.2015 / 15:06
1
answer

Pass variable value PHP by Javascript

Now follows the function; what I need is to simply pass the value of a variable within JavaScript to PHP, if I make a single code without so many quotes and call works, but when I mix everything goes problem, I think it's two things 1-somethi...
asked by 15.03.2015 / 18:52
2
answers

Execute command in JS using string

I have a command to get the size of my json, but I need to use a string to indicate which object I want to get the size of: var comando = data.result[0][0].'Pedidos'.length; The error you give me is this: Uncaught SyntaxError: Unexpecte...
asked by 17.03.2015 / 17:57
1
answer

How to detect changes of more than 15px in Resize in the [duplicate] window

I need to trigger an event (alert) whenever a window is resized, but only when the difference goes from 15 pixels (for less or more). What is the simplest way to calculate these 15px?     
asked by 19.03.2015 / 20:02
3
answers

How to confirm page output?

How can I confirm if the user actually left the page, because when I click on the browser to exit and say that I want to remain it turns the name of my a into 1 and then does not return to 0. Does anyone have a solution? Code below: <...
asked by 14.07.2015 / 19:19
1
answer

How to use Google Chart radar?

I have a graph and would like to make it look like the image. (two or more lines) Ialreadyhavethefollowingcode:   link     
asked by 13.07.2015 / 18:50