Questions tagged as 'javascript'

1
answer

maxlength plugin on ckeditor does not work

I need to limit the amount of characters in CKEditor. I followed the step by step of this topic: Limit text in CKEDITOR But it did not work. Below the changes made to my code: <textareaid="desc" name="desc" data-maxlen="10" rows=...
asked by 03.04.2018 / 14:00
2
answers

How do I create elements and add attributes with pure javascript?

I do not know why my test is going wrong. var t = document.querySelector("#t"); var x = document.createElement('div'); var y = document.createAttribute("id"); y.value = "azul"; var b = document.createAttribute("class"); y.value = "bl...
asked by 01.04.2018 / 22:38
2
answers

Ebit banner with 404 error and infinite loop with adblock on

Hello, I'm trying to implement the ebit banner in the woocommerce virtual store. I added code lines that ebit sent me but when I run it, 2 errors appeared. I decided to create an empty page in html and placed only the banner code: <!...
asked by 06.04.2018 / 22:46
2
answers

HTML / JS / PHP: Transform date entry into dd / mm / yyyy

Good morning. In my mysql database the dates are saved as dd / mm / yyyy, but the html "date" input only returns dates in the format yyyy-mm-dd, so I can not filter the dates of the database, which was my goal. I was using a very simple code, li...
asked by 06.04.2018 / 12:56
1
answer

How to receive the select value in PHP when selecting an option

How do I, when the user selects an option, the $idCourse PHP variable receives the value of the selected option. I made this code just to show the idea:    Code <select name="valor" id="idCourse"> <opt...
asked by 09.04.2018 / 01:22
2
answers

Event onmousenter

Next to creating a site and in the gallery part I created a function to move the mouse over the image to create a margin, but the image is slightly larger. I wonder if it would be possible to keep it static?     
asked by 06.05.2018 / 16:07
1
answer

Undesirable delay effect

Problem: The desktop and logo menu animation is undesired (+ or - 3s), but the mobile menu icon works as expected Attempts: transition-delay: 0s; transition-delay: none; animation-delay: 0s; animation-delay: none; I also tried with...
asked by 06.04.2018 / 16:26
1
answer

Build models in PHP or JAVASCRIPT?

The question seems to be obvious, but I would like to understand it in more technical terms. In my application I need to put objects in an HTML template, for user visualization. I have two options and I would like to know which one is the most e...
asked by 05.05.2018 / 19:11
3
answers

Unwanted scroll effect

I'm using the materialize tab , the switch works normally, but whenever I click on a tab it moves the page to the top , I do not know why, I think it has to do with the smooth scrolling effect, but I'm not sure <!--Import materialize.c...
asked by 06.05.2018 / 03:50
2
answers

Capture Json (Array) data and put it in HTML

Well, I'm having a hard time capturing the items inside an Json object. Follow the code below to illustrate. var tipos = [ { "code": "258", "label": "Sapatos" }, { "code": "547", "label": "Kits...
asked by 06.05.2018 / 07:22