php - problems with links and submit buttons on a FB app in some browsers -


i'm developing fb application php. it's working browsers.

however there problem when press image link or button, happens entire page reloads , stays in same page. if i'm in index.php , link it's set next.php, page reloads , continues in index.php. happens in ie 9, weird thing happens in firefox of friend of mine uses same version on mac (i tested in pcs , worked fine in on firefox, chrome , opera).

this problem happened in safari to, able solve change relative urls absolute urls, problem still persists on ie , appears on firefox...

i valided code in http://validator.w3.org/. i'm using win 7.

any or suggestions in it's welcome, @ point i'm clueless.

here's code:

<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <?php session_start();  $_session = array();  require_once "configuration/config.php";  $friends = $facebook->api('me/friends');  if(count($friends['data']) < 20)     header('location: https://tratamentoquedadecabelo.com/diogo/notenough.php');  $query_user_participant = "select id user id = $fb_user_id , participant = 1";  $query_minimum_answers = "select * survey_answers user_has_friend_user_id = $fb_user_id";  $res_query_minimum_answers = mysql_query($query_minimum_answers);  $res_query_user_participant = mysql_query($query_user_participant);  if($res_query_user_participant == true && mysql_num_rows($res_query_minimum_answers) > 19) {     //user did study     header('location: https://tratamentoquedadecabelo.com/diogo/studyalreadydone.php'); }  ?>  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">      <head>         <meta http-equiv="content-type" content="text/html;charset=utf-8" />         <title></title>         <link rel="stylesheet" type="text/css" href="css/style.css" />     </head>     <body>         <div id="fb-root"></div>         <script src="https://connect.facebook.net/en_us/all.js"></script>         <script type="text/javascript">             fb.init({             appid : '********************',             status : true, // check login status             cookie : true, // enable cookies allow server access session             xfbml : true // parse xfbml             });         </script>      <script type="text/javascript">         fb.canvas.setsize({ width: 800, height: 715 });     </script>         <br/>         <h2 id="lang_title">choose language</h2>             <div id="british">                 <a href="https://tratamentoquedadecabelo.com/diogo/startpage.php?language=british">                      <img class="effect" src="https://tratamentoquedadecabelo.com/diogo/images/british.jpg" width="200" height="150" alt="british_flag" /></a>             </div>             <div id="portuguese">                 <a href="https://tratamentoquedadecabelo.com/diogo/startpage.php?language=portuguese">                      <img class="effect" src="https://tratamentoquedadecabelo.com/diogo/images/portuguese.jpg" width="200" height="150" alt="portuguese_flag" /></a>              </div>     </body> </html> 

solved problem internet explorer writing line of code @ start of file:

header('p3p:cp="idc dsp cor adm devi taii psa psd ivai ivdi coni our ind cnt"'); 

the problem default ie not allow third party cookies. more here. so, if user manually disables third party cookies kind of problems persist.


Comments

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -