keyup function performing weird

So I got a little codepen. Everything works so far except a little thing. I got a <h1> and an <input>. When I type something in the text input, its value should get passed to the <h1> in realtime. I tried to do that with a keyup fu...
more »

2017-06-15 15:06 (2) Answers

How to move a div in semi circle

here is my .html file <div class="progress"> <div class="barOverflow"> <div class="bar"></div> </div> <div id="b" style="position:absolute;"> <img src="assets/Mostly_Cloudy.png" /> </div> &...
more »

2017-06-15 11:06 (4) Answers

jQuery Unexpected token in JSON for valid input

I am getting the below error. I am not sure where I get the ' symbol in the JSON. I have double checked and sure that the json_encode function of PHP does not add the ' symbol in the first position. I have seen other question and solutions in StackO...
more »

2017-06-15 11:06 (1) Answers

Touchstart click event is not working

I've written an event to open new browser tab ( by jQuery like below: $(document).on('touchstart click', '.myClass', {self: this}, function (e) { var mylink =, 'attr=data-affiliate') if(myLink)...
more »

2017-06-15 08:06 (1) Answers

JQuery label change understanding

I'm trying to understand why the first JQuery line does NOT change the label text but the second JQuery line DOES. Thoughts? @Html.Label("lblTestLabel", "Old value I want replaced") <script type="text/jscript"> function PopulateTradeSt...
more »

2017-06-15 03:06 (3) Answers

Fade out after animating SVG fill color

I'm trying to do an animation of a simple svg checkbox. <svg class="checkbox" xmlns="" version="1.1"> <circle class="circle" stroke="green" stroke-width="2" cx="26" cy="26" r="25" fill="transparent"/> <...
more »

2017-06-15 01:06 (2) Answers

Jquery hover with .each function

I have a code to apply every li's border-left-color to its background. But I want to apply background-color when user :hover on li element. And Is that possible fill background left to right with jquery as in this example ?
more »

2017-06-14 21:06 (1) Answers

Arrays merging and Json encoding

I generate an unknown number of arrays like this: for ($t=0;$t<2;$t++) { for ($xx=0;$xx<$totf[$t];$xx++) { $otdata[$t][$xx] = array("".$otname[$t][$xx]."" => ['games'=> $otg[$t][$xx], 'mint'=> $otqmint[$t][$xx],...
more »

2017-06-14 11:06 (1) Answers

Responsive File Manager open image as Gallery

I'm using Responsive File Manager for web file manager in my project. It is working fine. Problem My problem is when I open the image, It shows the preview in lightbox modal. how can I make it Image as image gallery like navigating between Image....
more »

2017-06-14 08:06 (0) Answers

Trouble with AJAX and data format

I have some code that uses jQuery's $.ajax(). I found that I had to pass my data through JSON.stringify(). $.ajax({ url: '/Resource/ReportError', type: 'POST', data: JSON.stringify({ ResourceId:'id'), Reason:...
more »

2017-06-14 01:06 (2) Answers

Display Press Enter when starting to search

I have a simple search form input that I'm wanting to display the text [Press Enter] after whatever the user has typed within the search form. I've searched on Stack overflow to no avail. <form action="/search" method="GET"> <input t...
more »

2017-06-13 16:06 (1) Answers

Displaying php result in HTML using AJAX

I am trying to display the result of my php in different <div>-s. My plan is that I make a query in my php and display the result in JSON format. Due to the JSON format my result can be displaying in different <div>. How can I reach that ...
more »

2017-06-13 15:06 (3) Answers

AJAX data not passing to PHP

I am having trouble passing AJAX data to PHP. I am experienced with PHP but new to JavaScript. HTML / JavaScript <input type="text" id="commodity_code"><button id="button"> = </button> <script id="source" language="javascript"...
more »

2017-06-13 10:06 (2) Answers

FileBrowser is not defined

I was tasked with upgrading a Django 1.3 application up to 1.8. I changed out the applications Filebrowser with a newer version from a Django 1.7 app we also have. Everything is working great, except in the admin, when I try to upload an image with F...
more »

2017-06-12 21:06 (1) Answers

Header can't pass in ajax using cross domain

I have used two project for my site. One for Mvc project and Api project. I have added below code in web.config file which is in Api project, Access-Control-Allow-Origin: * Access-Control-Allow-Methods: GET, POST, PUT, DELETE Access-Control-Allow-He...
more »

2017-06-12 16:06 (2) Answers

Page Refresh with javascript and SEO impact

Hi just a quick question I am reloading my web page once with js (because some images in a gallery don't load first time I assume it's js not loading full first time that is the problem) here's the code: window.onload = function() { if(!window.l...
more »

2017-06-12 16:06 (0) Answers

Making an expanding text on mouseEnter

I would like to make an expanding menu text like in this webpage: example Below is my JavaScript code which works but not as i want. The problem is that this type of code is very long, unprofessional and not responsive. For example: if I reduce the ...
more »

2017-06-12 14:06 (3) Answers

Substitute for looping using setInterval()

I want to continuously iterate over an array with delay. In the example below, I used setInterval(). It works ok, but I'm curious is there a better method to achieve this? var message = "Lorem ipsum dolor sit amet"; var print = message.split(" ");...
more »

2017-06-12 11:06 (1) Answers