92 Posted Topics
Re: No, scrollbar styling is only available in Internet Explorer. | |
Re: To upload files from a web page, you need to add the 'enctype="multipart/form-data"' attribute to the <form> tag, or the browser won't upload any files. | |
Re: The 'switch' statement generally uses the 'case' operator to test equality, so when your code tests 'textfg' against the comparisons in your 'case' functions, it's always falling through to the default because 'textfg' never evaluates to 1 or 0 (true or false). This might not work for your code, but … | |
Re: Undoubtedly, the <iframe> is presenting a viewport width that is less than 767px. It could simply be the width of the <iframe> is truly that narrow or the browser isn't calculating the width as you expect. Overall, having a responsive document in an <iframe> inside a responsive document is bound … | |
Re: If you want to accept credit cards, then there are going to be fees attached. I've looked at quite a few services over the past 20 years, and they all hover between about 3-3.5% plus a per-transaction fee and often a monthly account fee as well. I use PayPal because … | |
Re: There are ways to apply selected stylesheets depending on the browser (user-agent), but it's something you should avoid because it can be very difficult to maintain over time. Generally, the only exceptions are supporting older versions of Internet Explorer which can be handled with conditional comments. What are the problems … | |
Re: At a guess, I'd bet that you accidentally used a class name that is also used by Developer Tools or some other add-on/plug-in. Change the class name and I bet it fixes the problem. | |
Re: This is close. Needs more tweaking, but it's 1AM here... <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>DaniWeb Question</title> <style type="text/css"> html,body { height:100%; } #main { margin: 5px; padding: 5px; height:96%; background-color: #57A8EB; border-radius: 8px; color:#fff; } #primary { float:left; margin: 1%; padding: 5px 1%; width:65%; min-width:300px; min-height:96%; background-color: … | |
Re: If you want to convert PDFs on your website into images, you don't need iMagick. You do need to have GhostScript or some other PostScript/PDF engine on the server and you can send commands to GhostScript using PHP with exec() or passthru(). But if you have ImageMagick installed on the … | |
Re: Your code has quite a few errors which are probably contributing to the problem. The first one I'd fix is: <script type='text/javascript' src='js/jquery-migrate.min.html'></script> which is calling an HTML file as JavaScript. That alone could cause everything else to halt. You should also run both the HTML and CSS through a … | |
Re: If you mean that you want to make the background image move, you can use JavaScript to modify the 'backgroundPosition' CSS setting and animate it in a timing loop. If you mean that you want to make the background image like a slideshow, you can use JavaScript to change the … | |
Re: Are you checking the "COUNT()" somewhere else so that you know how many potential results are available before you offer the user a "Next" or "Previous" option? | |
Re: I think you want: if (is_numeric($var)) { | |
Re: Google does not pay *any* attention to the keywords <meta> tag. They've said so publicly many times. Bing does look at the keywords <meta> tag, but it is given very little weight. In any case, you're best off creating separate pages for each language supported on your site. See http://googlewebmastercentral.blogspot.com/2010/03/working-with-multilingual-websites.html | |
Re: It looks like you might have copied a tutorial somewhere that included 3 different ways of enabling gzip. I'd be surprised if that worked. Deleting the .htaccess file would certainly disable gzip. If that caused a problem, then just delete all of the code you posted here. Generally, it's a … | |
Re: This should be close: <!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>Centered Vert.</title> <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> <style> html {font-family: Verdana, Geneva, sans-serif;color: #B0B0B0;} body {background-color: #191919;} html,body { margin:0; padding:0; width:100%; height:100%; } #overlaylight { background-color:rgba(212,212,212,0.5); position:absolute; top:0; left:0; width:100%; height:100%; z-index:15; display: none; } .popupWrapper { position:relative; z-index:inherit; margin:0; padding:0; width:100%; … ![]() | |
Re: JavaScript is executed as the browser encounters it within your HTML document. So freestanding code is executed immediately, but functions are executed only when called. This has significant implications for your scripts. For example, if the code you posted was in the <head> section of your document, it would fail … ![]() | |
Re: I'm sure someone else can give you a better technical explanation, but in general, tables are rendered with their structure given a higher priority than their dimensions. And since you don't define the window/body/document width as being sufficiently large to accommodate your <td>s at 100px wide, they get dynamically resized … | |
Re: That's not quite all that's needed. I read the same Wikipedia article, and the tenth digit is actually a %11 checksum, which is why the OP had those loops. But the preg_match() you posted is certainly a good first step. ![]() | |
Re: You can change the title by setting 'document.title'. To change the <meta> tags, you'll probably have to use document.getElementsByTagName('meta') and check the 'name' attribute for 'description' and 'keywords', but I can't think of any reason why you'd ever want to do it with JavaScript. Neither users nor the search engines … | |
Re: I've worked with both Joomla and WordPress and both of them have features that allow you to make your site perform very well in the search engines. Also, all of the major search engines are aware of these platforms and have no problems working with them. My advice would be … | |
Re: You should use mysql_real_escape_string() or mysqli_real_escape_string() on most string data before you store it in a mySQL database. This is especially true for data that comes from forms. Then when you retrieve this data, you can restore it to the original state with stripslashes(). Do some reading on "PHP mySQL … | |
Re: I'd suggest that you search on "php photo gallery" and download an existing script. Then you could learn how they're made and how to adapt it to your needs. There are many PHP tutorials online as well. Pick one. If you found it in Google near the top of the … | |
Re: Keep in mind that relative URLs in your stylesheet are based on the directory in which the stylesheet resides. If your stylesheet is in a subdirectory (like '/css' or '/styles'), then the rule should read something like: html{ background-image: url('../images/background.png'); background-repeat:no-repeat; background-size:100% 100%; } | |
Re: First of all, you need to keep in mind that HTML form data is structured in name/value pairs taken from the form's <input> elements based on the contents of their 'name' and 'value' attributes. When the form is "submitted", that data is sent to the target of the <form> tag's … | |
Re: You can't call session_start() or header() after you've sent any part of the page itself. And you need to use mysql_real_escape_string() on the user form data to prevent hacking. So, your code should be something like: <?php include "connection.php"; session_start(); $errorMsg = ''; //now, let's register our session variables //finally, … | |
Re: There are too many errors in the code that you posted and too little of the complete code for the page for anyone to be able to help you. Usersnap might be too complex for you to use until you gain more experience in creating webpages with JavaScript. Tell us … | |
Re: us-ascii and windows-1252 are largely identical and so the tools you've tried may just be substituting someone's prferred choice for labeling the charset identifier. The document MIME-type doesn't (directly) affect the character encoding for HTML/XHTML documents, so neither of the two ideas you posted would have any effect. When I … | |
Re: Your question doesn't include enough details about what you want to do, and what experience you have in creating websites. Give us more information. | |
Re: The PHP code you posted doesn't measure the execution time of the JavaScript. It just measures the time it took the server to parse the page before sending it to the user and well before the user's browser would even start to process the JavaScript. I'm sure if you search … ![]() | |
Re: You don't have to rely on JavaScript for this anymore. Use the HTML 5 <!DOCTYPE html> and you can use: <input type="number" min="1" max="5" required> | |
Re: All I have is the kind of answer that nobody likes, but I'd be inclined to either set a fixed height on the <li> elements and a max-height on the <img>s with CSS, or change the HTML so that each matching <img> from both lists is displayed in a separate … | |
Re: Your progamming logic and syntax needs work. Learn to use a debugging tool like the Web Developer Extension for Firefox and Chrome or the F12 tools in Internet Explorer. They can show you where your syntax errors are or where there's a programming issue. In the meantime, I cobbled together … | |
Re: It seemed to work if you just remove the z-index on the <a>nchor tag. But, on the whole, I think you'd be better off assigning the background image to the <a>nchor tag instead of the <li>. | |
Re: Your variable 'message' is a string. Only HTML element objects have a 'style' property. And your code doesn't include the 'writeMessage()' function, so that could be a problem as well. My advice would be to find a JavaScript tutorial so you can learn the fundamentals. The W3 Schools is popular … | |
Re: Hi Matthew, I'd suggest that you search on "javascript email validation" to find examples of how best to do this. Most of the solutions you find will rely on regular expressions to validate the address to a higher degree than your code, but you should still be able to find … | |
Re: This method is unreliable. You must use method="get" in your <form> tag for this method to work at all. Many browsers will just open a new window in the user's Email program to allow him to enter his message and send it. You should install a "formmail" script on the … | |
Re: The 'innerHTML' property requires a string, not a function like 'write()'. Try: outputResults.innerHTML = "what"; | |
Re: https is just the communications protocol between the browser and the server. It doesn't affect the content being sent or received, so that isn't the problem. Since you say the image exists in both environments, I'd suggest that you make sure that the URL paths are the same as well. … | |
Re: You have the <img> set to "display:block", so the browser allocates the full width of its containing element (the <div class="header">) to display it. Then the next block-level element (the <form>) must start at the far left of the next new line. If you want these two elements to be … | |
Re: Uploading files requires software on the server. If you search for "file upload script", you'll find lots of choices. | |
Re: It looks like all of the data files in the directory you linked to are .zip files. So it may not be practical to read them directly with JavaScript. It can be done, but it could simply require too much memory and would definitely be slow. My advice would be … |