Jump to content

Bogey

Members
  • Posts

    265
  • Joined

  • Last visited

Posts posted by Bogey

  1. Strange... I don't understand how this happens :S

     

    However, I downloaded the laters version of the template. Got the latest versions of the files.... now it works!!! :)

     

    • Like 1
  2. Hi all,

    I have the same files on different URL's but get an error on one url and don't get one on the other url.

    The used .js files are coming from a template, so nothing I wrote myself.

    This is the error I get from one url, whereas the other url runs fine:

     

    Uncaught SyntaxError: Invalid or unexpected token		jquery.js:2
    Uncaught SyntaxError: missing ) after argument list		plugins.js:689
    Uncaught ReferenceError: jQuery is not defined 			functions.js:1
    at function.js: 

     

    Any clues why one url gives errors and another url doesn't?

     

    The one with errors is a url with lot of other files (its a running website) the url without errors is almost empty, thats an url for testing and so...

     

    This is the code of the page I am loading to test om both url's:

    <!DOCTYPE html>
    <html dir="ltr" lang="en-US">
    <head>
    		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
    	<meta name="author" content="SemiColonWeb" />
    
        <!-- Stylesheets
        ============================================= -->
    	
        <link rel="stylesheet" href="/fotosaangepast/magnific-popup.css" type="text/css" />
    
        
        <!-- External JavaScripts
        ============================================= -->
    	<script type="text/javascript" src="/fotosaangepast/jquery.js"></script>
    	<script type="text/javascript" src="/fotosaangepast/plugins.js"></script>
    
        <!-- Document Title
        ============================================= -->
    	<title>Gallery | Canvas</title>
    	</head>
    	<body>
    		<center>
    			<div class="content-wrap">
    				<div class="container clearfix">
    					<div class="col_full clearfix">
    						<h3>Michel is dit wat?</h3>
    							<div class="masonry-thumbs col-2" data-big="3" data-lightbox="gallery">
    								<a href="/images/BBP/projectfotos/0075/big_1530100247.jpg" data-lightbox="gallery-item"><img class="image_fade" src="/images/BBP/projectfotos/0075/thumb_1530100247.jpg" alt="Gallery Thumb 1"></a>
    								<a href="/images/BBP/projectfotos/0075/big_1530100394.jpg" data-lightbox="gallery-item"><img class="image_fade" src="/images/BBP/projectfotos/0075/thumb_1530100394.jpg" alt="Gallery Thumb 1"></a>
    								<a href="/images/BBP/projectfotos/0075/big_1530100446.jpg" data-lightbox="gallery-item"><img class="image_fade" src="/images/BBP/projectfotos/0075/thumb_1530100446.jpg" alt="Gallery Thumb 1"></a>
    								<a href="/images/BBP/projectfotos/0075/big_1530100626.jpg" data-lightbox="gallery-item"><img class="image_fade" src="/images/BBP/projectfotos/0075/thumb_1530100626.jpg" alt="Gallery Thumb 1"></a>
    								<a href="/images/BBP/projectfotos/0075/big_1530100789.jpg" data-lightbox="gallery-item"><img class="image_fade" src="/images/BBP/projectfotos/0075/thumb_1530100789.jpg" alt="Gallery Thumb 1"></a>
    							</div>
    					</div>
    				</div>
    			</div>
    		</center>
    		
    		
    		
    		
    		<script type="text/javascript" src="/fotosaangepast/functions.js"></script>
    	</body>
    </html>

     

    Any help is really appreciated ;)

     

  3. Hi all,

     

    The problem:

    I am building a website, but this website hasn't to be found by google yet. What can I do te prevent google (and other searchengines) index this website.

     

    At webmaster tools I added the root url to the section "delete URL's", which results that the page can not be found at google anymore... BUT when you search at BING then the page is been found.

     

    How do I stop other search engines to display the website in their results?

  4. Thanks for your quick response!!!!!

     

    on the biggers files it gives an error "1" on the smaller files "0"

     

    When I try phpinfo, then I get this location of my php.ini file:

    /opt/alt/php56/etc

     

    Is it possible to adjust that file? How do I come there?

  5. Hi all,

     

    I have an issue with uploading jpg-files.

    I have 6 jpg's of different bytes... the smaller ones go well, the bigger files don't.

    This are my files:

     

    PictA.jpg 6.535 kB

    PictB.jpg 2.422 kB

    PictC.jpg 2.342 kB

    PictD.jpg 1.919 kB

    PictE.jpg 1.716 kB

    PictF.jpg 1.405 kB

     

    This is the piece of code I am running:

    if (isset($_POST["upload"])){
    	$userfile_name = $_FILES['image']['name'];
    	echo "name: " . $userfile_name . "<br />";
    	$userfile_tmp = $_FILES['image']['tmp_name'];
    	echo "tempname: " . $userfile_tmp . "<br />";
    	$userfile_size = $_FILES['image']['size'];
    	echo "size: " . $userfile_size . "<br />";
    	$userfile_type = $_FILES['image']['type'];
    	echo "type: " . $userfile_type . "<br />";
    	die;
    }
    

    This is the output:

    PictA:

     

     

    name: PictA.jpg
    tempname:
    size: 0
    type:

    PictB:

     

     

    name: PictB.jpg
    tempname:
    size: 0
    type:

    PictC:

     

     

    name: PictD.jpg
    tempname:
    size: 0
    type:

    PictD:

     

     

    name: PictD.jpg
    tempname: /tmp/phpAX5a1G
    size: 1964351
    type: image/jpeg

    PictE:

     

     

    name: PictE.jpg
    tempname: /tmp/phpVmeMDk
    size: 1756983
    type: image/jpeg

    PictF:

     

     

    name: PictF.jpg
    tempname: /tmp/phphSoeDv
    size: 1437825
    type: image/jpeg

     

    How comes the bigger files (A, B and C) don't echo the info and

    the smaller files (D, E and F) do echo the right info?

     

    any clues?

     

  6. Thanks again.

    Your talking about Parallax and Bootstrap together like a Bad Karma.

     

    I've bought a template from Themeforest, those 2 are used together in this template, also the jquery/javascript comes from the template.

     

    I just took a template page and removed a lot of stuff, to only have the above code to test why my webpage (with more code) runs badly.

     

    So I have bought a BAD template? :s

  7. There indeed was a missing closing div-tag, but when adding the missing tag but still the same problem.

    Any other clues? ;)

    Here the updated code:

    <!DOCTYPE html><html dir="ltr" lang="en-US"><head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><meta name="author" content="SemiColonWeb" /><!-- Stylesheets============================================= --><link href="http://fonts.googleapis.com/css?family=Lato:300,400,400italic,600,700|Raleway:300,400,500,600,700|Crete+Round:400italic" rel="stylesheet" type="text/css" /><link rel="stylesheet" href="/css/bootstrap.css" type="text/css" /><link rel="stylesheet" href="/style.css" type="text/css" /><link rel="stylesheet" href="/css/dark.css" type="text/css" /><link rel="stylesheet" href="/css/font-icons.css" type="text/css" /><link rel="stylesheet" href="/css/animate.css" type="text/css" /><link rel="stylesheet" href="/css/magnific-popup.css" type="text/css" /><link rel="stylesheet" href="/css/rebo/rebo.css" type="text/css" /> <link rel="stylesheet" href="/css/responsive.css" type="text/css" /><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /><!--[if lt IE 9]><script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script><![endif]--> <!-- External JavaScripts============================================= --><script type="text/javascript" src="/js/jquery.js"></script><script type="text/javascript" src="/js/plugins.js"></script> <!-- Document Title============================================= --><title>TestingPage</title></head><body class="stretched"><!-- Document Wrapper============================================= --><div id="wrapper" class="clearfix"><section id="slider" class="slider-parallax full-screen with-header force-full-screen clearfix"><section id="section-home" class="page-section"><div class="full-screen force-full-screen fade" style="background: url('/images/0_test/testpic.jpg') center center no-repeat; background-size: 100% 100%;"> </div></section></section><!-- Header============================================= --><header id="header" class="full-header"> </header><!-- #header end --><!-- Content============================================= --><section id="content"><div class="content-wrap"><section id="section-contact" class="page-section topmargin-lg"><div class="heading-block center"><h2 id='h2color'>Contact</h2><!-- Google Map============================================= --><div style="width:100%;overflow:hidden"><section id="google-map" class="gmap slider-parallax" style="width:80%;margin:0 auto;"></section></div><script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script><script type="text/javascript" src="/js/jquery.gmap.js"></script><script type="text/javascript">$('#google-map').gMap({address: 'Buikslotermeerplein 2000 Amsterdam, the Netherlands',maptype: 'ROADMAP',zoom: 15,markers: [{address: "Buikslotermeerplein 2000 Amsterdam, the Netherlands",html: '<div style="width: 300px;"><h4 style="margin-bottom: 8px;">Hallo, hier zit <span>Kiddo's at home</span></h4><p class="nobottommargin">De <strong>gastouder</strong> van Rosmalen.</p></div>',icon: {image: "images/icons/map-icon-red.png",iconsize: [32, 39],iconanchor: [13,39]}}],doubleclickzoom: false,controls: {panControl: true,zoomControl: true,mapTypeControl: true,scaleControl: false,streetViewControl: false,overviewMapControl: false}});</script><!-- Google Map End --><!-- Content============================================= --></div></section></div></section><!-- #content end --><!-- Footer============================================= --><footer id="footer" class="dark"><div class="container"></div><!-- Copyrights============================================= --><div id="copyrights">  </div><!-- #copyrights end --></footer><!-- #footer end --></div><!-- #wrapper end --><!-- Footer Scripts============================================= --><script type="text/javascript" src="js/functions.js"></script></body></html>
  8. I don't know if I am on the right sub place here (HTML/XHTML) but not sure where to put this questions.

     

    I am building a website for my niece and came to a problem with the google maps api.

     

    Could you look at this URL:

    http://www.naks.nl/index2.php

     

    IE runs okay (its a miracle! haha)

    FF and Chrome don't run okay :(

     

    When page loaded everything looks fine.

    When scroll all to bottom and refresh, everything looks fine.

    When at bottom and scroll back 1 or 2 or 3 times and then refresh, then Google Maps part (partly) dissapears.

     

    Any clues?

     

    Her is my code:

    <!DOCTYPE html><html dir="ltr" lang="en-US"><head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><meta name="author" content="SemiColonWeb" /><!-- Stylesheets============================================= --><link href="http://fonts.googleapis.com/css?family=Lato:300,400,400italic,600,700|Raleway:300,400,500,600,700|Crete+Round:400italic" rel="stylesheet" type="text/css" /><link rel="stylesheet" href="/css/bootstrap.css" type="text/css" /><link rel="stylesheet" href="/style.css" type="text/css" /><link rel="stylesheet" href="/css/dark.css" type="text/css" /><link rel="stylesheet" href="/css/font-icons.css" type="text/css" /><link rel="stylesheet" href="/css/animate.css" type="text/css" /><link rel="stylesheet" href="/css/magnific-popup.css" type="text/css" /><link rel="stylesheet" href="/css/rebo/rebo.css" type="text/css" /> <link rel="stylesheet" href="/css/responsive.css" type="text/css" /><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /><!--[if lt IE 9]><script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script><![endif]--> <!-- External JavaScripts============================================= --><script type="text/javascript" src="/js/jquery.js"></script><script type="text/javascript" src="/js/plugins.js"></script> <!-- Document Title============================================= --><title>TestingPage</title></head><body class="stretched"><!-- Document Wrapper============================================= --><div id="wrapper" class="clearfix"><section id="slider" class="slider-parallax full-screen with-header force-full-screen clearfix"><section id="section-home" class="page-section"><div class="full-screen force-full-screen fade" style="background: url('/images/0_test/testpic.jpg') center center no-repeat; background-size: 100% 100%;"> </div></section></section><!-- Header============================================= --><header id="header" class="full-header"> </header><!-- #header end -->        <!-- Content        ============================================= -->        <section id="content">            <div class="content-wrap"><section id="section-contact" class="page-section topmargin-lg"><div class="heading-block center">                        <h2 id='h2color'>Contact</h2><!-- Google Map============================================= --><div style="width:100%;overflow:hidden"><section id="google-map" class="gmap slider-parallax" style="width:80%;margin:0 auto;"></section></div><script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script><script type="text/javascript" src="/js/jquery.gmap.js"></script><script type="text/javascript">$('#google-map').gMap({address: 'Buikslotermeerplein 2000 Amsterdam, the Netherlands',maptype: 'ROADMAP',zoom: 15,markers: [{address: "Buikslotermeerplein 2000 Amsterdam, the Netherlands",html: '<div style="width: 300px;"><h4 style="margin-bottom: 8px;">Hallo, hier zit <span>Kiddo's at home</span></h4><p class="nobottommargin">De <strong>gastouder</strong> van Rosmalen.</p></div>',icon: {image: "images/icons/map-icon-red.png",iconsize: [32, 39],iconanchor: [13,39]}}],doubleclickzoom: false,controls: {panControl: true,zoomControl: true,mapTypeControl: true,scaleControl: false,streetViewControl: false,overviewMapControl: false}});</script><!-- Google Map End --><!-- Content============================================= -->                    </div></section>        </section><!-- #content end -->        <!-- Footer        ============================================= -->        <footer id="footer" class="dark">            <div class="container">            </div>            <!-- Copyrights            ============================================= -->            <div id="copyrights">                           </div><!-- #copyrights end -->        </footer><!-- #footer end --></div><!-- #wrapper end --><!-- Footer Scripts============================================= --><script type="text/javascript" src="js/functions.js"></script></body></html>
  9. Hi all,

     

    This is my test.php:

    <?phpinclude($_SERVER["DOCUMENT_ROOT"]."/config.php"); //Include de config met username en passwords$hostname = 'localhost';$username = $GLOBALS["dbuser"];$password = $GLOBALS["dbpass"];$dbname = $GLOBALS["dbname"];try{$conn = new PDO("mysql:host=$hostname;dbname=$dbname", $username, $password);$sql = "SELECT * FROM " . $GLOBALS["adres"];foreach ($conn->query($sql) as $row){$name = $row['naam'];$street = $row['straat'];}/*** close the database connection ***/$dbh = null;}catch(PDOException $e){echo $e->getMessage();}echo $name;?><table id="table1"><tr><td><font>Name</font></td><td class='tableBracket'>:</td><td><input type='text' value='<?php echo $name;?>'/></td></tr></table>
    When $row['name'] in database is test's, then I got this:
    test's
    Name :test (in textbox)
    When $row['name'] in database is test"s, then I got this:
    test"s
    Name :test"s (in textbox)
    So the issue is with the ' or " stored in database.
    I know I has to be with this line
    value='<?php echo $name;?>'
    browser wil read is like:
    value=' test'
    Replacing the single quote's after value= to double quotes hels, but then it would fail when double quotes are in database.
    What would you suggestions be?
    Store it in database like this: test's instead of test's?
  10. @davej: When viewing this post in IE11 then I see is correct;

    this works fine in IE11:

    <form id='testForm' action="showPreview.php" method="GET"><input name="a" value="test_é"/><button class="button radius" id='buttonsendReview' type='submit' title=''>SEND (js)</button></form>

    Returns: test: test_é

     

    @justsomeguy: For example test's returns ok, but á, à, é, è dont return.

     

    @ingolme: Al used files saved as UTF, but still no change.... or do I need the UTF-8 (no BOM)?

  11. Hi all,

     

    When user fills in a e-acute (for example: test_é) then the "é" is shown in all browsers, except in IE. Any help would be appreciated ;)

     

    Here is the code:

    index.php

    <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><title>Test</title> <meta http-equiv="X-UA-Compatible" content="IE=Edge"/><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><meta http-equiv="Content-Language" content="nl"/> <meta name="robots" content="index,follow"/><meta name="description" content=""/><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/> <script>var xmlhttp;function run_xmlhttp(){if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safarixmlhttp=new XMLHttpRequest();}else {// code for IE6, IE5xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}} function showPreview(sender, targetDiv){var name = document.getElementById(sender).value;alert(name);run_xmlhttp();xmlhttp.onreadystatechange=function() {if (xmlhttp.readyState==4 && xmlhttp.status==200) {document.getElementById(targetDiv).innerHTML=xmlhttp.responseText;}}xmlhttp.open('GET', 'showPreview.php?a=' + name, true);xmlhttp.send();}</script></head><body><div><div id='reviewFORM'><form id='' action=""><input type="text" id='inputIDname'/><button class="button radius" id='buttonsendReview' onclick="showPreview('inputIDname','reviewFORM')" tabindex='7' type='button' title=''>SEND (js)</button></form></div><!--<div><form id='' action="showPreview.php?a=test_é" method='POST'><input type="text" id='inputIDname'/><button type='submit' class="button radius" id='buttonsendReview' tabindex='7' type='button' title=''>SEND (php)</button></form></div>--></div></body></html>
    showPreview.php
    <?php$sender = stripslashes($_GET['a']);//$sender = str_replace('"',""",$afzender);//replace double quotes//$sender = preg_replace("/'/", "'", $afzender);//escape single quote //echo "nr1: " . htmlspecialchars($sender);//echo "<br />";echo "test: " . $sender;?>

     

×
×
  • Create New...