92 Posted Topics

Member Avatar for Siberian
Member Avatar for mattster
0
155
Member Avatar for davy_yg

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.

Member Avatar for rtrethewey
0
191
Member Avatar for macky.p.deleon

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 …

Member Avatar for Daniel_28
0
127
Member Avatar for Violet_82

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 …

Member Avatar for almostbob
0
1K
Member Avatar for guyinpv

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 …

Member Avatar for guyinpv
0
283
Member Avatar for M@S00M

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 …

Member Avatar for Dani
0
89
Member Avatar for VenusCrystal

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.

Member Avatar for VenusCrystal
0
316
Member Avatar for davecoventry

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: …

Member Avatar for veera100
0
429
Member Avatar for ditty

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 …

Member Avatar for rtrethewey
0
128
Member Avatar for khurram123

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 …

Member Avatar for Bharadwajcvrg
0
175
Member Avatar for Cogito Ergo Sum

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 …

Member Avatar for Cogito Ergo Sum
0
61
Member Avatar for joachimanderson

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?

Member Avatar for mark.giles.14
0
211
Member Avatar for filipgothic
Member Avatar for lefteris.gkinis

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

Member Avatar for lefteris.gkinis_1
0
341
Member Avatar for Eric_9

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 …

Member Avatar for rtrethewey
0
160
Member Avatar for AycheKay

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%; …

Member Avatar for diafol
0
297
Member Avatar for castajiz_2

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 …

Member Avatar for [NOPE]FOREVER
0
319
Member Avatar for nouth

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 …

Member Avatar for Taywin
0
262
Member Avatar for ray100

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.

Member Avatar for diafol
0
560
Member Avatar for malatamil

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 …

Member Avatar for malatamil
0
199
Member Avatar for psprint

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 …

Member Avatar for Coloradojaguar
0
197
Member Avatar for amit.chaudhari.71

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 …

Member Avatar for rtrethewey
0
165
Member Avatar for junaid_5

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 …

Member Avatar for junaid_5
0
201
Member Avatar for Bensirpent07

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%; }

Member Avatar for rtrethewey
0
426
Member Avatar for ray100

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 …

Member Avatar for veedeoo
0
286
Member Avatar for bc090200540

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, …

Member Avatar for bc090200540
0
127
Member Avatar for qudsiyah.sherrief

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 …

Member Avatar for Bogomil
0
273
Member Avatar for Alba Ra

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 …

Member Avatar for Alba Ra
0
433
Member Avatar for venkat8979

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.

Member Avatar for rtrethewey
0
40
Member Avatar for RazorRamon

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 …

Member Avatar for diafol
0
366
Member Avatar for jovstudios

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>

Member Avatar for rtrethewey
0
120
Member Avatar for skald89

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 …

Member Avatar for rtrethewey
0
112
Member Avatar for powerson65

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 …

Member Avatar for powerson65
0
15K
Member Avatar for simplypixie

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>.

Member Avatar for simplypixie
0
198
Member Avatar for mattyd

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 …

Member Avatar for JorgeM
0
101
Member Avatar for mattyd

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 …

Member Avatar for JorgeM
0
196
Member Avatar for sigitas.darguzas

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 …

Member Avatar for sigitas.darguzas
0
217
Member Avatar for Siberian

The 'innerHTML' property requires a string, not a function like 'write()'. Try: outputResults.innerHTML = "what";

Member Avatar for Siberian
0
261
Member Avatar for showman13

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. …

Member Avatar for showman13
0
135
Member Avatar for chrisschristou

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 …

Member Avatar for rtrethewey
0
216
Member Avatar for BTLSP

Uploading files requires software on the server. If you search for "file upload script", you'll find lots of choices.

Member Avatar for BTLSP
0
127
Member Avatar for faysal.ishtiaq_1

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 …

Member Avatar for sina.ak.3
0
155

The End.