Why does my code not work in Safari or Opera?

There is a function in js which displays messages to the table (messages are stored in json). In Google Chrome, it works, but Safari, Opera or Microsoft Edge - no! There is a mistake in code which is associated with the call to setTimeout (callback, ...
more »

2017-07-18 22:07 (2) Answers

hide element based on URL href

I need to hide an element based on the window.location.href object. My approach is below: $(document).ready(function() { var windowURL = window.location.href; if (windowURL.indexOf('stackoverflow') > -1) { $('#hide-this').css('dis...
more »

2017-07-18 16:07 (2) Answers

jQuery Target classes separately

I have a HTML code like this. <!-- Every time string is different --> <span class="time_string">123456789</span> <span class="time_string">981251100</span> <span class="time_string">051036626</span> <sp...
more »

2017-07-18 15:07 (6) Answers

How to color words in ASP.NET MVC

I'm new to ASP.net MVC. Page output: This is Red This is Blue This Green it is not colored.I want to be colored. I could not find the fault. Where am I doing the error? this is my controller public class HomeController : Controller { // ...
more »

2017-07-18 10:07 (1) Answers

Outline not working properly on Firefox

I am trying to put some custom outline in order to reach some web accessibility suggestions. But I can't make with Firefox. This is how it looks on Chrome: And that icon is actually an anchor. On Firefox, it is only outlining the whole document,...
more »

2017-07-18 06:07 (0) Answers

using JSON data in client side javascript file

Im fairly new to node.js and express. My question is how to correctly retrieve json data in a client side javascript file since im getting a 404 code about the .json file not being found. my file structure is a generic express structure and the .js...
more »

2017-07-17 22:07 (1) Answers

How to count visible 'li' on a search list

The code below is for a simple search. Im trying to count the visible 'li' on the list and display the total in a div "totalClasses". and then when the user search for a class update the total with only the visible classes(li). I have tried doing th...
more »

2017-07-17 21:07 (8) Answers

How to get the .index() of this.id

If I want to iterate through a class using each(). How can I get the id attached to that class and get it's index? I tried to do it like this but this.id only returns that id name and not the actual id: $('.nav-click').each(function() { console...
more »

2017-07-17 21:07 (2) Answers

How to show json result array without js code

I have a script to consult an external API and retrieve data. What I want to do, is show an array with the result only, without the js and HTML code. I think is possible, but I don´t know how to do it. Please, I´m from Argentina. Sometimes is very...
more »

2017-07-17 17:07 (2) Answers

Dim entire screen except a fixed area?

I want to create a tutorial which will lead the user exactly where to click. I'm trying to cover the entire screen with a <div> which will dim all elements except a specific region which is in a fixed width, height, top and left. The problem i...
more »

2017-07-17 14:07 (6) Answers

Navigating Next and Prev Post By Label In Blogger

I wrote a code for navigating next and previous posts which are under the same label. My blog is http://www.rawdevart.com/ All the posts in this blog will always be under 1 label only. The blog is for a japanese comic (Manga) hosting, so the chapte...
more »

2017-07-17 09:07 (1) Answers

Leave dot onclick on image

I would like to leave a dot on my grid image based on wherever I click. I've got the general concept down but unfortunately my dot keeps appearing slightly higher than where I click. How would I go about adjusting this? https://jsfiddle.net/dr0emvkr...
more »

2017-07-16 23:07 (2) Answers

iOS Safari Scrolling issue with CSS

I'm currently working on a Web-App. In one case a user can pick some content and put it into a overview. Once this content is there he should be able to scroll through it. This div has the correct parameters for all browsers except for the iOS Safar...
more »

2017-07-15 22:07 (0) Answers

C#, MVC Confirmation Delete Dialog

At the beggining i would like to sorry for my bad English skills. I create web app using MVC with Entity Framework. I would like to create a customized confirmation dialog, when user try to delete record from table. Confirmation works when i use sta...
more »

2017-07-15 16:07 (1) Answers

Remove dropdown list value

I have following select drop-down which is dynamically created,which does not have select id but have name. I have JavaScript array like var t=[125,43,89]. I want to remove above array values from below drop-down. <select name="UF_DEPT"> <o...
more »

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

Event not fire from directive in angular js

I want to customize the data in kendo combo box with angular js directive. The code has given following: HTML Page:- <input name="Type" kendo-combo-box k-filter="'contains'" k-data-value-field="'ID'" k-data-text-field="'Description'" k-data...
more »

2017-07-15 12:07 (0) Answers

"Show More" Button after X buttons

Here is fiddle and this is my code: $(document).ready(function(){ $( ".keywordsdiv" ).each(function(){ $(this).children(".keywords").eq(3).after('<a href="" id="playtrailershowmorebuttons">....Show More</a>');//add a unique...
more »

2017-07-15 10:07 (2) Answers

codeigniter ajax error user email check

I have created a simple code ajax request for checking email availability in codeigniter framework. but, I get everytime error. and don't know how to resolve it. below is my footer js script(after jquery and other external scripts). <script> ...
more »

2017-07-15 08:07 (3) Answers

Generate Random QR Code OnClick Using qrcode.js

I am using qrcode.js for generating qrcode. I want to generate random QR code every time I click into add new tab instead of add new qr code. I created a code for a random number but when I try to add onclick function it add new not to random it. JS...
more »

2017-07-15 07:07 (4) Answers