Questions tagged as 'javascript'

1
answer

Save css code via admin [closed]

I have a function in PHP that will show me all the CSS code in the front end before HTML. Only admin can see this CSS code printed on the screen, using the "include" method. What I'm trying to figure out is how do I copy all of this...
asked by 05.03.2015 / 19:43
1
answer

Instability when loading JQuery dynamically in window.load () in Firefox

I have a functionality where depending on the situation I must declare the JQuery library and some other scripts, such as the script Alert.js that a class of the same name. I have tested this functionality in Google Chrome and Firefox, in the...
asked by 04.11.2014 / 12:26
0
answers

Best method to make code editor in JavaScript

I'm creating a JavaScript plugin to create HTML games. I'm creating GML-based functions to appeal to users who use this language. Such functions are named object_create() , instance_create() , and so on. The plugin would run hidden a...
asked by 31.10.2014 / 14:24
0
answers

Bizarre bug in player only happens in chrome [closed]

I'm doing a site with music playlist everything works fine on my pc in all browsers, but when I upload to the server, something bizarre happens, where only in google chrome after I play 6 songs no matter the order it simply does not play anymore...
asked by 27.12.2014 / 01:18
1
answer

Replacing image with a manual sgc

I have an image and would like it to be replaced with another one when the Administrator logged in to the site and reported the name of the image to a input . What is the best way to do this using the code in about 50 images, each withi...
asked by 03.01.2015 / 21:16
0
answers

Request in postman (chrome extension) works, but with ajax not

I am making a request to a private API via POST. First I did the tests via Postman extension, everything went well. I then ran tests with the ajax request and it does not work the same way. Restangular.oneUrl("app" , "meutoken").get().then(...
asked by 15.05.2015 / 23:18
2
answers

Insert line break in CSV to each N characters

I have a js code that has a var that receives a string and this string needs to be broken every n lines so as not to break the maximum width of the csv content. Also, it is necessary that no word is broken in half. What would be the best solu...
asked by 03.02.2015 / 00:19
1
answer

customize create () on kendo toolbar

I need to customize the Create button of the Kendo UI Toolbar (the one that creates a new line to add values) so that it creates a new row for each object in an array, which comes from another pre-selected grid @(Html.Kendo().Grid<Inventar...
asked by 28.10.2014 / 17:31
0
answers

Tagsinput bootstrap does not work

I'm using the bootstrap tags input in conjunction with Bootstrap 3 and I'm not getting the typehead to work. Code: $('#tags').tagsinput(); $('#tags').tagsinput({ typeahead: { source: $.get('tags.php') } }); tags.ph...
asked by 27.07.2014 / 07:14
1
answer

Calculation of body mass index (BMI)

My html code is as follows: <!DOCTYPE html PUBLIC "-//WC3//DTD XHTML 1.0 Stric//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>JavaScript Aula 07&l...
asked by 01.08.2014 / 18:41