Mongo db utf-8 exception

i'm wondering why i'm having troubles when inserting strings in db like hey hey %80 the '%80' still produce an eception : Uncaught exception 'MongoException' with message 'non-utf8 string: hey hey...

Pure CSS Drop-down Menu Not Displaying Properly in IE8

My pure css drop-down menu works in all major browsers except IE8. There are two issues. The background color of menu doesn't display until the mouse rolls over one of the menu items. (see photo...

I can't get magnific-popup animations to work

I've been through the excellent documentation for this and it's great. http://dimsemenov.com/plugins/magnific-popup/documentation.html I have the basic pop up working fine. My problem is with the...

Use PHP and MySQL to add images to a gallery

I'm trying to create a back-end to my photo gallery so it will make it easier for me to upload images to the gallery. The Gallery consists of a thumbnail image, a one line description and the...

Resizeing an oversized image using overflow:hidden and keep the aspect ratio

I'm creating a responsive gallery and my client sends me image that are landscape and portrait and varies sizes. I'm trying to create a way to take an inline image and keep the aspect ratio the...

what is the method to have swipe functionality with dynamic data in jquery mobile

what is the method to have swipe functionality with dynamic data in jquery mobile, i have used wow slider but the data is sliding normally that too i used static data. but what i need is swipe...

How do dynamically resize a image - CSS / HTML

I'm trying to dynamically resize a .png image to whatever text is put on the box. As you can see from the printscreen it doesn't resize dynamically to fit the text in the box. I have no idea how...

Only load content of section if on mobile device

Technology used: Bootstrap 3.1.1, jQuery 1.11 Goal: I have a section where I'd only like to load the contents of it on mobile devices. If I just used Bootstrap's visible-sm and hidden-lg classes,...

Displaying div only on mobile devices

I have a div that I'd like to only load on mobile devices - and mobile browser sizes. I am using Bootstrap 3.1.1, but using the visible & hidden classes still loads the content in the background...

Is it possible for a php script to overload a shared server?

I have built a directory script in php. It is work very well; however, my hosting company is sent me an email saying the script is overloading the server. Is that possible? If it is possible how...

PHP contact form not working

My php contact form will send me to the thank you page as if it its going to send but never sends me the mail this is the contact form code <div id="ContactMe"> <h2 class="ContactMe">Contact</h2> ...

How can I separate two different divs?

Basically, I used everything from break tags, to paddings and margins but nothing seems to work. My problem is on this image: I can't seem to find a way to separate the "user profile div" and the...

How to fix a background-image getting "cut" in a post-back event on every create a new tab method called?

Here are the .css and .aspx file "on-run" code. The script tag would come from the c# code on click event of a button which is inside the gridview to invoke the method which will create a new...

Conflict using Magnific Popup with 'autoScrolling: false,' option from fullPage.js

Opening and then closing a popup using Magnific Popup on a fullPage.js site seems to stop the autoScrolling: false, option working. So once the pop up closes you can no longer scroll manually up...

Magnific Popup fails to work with multiple galleries on a page

I am using magnific popup on a new website that i am building but i am running into a problem getting it to work when multiple galleries on the same page. I'm using wordpress, Slick Slider to...

setting and getting session variables using javascript ajax and php

I am trying to set and retrieve session variables. For each I have javascript code that runs ajax to call php functions. In my javascript code I want to use the returned session field. Nothing...

Remove a Dynamic DIV row in JS

I am trying to remove a row which is actually in a DIV. var html = "<div class=\"product\" id=\"" + data.tasks[j].cart_id + "\"><div class=\"product-image\"><img...

Chrome print preview redraw issue

Currently having an issue with a couple of our sites when using the Google Chrome print preview. This issue is intermittent, where it doesn't render all of the content for the preview. The issue...

Magnific popup not loading via AJAX and giving 'XMLHttpRequest cannot load' error?

I'm trying to create a popup page using Magnific via AJAX but getting an 'XMLHttpRequest cannot load' error when the link button is clicked. Below is the partial code for the portfolio section...

column of icons in bootstrap v4

I have a simple column of icons using flexbox in bootstrap v4. It comes up fine, but if you then click on an icon, the position changes slightly. Seems to happen only in chrome. Here is a...

Complete the relative paths to absolute using Python

I have rewritten the complete code to fetch the href and src link using beautifulsoup this time by the request of many SO users instead of regex. Here is the code: import os from bs4 import...

Specific value from http response content c#

I was wondering how can I extract a specific value from a http response content. Let's say the page from which I am making a getAsync request give back the response and in that response I need to...

Magnific Popup - start gallery from second array item

I'd like to learn how to modify Magnific Popup code to control the array of images created to start a gallery not from item 0 (first image of the gallery) but from 1 (second image of the...

Bootstrap Carousel Not Working Now

I was developing this design when it stopped working suddenly. Exactly the same for the carousel was working perfectly well. This a full screen bootstrap carousel. I've used several libraries in...

Select of Dropdown value display a div

I am working on a Responsive website, where I am developing a tabbed component. It works in a way that, in Desktop and Tablet, I render a menu, and on click of the menu button, I display the...

IE 11 throws js breaking error 1010 unexpectedly in the middle of a tab to <h1> element

I am writing a project for work, when the page loads it will grab a page via ajax query, on button click it will grab another page. I have checked my syntax for the ajax and seems to be working,...

Section of website being cut off

Hi I have this portion of my website Link here to broken portion and for some reason, the bottom of one of my sections is cut off. If I add a different margin or padding to the main class I just...

Background Image not Displaying Correctly in Div Using CSS

I have a site in which the header image is not displaying correctly in mobile. I'm using bootstrap 4, so the site should be responsive. But when I load my site in mobile browser the header image...

Index page is not re rendering/refreshing on search in Rails

I am making a simple search in rails on the index page. My problem is that on debug I get the correct results but they don't show on the frontend. def index if !params[:category].present? and...