#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2012
    Location
    Italy
    Posts
    27
    Rep Power
    0

    Page show correctly only after a refresh


    I'm not sure this is the right place because I'm non sure the cause of the problem.

    Looks here: http://www.brainandbytes.com/mobileapp/condizioni.php

    Scroll down. When you click on ACCETTO the page change but the menu icon on the right of header is wrong.

    Now, refresh the page and you will see all correct! To try again back to the condition page, refresh it, click again ACCETTO and you have the problem again...

    NOTE: if check the page's code you will see I'm using Jquery and Jquery mobile.

    I have the same problem with some other page about $_POST and $_GET from a select/option chose... but this can be another problem...

    Some ideas?

    Thanks in advance.
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2012
    Location
    Italy
    Posts
    27
    Rep Power
    0
    For who don't want to see the page code I put here:

    PHP Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
       "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
        <meta charset="utf-8">
        <title>APP Incontri</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0; maximum-scale=1.0; minimum-scale=1.0; user-scalable=no; target-densityDpi=device-dpi"/>  
        <link rel="stylesheet" href="themes/MobileAPP.min.css" />
        <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.0/jquery.mobile.structure-1.3.0.min.css" />
        <link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400' rel='stylesheet' type='text/css'>
        <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
        <script src="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.js"></script>

        <style type="text/css">
          html,body {     
            font-size:110%;
          } 
          
        </style>
      <script language="javascript">
        window.addEventListener("load",function() {
           // Set a timeout...
           setTimeout(function(){
              // Hide the address bar!
              window.scrollTo(0, 1);
           }, 0);
        });
      </script>
    </head>
    <body>
        <div data-role="page">
            <div data-role="header" data-position="fixed" style="min-height: 60px;">
              <img border="5" src="logo2.png" alt="Logo" style="border-color:#dd0000;float:left;display:inline"/>
            </div>
      <div data-role="content">
        <p>
          <h2>Condizioni Generali</h2>

          <?php
            $fh 
    fopen('condizioni.txt','r');
            while (
    $line fgets($fh)) {
              echo 
    $line;
            }
            
    fclose($fh)
          
    ?>
          
        </p>
      </div>

        <div data-role="content">
          <form name="cond" method="get" action="ricerca.php">
            <table width="100%"><tr>
              <td><a href="ricerca.php">TEST</a></td>
              <td><input type="submit" name="accetto" value="ACCETTO" data-corners="false" style="color: #FFFFFF; background: #00ff00;"/></td>
              <td><input type="submit" name="rifiuto" value="RIFIUTO" data-corners="false" style="color: #FFFFFF; background: #dd0000;"/></td>
            </tr></table>
          </form>
        </div>


        <div data-theme="a" data-role="footer" data-position="fixed" style="min-height:60px;">
          <div style="text-align: center;margin-top:20px;">Copyright APP Incontri</div>
        </div>
      </div>
    </body>
    </html>
    I tried also change if can be different using link (a href) and input submit (form) but there is no difference...

IMN logo majestic logo threadwatch logo seochat tools logo