Posts by Miguel • 29,306 points
758 posts
-
1
votes1
answer101
viewsQ: Classic slider for sliding/dragging
I wanted to make a slider, from right to left and vice versa, but I’m not able to increase the number of px, everything is working badly. HTML: <div id="next"></div> <div…
-
3
votes1
answer934
viewsQ: Slide of background images
I want to do a slide fadein/fadeOut with background images. I have this code that seems to be working except the background image does not change. Any hint? CSS: body, html { width: 100%; height:…
-
1
votes0
answers114
viewsQ: Scale an image with Imagick without deforming the original
One have an application in which the user can upload an image, do Crop and "work" the image, adding props etc... My problem is with Crop because the max size of Crop is always different depending on…
-
1
votes2
answers453
viewsQ: Find div with attribute value equal to the one selected with jquery
I have several buttons with data-numBtn numeric and with value equal to that of div (with attribute data-slide) that controls. In short, I’d like to click e.g. on .btn with data-numBtn="3" something…
-
0
votes1
answer34
viewsQ: Fadein only in elements loaded by Ajax with append
I have a div that contains 12 jobs and a button below (see more) that loads 12 more jobs, the problem is that if I try $('#wrapperTrabalhos').append(data).hide().fadeIn(); entire div…
-
0
votes1
answer53
viewsQ: Fade out on the mother div but not on your kids with jQuery
I have this code, but I’d like the #navBar suffer the fadeOut, #menuBt and #hi were always visible, it is possible? HTML: <div id="navBar"> <div id="hi"></div> <div…
-
2
votes2
answers119
viewsQ: The same transition does not work on different elements
I don’t understand why this transition (Translate, the up part) only works for the <p> and not to the <span>, in firefox. Someone help me? Jsfiddle here HTML: <div…
-
0
votes0
answers41
viewsQ: jQuery, scroll, fadein scroll elements when they are at 150px the bottom of the window (viewport)
I know there are plugins for this but I wouldn’t want to use it unless I really had to, in this case I don’t think I need to. I would like a series of divs faded (one at a time) when your 'top' was…
-
3
votes1
answer354
viewsQ: jQuery, stop performing functions depending on window size, also in resize
I’m working on a website that calls external JS files. The problem is that when you would like some functions to stop running on desktop when $(window).width() < 800 and vice versa: Link to…
-
0
votes2
answers103
viewsA: jQuery unbind to everything, when window size <= 800
My final implementation, with the help of @Sergio turned out to be: Inside the head tag, in HTML: <script type="text/javascript"> var type = 'text/javascript'; var src = ($(window).width()…
-
3
votes2
answers492
viewsQ: jQuery, native window.width() and window.on resize in the same condition
I wonder if a better way is possible than this, as it would save the repetition of code: usually do: if($(window).width() > 800) { // BLAH BLAH BLAH } $(window).resize(function(){…
-
3
votes2
answers103
viewsQ: jQuery unbind to everything, when window size <= 800
I would like all actions programmed with Javascript to be effective when the $(window).width() <= 800 to avoid conflicts between Mobile layout and desktop. But the truth is that it runs out of…
-
3
votes2
answers107
views -
3
votes1
answer1087
viewsQ: Photos in different Ivs using instafeed.js
I’m using the instafeed.js API. I wanted instead of all photos appearing in the same div to appear one per div. I tried to use this example but it didn’t work: example instafeed.js on multiple Ivs,…
-
1
votes2
answers146
viewsQ: Move element over element where cursor is
I have this code: I wanted '#hoverLayer' to move (Animate) to one of '#bts' ('#bt1','#bt2','#bt3','#bt4'), depending on where the cursor is. Any idea? html: <div id="bts"> <div…
-
0
votes1
answer719
viewsQ: C print name with scanf
I have the following code, the problem is that it returns string2 as '(null)'. How do I fix? and why does this happen? #include <stdio.h> int main() { char *string; char *string2;…
-
1
votes1
answer464
viewsA: maps, php, sql. Enter coordinates into the database and reaver map (google) with these coordinates
I got it this way: <?php $lat = '38.689527'; $long = '-9.351307'; echo '<script type="text/javascript"> google.maps.event.addDomListener(window, "load", init); function init() { var…
-
1
votes1
answer464
viewsQ: maps, php, sql. Enter coordinates into the database and reaver map (google) with these coordinates
I have a dynamic map (at least I would like it to be), I wanted it to depend on the user, he entered the coordinates (based on a form) that he wanted and they were entered in the database... so far…
-
-1
votes2
answers923
viewsQ: jQuery scroll does not work on Chrome in the rewind to previous page
I have this code that works well (just scroll down) in firefox and Chrome , but if you then click the 'backward' browser (Chrome) it does Trigger just in the load page without me do scroll. In HTML…
-
2
votes1
answer178
viewsQ: jQuery slide, go to next element (number of elements is not fixed)
I wanted to make a slideshow fadein/out (#overlayFancy, only appears when we click a '.wrapperExtraImg', fancybox plugin style), the code so far works very well but now I wanted it to be for next…
-
3
votes3
answers127
viewsQ: jQuery, do not select 'Child' from the element
I have this code that makes of a kind of fancybox, it works well but I wish that the click in the image did not make disappear the '#overlayFancy', it was good that only the click out of the image…
-
0
votes2
answers204
viewsA: jQuery animation before form submission
I managed to resolve, 'Ubmit' is a reserved javascript word so the 'name' of the 'input[type="Ubmit"]' cannot be 'Ubmit', it conflicts with the 'Ubmit()' javascript function: 1st amendment: HTML…
-
0
votes2
answers204
viewsQ: jQuery animation before form submission
I have this code, the animation happens but the redirect to the next page (work.php) nay. I mean, you’re not getting into the condition if (isset($_POST.... If I comment on the piece of code…
-
1
votes1
answer167
viewsA: PHP unlink is deleting everything
The problem is that I was selecting all the elements of each table and was deleting them one by one. The correct way is: DB.php public function selectRandomImageToDelete($id) { $sql = ("SELECT…
-
2
votes1
answer167
viewsQ: PHP unlink is deleting everything
I have this code: And I wanted to delete a file based on the address for directory and file you are given, the problem is that it is deleting everything despite the argument (address) that I step…
-
1
votes1
answer390
viewsQ: PHP blank page in Prod server but all OK in local
I have this script: and when I move it to the remote server a blank page appears, this is the only page on the site that gives this and I don’t understand why. On site everything is ok, no error and…
-
1
votes2
answers547
viewsQ: PHP delete values from the form if successful
I would like the values of this form to be deleted if the form is successfully submitted, everything is ok (does not erase) if there is any error but if there are no values continue there, I believe…
-
0
votes2
answers795
viewsQ: PHP Cookie is not set on remote server
I implemented a cookie that works on the local server but doesn’t work on the remote server, I don’t understand why. Thanks for any help. I have the following code: <?php if…
-
3
votes2
answers327
viewsQ: PHP and Mysqli. Table link problem
I’m following a toturial, it’s all the same. My problem is I can’t connect to the table. connect.php: <?php $db = new mysqli('127.0.0.1', 'user', 'pass', 'app'); if ($db -> connect_errno) {…
-
1
votes2
answers272
viewsQ: Sort by upload date after a readdir
I have this code that works fine, but I’d like the last images to be uploaded appear at the top of the page, instead of appearing in an order apparently 'Random'. They are not in a database, they…
-
2
votes2
answers376
viewsQ: jQuery Toggle Animation is not working
I have this code, and I would like you to toggle the click but it’s not working. Any tips sff? HTML: <body> <img id="topBar" src="imgs/topBar.png"> <div id ="wrapper"> <nav>…
-
3
votes3
answers477
viewsQ: CSS does not obey margin-right
I just don’t understand why the third line doesn’t align with the rest of the text. http://jsfiddle.net/Ra35L/2/ HTML: <div id="contact"><h1>CONTACTO</h1> <p>+(351) 968 888…
-
-1
votes1
answer100
viewsQ: Mysql connection by Pdo does not exist
I can’t connect to my database, I have no errors, the connection just doesn’t happen, just gives me a blank page. I have these 4 small files responsible for Conn. init.php: <?php session_start();…
-
0
votes1
answer89
viewsQ: Php equal functions return different values
I have this function: function login($username, $password) { $user_id = user_id_from_user_name($username); $username = sanitize($username); $password = md5($password); return…
-
0
votes1
answer564
viewsQ: I cannot run DELETE in SQL when submitting form via POST in PHP
I have this code and would like to delete a list of users when the form was submitted, but it is not working: Any hints? if (!empty($_POST['username']) && !empty($_POST['email'])) { $query =…
-
2
votes1
answer700
viewsQ: jQuery addClass in scroll
I got the code down and I’m trying to get the elements li stay with the class active depending on the scroll (effect Parallax), everything works fine (click functions for scroll) except that. If you…
-
2
votes2
answers2851
views -
1
votes2
answers2165
viewsQ: Jquery css if color text condition
I have this code. The problem is that everything is working fine except the color of the text does not change. jQuery: $("#btnContactMob").on("click", function () {…
-
0
votes5
answers5103
viewsQ: Mail() function does not send email
I just downloaded a site I’m working on to a remote server and I just noticed that mail doesn’t reach my gmail inbox. I used a very simple method of code but it doesn’t work, although it says ""Your…
-
2
votes4
answers7781
viewsQ: Login does not redirect, header('Location')
I just made a website that enables CMS so that our client can login and modify the content to his liking. On the localhost and on a test server that we have works very well, but on the final target…
-
2
votes1
answer369
viewsQ: CSS several backgrounds
I have this code, and I don’t understand why it doesn’t work, what I wanted was to have two backgrounds one in the top center another bottom center. but it only works at the bottom and it’s not…
-
1
votes1
answer1124
viewsQ: Link to a div on another page does not work
I have this code: <div id="text"><p>A Intertráfego está disponível a ser alcançada a qualquer momento. Saiba <a href="pedir_cotacao.html#map">onde estamos</a> e <a…
-
1
votes1
answer161
viewsQ: PHP crypt password
I have two curiosities about encryption of passes, I have this code: 1- $mainpass = "test123"; $md5pass = md5($mainpass); $sha1pass = sha1($md5pass); $cryptpass = crypt($sha1pass, 'st'); echo…
-
3
votes3
answers3426
viewsQ: Disable zoom google maps does not work
I implemented a iframe with a Google Maps map, the problem is that I wanted to disable the scrool zoom and the drag. I’ve tried this code in and out of jQuery function and it doesn’t work: HTML:…
-
3
votes1
answer108
viewsQ: jQuery Reverse conflict
I’m working on a website that I want it to change the order of the read when the window is < 800px, and I implemented the code below. The problem is that it seems to be failing at random and…
-
1
votes1
answer181
viewsQ: Doubt Php htmlentities
This is just a desire to learn, I put into production a site that had been working for some time. and I noticed that utf8_encode worked on the localhost but does not work in production now. I…
-
17
votes4
answers3280
viewsQ: Integer with 0 to the left is printed as another number
I have this code: $mob_numbers= array(02345674, 12345675, 22345676, 32345677); echo ($mob_numbers[0]); I wanted to print out the first element of array but the output that is: 641980 Why does that…
-
0
votes1
answer70
viewsQ: Integrating articles to a slider
I’m working on an article slider, whose articles are in a database that can be eleminated/added (CMS), everything is working perfectly, the database, and the slider. Now I just wanted to integrate…
-
3
votes2
answers88
viewsQ: Cross-browser conflict at window width
I’m working on a site, the problem is when the window is less than 500px, in Firefox the navbar (navBar.css) appears one way (correct) and in Chrome appears another. How to solve this?…
-
1
votes2
answers960
viewsQ: How to format several bxSlider on the same page with different styles?
I am developing a site whose pages will have 3 or 4 sliders (bxsliders) my problem is that I would like to format one by one, especially the margins of the buttons below…