Manado & Sweden Website Design, Graphic Design

Website Design, Website Development & Graphic Design

Design67 - info@d67.eu

Tips and Tricks

  1. Problem with IE page load flicker, for example, when submitting a form and the next page is mostly similar to the new page or when mouse over on several linked images, this following HTML codes will work to fix that problem,
    <!--[if IE]>
    <meta http-equiv="Page-Enter" content="blendTrans(duration=0)" />
    <meta http-equiv="Page-Exit" content="blendTrans(duration=0)" />
    <![endif]-->

    Note: place the codes above between <HEAD> and </HEAD> tags, to get it to work on IE 8 change the duration to 0.01

  2. Problem with PHP inside Javascript, to get your PHP in your Javascript to work, in the folder with the JavaScript, the .htaccess file should include:
    <FilesMatch "^.*?api.*?$">
    SetHandler php5-script
    </FilesMatch>

    In that above example, any file that includes the string "api" will be processed as PHP. Then in the JavaScript file itself, set the ContentType back to JavaScript:
    <?php
    // Sets the proper content type for javascript
    header
    ("Content-type: application/javascript");
    ?>
    Now you can use <php or ?> tags in the JavaScript