Questions tagged as 'html'

2
answers

Blocking when using AJAX making multiple queries to MySQL

I could not determine a good title for my problem but it is the following one, I am doing a small page to make queries to a database, the idea is that while the user writes in an input the results are shown in a table , for that I am implemented...
asked by 28.08.2018 / 17:52
1
answer

2 connections to Mysql in the same PHP

I have a problem with connections to mysql currently from a PHP I establish connections to mysql in the following way <?php $date = strftime( "%Y-%m-%d %H:%M:%S"); //FECHA function conectarse($host,$usuario,$password,$BBDD){ $link...
asked by 27.07.2018 / 21:53
2
answers

Result in Ajax multiplying the array values

When making a query to the database, it generates a response that is received by the success function of ajax, but when I want to put $. each , it is not that I have a problem with that, no and no, the json is parsed, everything is fine, only t...
asked by 24.07.2018 / 02:41
2
answers

How to pass values to a PHP on the same page and keep them selected

In this case I am sending values (of a select and a number), the values pass normally, but the problem is that when I select one, the other one is deselected, but what I would like is that they be selected (if is that you select the two), as you...
asked by 18.06.2018 / 22:16
2
answers

Print button if a value is empty

I have a table that shows the records of orders delivered, and to finish the registration there is a "Add referral" button to save the referral in the database. I want to do that when the table reloads and if the referral has value that does not...
asked by 19.06.2018 / 17:20
1
answer

Remove object and put it at the beginning of the array

Hello good morning I have an arrangement of objects and what I need is to take the index position and put it at the beginning of the arrangement, this is my code where I want my arrangement. $.each(data.info_tarifas, function (index, value){...
asked by 23.11.2018 / 17:48
1
answer

how to send the user to the home page if they are not logged in using sessions

I'm doing a simple login, where the user puts the data and takes it to the panel, but what I want to do is that if another user wants to enter that panel he can not access if he is not logged in. If you know, please help me. validate:...
asked by 21.11.2018 / 22:19
2
answers

___ ___ As erkimt make the main image occupies 100% of width and height ______ qstntxt ___

I would like to know how to do so that the main image of a page has a high of 100% of the browser mainly without the need to apply pixels.

I can do it by applying the pixels but when viewing it from another pc or a monitor with different screen resolutions this one does not look the same since it had it pre-defined for a specific resolution.

I want to achieve something like this See Here , that As you can see when the page is opened there is a main image and if you see it from another device you can still see the same without any distortion or the image is cut off. Eye, the page is not mine I just put it as an example.

My code:

%pre% %pre%
    
______ azszpr174982 ___

CSS has a set of properties that do exactly what you're looking for

%code% causes the image to be applied to the entire container without showing the leftovers on the sides or up and down

%code% causes the origin of the image to be the vertical and horizontal center

%pre% %pre%
    
______ azszpr174984 ___

if you apply this code to a div:

%pre%

I should give you the height and width of the page at that time, also if you put a background image to the div you can put:

%pre%     
___

I would like to know how to do so that the main image of a page has a high of 100% of the browser mainly without the need to apply pixels. I can do it by applying the pixels but when viewing it from another pc or a monitor with different scre...
asked by 22.06.2018 / 06:18
3
answers

Move div to the right

First I want to clarify that I am new to this, so please excuse the format of the question. I would like to move my DIV with class "Menu" to the right and I can not find a way to do it, here I leave my code. <body> <div> &l...
asked by 24.06.2018 / 17:24
2
answers

How to stop the execution of setInterval () which was executed using onLoad ()?

Hello colleagues, I have had a very annoying problem and it is as follows: I have a whole page made in ajax and jquery and I have different menus; and for example when entering the first menu, inside the HTML code I have an image with a Javascri...
asked by 23.06.2018 / 05:31