All Questions

3
answers

Change a date from yyyy-MM-dd to dd-mm-yyyy

I have dataTable where I display some data but the date is coming in yyyy-mm-dd format how do I change the format of this date so that I can display it correctly in my dataTable ? And where do I do this formatting? In Bean or...
asked on 14.07.2015 / 14:03
3
answers

Pass values from a popup (child) to parent page

The parent window (jsp) has a popup (child) button. <input type="button" onclick="test();" value="Call Child Window" /> When you open the popup, there are text fields for the person to enter a word. These input are created dyn...
asked on 06.05.2016 / 16:31
2
answers

What is this code for?

I've seen this structure lately, in the javascript, I've tried to search for it but I have not been able to find concrete answers. I know it's an object, I think, but I'm a beginner and I do not understand how it works. Mainly the beginning -var...
asked on 28.10.2015 / 22:30
3
answers

How to send strings in the URL via JS or jQuery?

How do I transform a string, eg: minha string into minha+string to send in the URL? Can be in JS or jQuery     
asked on 14.01.2016 / 04:04
3
answers

How can I open a modal window with window.open ()? [closed]

How can I open a modal window with window.open() in chrome, IE, etc.? Is it possible to do this?     
asked on 29.07.2015 / 01:45
2
answers

Is using version control on the production server a good practice?

In the company I currently work in, we have a Web system (C # ASP.NET) where we use the Team Foundation Server 2013 development environment. On the production server we do not use any version controls: we use FTP only, a discussion here of how w...
asked on 08.05.2015 / 16:19
2
answers

Is working with session safe? [duplicate]

Example, if I create a session session_start(); $_SESSION['nome'] = $nome; #valor pegado anteriormente. Can the end user see and edit the data in it?     
asked on 20.11.2015 / 00:58
3
answers

Incorrect multiplication calculation [duplicate]

For some reason when I make the calculation by multiplying by a floating value, PHP always returns the wrong value. Example: echo ((33 * 0.8) - 26.4); result: 3.5527136788005E-15 But the expected result would be 0 I could no...
asked on 07.03.2017 / 18:44
2
answers

Get the first few characters of a string

How do I replace a string in JavaScript? I'm getting the page name. var str = window.location.pathname; The url name is "/checkout/9/finalizacao" I want to change to "/checkout/" In case the first 10 characters. I kno...
asked on 19.05.2015 / 15:35
3
answers

Encryption security in php [duplicate]

I know there are other things that help keep a system secure, but I would like to know specifically about one: information encryption. For example, the password is information that my projects always try to get encrypted in the bank. My que...
asked on 18.11.2015 / 15:01