-
-
Is it safe to put phone number on website or will it just get lots of junk calls?
Hi, You should obfuscate it. There are online tools to do it, like javascriptobfuscateor.com
-
-
Div that appears onclick
Hi! It depends on the reason why you want to hide or show the product types. If the page would be too long if everything would be visible, then you can collapse and expand the types. Examples for this: https://jqueryui.com/accordion/#collapsible http://v4-alpha.getbootstrap.com/components/collapse/ Is this what you are looking for?
-
HTML5 Audio
@media handheld{ display:none; }
-
-
Free PSD to css template
Hi! I'm trying to improve my sitebuild skills. I am practicing different parts of a website, but it would be great if I put a whole site together and also I would like to hear feedback about my work, and have more reference. I thought, that it would be great if I did free css templates and uploaded them to websites that require a certain quality. My problem is, that I can not do PSDs, I am absolutely bad in design. Is there anyone who could design a website, that I could code and maybe we could work together (this time for free) ? Thank you!
-
MikeH reacted to a post in a topic:
No 'Access-Control-Allow-Origin' header is present on the requested resource.
-
NOCK reacted to a post in a topic:
No 'Access-Control-Allow-Origin' header is present on the requested resource.
-
No 'Access-Control-Allow-Origin' header is present on the requested resource.
Yes, that helped a bit! I searched for cors (I did not know how it was called before ) and found several tutorials. I do not know why, but I had to put "always" in front of set. Header always set Access-Control-Allow-Origin "*" Finally the error message disappeared and I can see Fontawesome! Thank you!
- No 'Access-Control-Allow-Origin' header is present on the requested resource.
- No 'Access-Control-Allow-Origin' header is present on the requested resource.
-
Milli05 reacted to a post in a topic:
No 'Access-Control-Allow-Origin' header is present on the requested resource.
-
No 'Access-Control-Allow-Origin' header is present on the requested resource.
Hi! I have some problem probably with one of my apache conf. files, but I'm not quite sure. I work as part of a team. We have a test server set up and a repo. I pull the files, start the work on my localhost. The site I am working on has several server aliases, like admin.puba.lh, m.puba.lh, and static.puba.lh. Of course the site is puba.lh. Admin is for the admin panel, m is for the mobile version, and static, is where the fonts are coming from, as far as I can see it. I do only the sitebuild part, not the php. My problem is, that FontAwesome is not showing on my localhost.I have checked the urls where the site is trying to pull the font files, when enter the url in the address bar it downloads the file, so that is ok. I have this error message in the browser, so I think the problem is with my server configuration: I have virtual host set up in my httpd-vhosts.conf file: <VirtualHost *:80> DocumentRoot "C:\wamp\www\projects\puba\Web" ServerName puba.lh ServerAlias puba.lh ServerAlias m.puba.lh ServerAlias admin.puba.lh ServerAlias service.puba.lh ServerAlias static.puba.lh <Directory "C:\wamp\www\projects\puba"> Order allow,deny Allow from all </Directory> </VirtualHost> Does it have something to do with the Order allow, deny... part? Any help is appreciated, thank you!
-
Which password field should I use for validation?
Check if the fields match and then validate it.
-
-
How to read .ashx file with php
Hi! I would like to read an rss feed that is generated with az .ashx file. The file I need to read is : http://www.mylottoadserv.com/Services/GetDrawInfo.ashx?format=rss&feedtype=next&aff=38043&lotteryid=153,99,20,159,160,60,25,11&lang=HU I could not fine a way to do it. Any help is appreciated! Thank you!
-
-
NOCK reacted to a post in a topic:
How do I save html code in a mysql database and have it spit it back out without changing it?
-
How do I save html code in a mysql database and have it spit it back out without changing it?
Hi! Did you writethe code that you save the string with? Or do you use a library or a framework. For security reasons strings are converted before saved to a database with htmlaspecialchars. This converts html tags. Try using htmlspecialchars_decode($str) when you read the data from the database.
-
Bootstrap responsive background image
Hi! If I have a smaller image, eg.: 960px wide, I would place it to the middle for wider screens, and for smaller ones, I would use the background-size property. http://www.w3schools.com/cssref/css3_pr_background-size.asp With 480px or smaller the background image can be different, with only a gradient or with one color, with that small size I would focus on usabilty, make text readable etc. If you want to keep the content in a certain distence from the top, that is not a problem, vertical (top or bottom) padding or margin will not changif you set it in pixels not percent, only horizontal distanses cause problems.
-
-
-
-
Hooking up Page and Category specific widget area
I think you could do it with one if statement: if(is_page('59') || is_category('11') || is_category('12') || is_category('13')): genesis_widget_area ('blog-submenu', array ( 'before' => '<div class="wrap"><div class="blog-submenu widget-area">', 'after' => '</div></div>', ) ); endif; || means or . As I can see you would like to place the same widget area if the page id is 59 or the category id is 11,12 os 13.
-
Can any one help me please?
Hi! I am not sure if I got the problem right: you would like to mark the menu item belonging to the current page as selected so it will have white background? When I click on the about us mnei item, I am directed to the abous-us.php. The page is reloaded. When we are on the about us page the about us menuitem should get the "selected" class, or the "current" class. You need to check the current menu item from the url and place the class accordingly. It coulr be done with php as well: <?php function isActiveMenuItem($url){ $current_url = $_SERVER['REQUEST_URI']; //getting rid of / from teh beginning $current_url = substr($current_url,1); if($current_url == $url){ return true; } else { return false; } } ?> And then your menu htm would lool like this: <li <?php print (isActiveMenuItem(about_us.php)?'class="current"':'');?> ><a href="about_us.php"><span>About us</span></a> <ul> </ul> </li> I hope it helps.
-
-
-
$_POST code with login and registration
Hi! In this part : if($row = $query->fetch()){ $_SESSION['user'] = $row['user']; $_SESSION['pass'] = $row['pass']; header("Location: ".$_SERVER['PHP_SELF']); exit(); } You have a header function, after the page is redirected to the same url, the post will be empty. Isn't is possible that you have a successful login?