Posts by Fernando Valler • 315 points
9 posts
-
-1
votes2
answers56
viewsA: Syntax error when using . val() in a JSON
As the example on the site. $(document).ready(function(){ $.getJSON('https://api.sheety.co/uk-theme-parks', function(data) { var template = Handlebars.compile($('#item-template').html())…
jqueryanswered Fernando Valler 315 -
0
votes3
answers364
viewsA: How to overwrite a root HTACCESS in a subfolder with another HTACCESS
You can do it like this: Structure Example: App > Admin Within App > . htaccess RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d…
-
0
votes2
answers63
viewsA: SQL query leaving a custom column data
See if this way can help: SELECT (SELECT count(id) FROM appA WHERE condicoes) AS total_appA, (SELECT count(id) FROM appB WHERE condicoes) AS total_appB, (SELECT count(id) FROM appB WHERE condicoes)…
-
0
votes1
answer49
viewsA: Java script looks for STRING in HTML HEADER
You must use the PHP or JS functions that work with Cookies. Basically you need to Write and Read a Cookie, so see the example below and apply your need. Example with PHP: To Write down a cookie…
-
7
votes1
answer31
viewsA: Convert comma-divided database field into separate variables with PHP
Using the function explode(); Ex: $row['campo'] = 333,444,555,6666 $aux = explode(",", $row['campo']); foreach($aux as $v){ echo $v; }…
phpanswered Fernando Valler 315 -
1
votes3
answers1281
viewsA: Url friendly to MVC
One of the solutions I use is: No . htaccess RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] #Options…
htaccessanswered Fernando Valler 315 -
1
votes1
answer615
viewsA: How to use bootstrap Collapse on this dynamic page?
You can use the jQuery toggle method that serves to display or hide the elements. How the code is generated dynamically user o . on Example: <!DOCTYPE html> <html> <head>…
-
1
votes1
answer1295
viewsA: Menu change color and description when selected
I don’t know if I understand your question correctly, but I believe you can do this using the :Hover and :select CSS selectors Example: CSS: <style type="text/css" media="screen"> .menu li {…
-
7
votes3
answers4398
viewsA: How to force load JS and CSS files with each new published version?
In PHP using the timestamp of the file you know if it has undergone any changes, forcing a new upload, if it is not changed it still takes what is already in the browser cache. With php do so, but…