Posts by Matheus Ashton • 151 points
7 posts
-
0
votes3
answers1135
viewsA: Bootstrap navbar dropdown focus control menu after click
I don’t know if this is what you need, but you can create a keyup event bind and check if the user pressed the up or down arrows and scroll the screen: $(document).keyup(function(event) {…
-
2
votes1
answer1038
viewsA: How to implement a search engine on a site that is in a Node.js environment
Both Solr and Elasticsearch work on the basis of REST Apis, you install them in your environment and send requests to Apis to get results in JSON, XML, or any other format. Both Solr and…
-
2
votes1
answer1041
viewsA: Load and read XML via AJAX Cross-Domain
What happens is that you have determined the data type as JSONP, this means that the result of request that you are doing will return a JSON that will be executed in a callback defined by you, i.e.,…
-
1
votes2
answers325
viewsA: Error running java program for printing through PHP
Instead of using the exec() that can cause a security breach in your code, it is not better with PHP redirecting to a page that contains the image and using the method window.print() javascript to…
-
3
votes1
answer252
viewsA: Twig and Namespaces
Easier you use Composer to autoload, just run composer require "twig/twig:1.*" and then include the autoload generated by Composer: require_once '/path/to/vendor/autoload.php'; Twig has a very…
-
1
votes1
answer116
viewsA: Mysql connection to Roundcube
Man, I think you’re a little confused.. There is no "HTML class", HTML is a markup language only, it serves to define and display the site in the browser, to make a connection to a database you need…
-
0
votes2
answers210
viewsA: How to add twitter-bootstrap to a symfony 2 project?
There is a Bundle that provides services, template tags that integrate with twitter among other things that facilitate the integration of bootstrap in your project:…