All Questions

1
answer

Pop up with Bootstrap when loading page

How can I make a Bootstrap pop up when loading the page? <button class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-sm">Small modal</button> <div class="modal fade bs-example-modal-sm" tabindex="-1" role...
asked on 03.09.2014 / 17:06
3
answers

How to call Javascript functions in another Javascript

I wanted to call a function from a Javascript in another Javascript file. For example, in the calculate.js file, I have the function add (a, b) . And I needed to call this function in the calculator.js file (for example). I was wonder...
asked on 23.07.2014 / 13:54
2
answers

why is 8 appearing and not the number referring to i?

<style> .menu > li:hover .sub-menu{ display:block; } </style> <ul class="menu"> <li>li 1</li> <li>li 2</li> <li>li 3 <ul class="sub-menu"> <li>l...
asked on 08.05.2016 / 19:07
2
answers

Passing data between Activity Android

Well, I'm making an app and I have a login screen that connects to the database from a web service, but I have a problem, I want to get the user id and user name to pass these Data for another Activity and I am not getting .. For when the person...
asked on 13.05.2016 / 20:43
2
answers

How to create a box with two separate texts

Hello, I am a beginner of XHTML and I ask you to tell me about this code and not html5. I want to do a header but I can not. The goal is for the first text to be higher than the first. See the example image sf. I am in doubt as much in...
asked on 12.06.2014 / 20:56
2
answers

How to subtract hours from a date in javascript?

I have a variable that gets the current date and I need to subtract hours from that date. var data = new Date(); How did you hours from that date?     
asked on 25.07.2016 / 20:18
1
answer

Bug textarea with padding in Firefox

padding-bottom in <textarea> , works normally in Google Chrome and other browsers when scrollbar scrolls, but in Firefox the spacing always stays "fixed" and texts are cut off. Difference in Opera (based on Chromium) and...
asked on 18.08.2016 / 21:12
5
answers

Capturing Enter in IE using jQuery

I have the following code in jQuery: $(document).keypress(function(e) { if(e.which === 13) $('.button_ok').click(); }); When I click the enter key, it causes the user to click on the button of class button_ok . It w...
asked on 01.09.2016 / 16:17
2
answers

Values that can be entered as primary key

I have a company code for the product that consists of two letters and four numbers (example: XX0000), it is advisable to use this code as the primary key or to create another column with a code field and put unique to this code?     
asked on 22.06.2016 / 02:38
2
answers

How to simulate a jQuery keystroke?

I would like to know if there is any way to simulate keystrokes with jQuery. For example, when you click a button, you simulate that the "down" and "left" keys have been pressed, as if the user had them. $(document).on('click', function ()...
asked on 02.05.2016 / 15:43