Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery & PHP and MYSQL IE Problem
    text
    copied!<p>Now All of this code works fine in Firfox but in IE the divs dont change when the php infomation changes.</p> <p>Can some one help me please as i am working on a project and this is holding me back Thank you.</p> <p>Here is the <strong>jQuery Code:</strong></p> <p> $.ajaxSetup({ cache: false }); $(document).ready(function(){ $("#not").css('display','none'); $("#fonline").css('display','none'); $("#not").hide();<br> $("#fonline").hide();<br> $("#shfm").click(function () { $("#not").hide();<br> $("#fonline").toggle(); });</p> <p>$("#notifi").click(function () { $("#fonline").hide();<br> $("#not").toggle(); });</p> <p>});</p> <p>function closeboxes() { $("#fonline").hide(); $("#not").hide(); } function loadContent(id) { $("#contentArea").load("notifications.php?o="+id+""); };</p> <p>$(document).ready(function() {</p> <p>$("#settings").toggle( function () { $(this).html('X Close'); }, function () { $(this).html('Settings'); } ); });</p> <p>function FriendsContent(id) { $("#fArea").load("friends_online.php?fo="+id+""); };</p> <p>$(document).ready(function() { $("#Options").toggle( function () { $(this).html('X Close'); },</p> <p>function () { $(this).html('Options'); } ); });</p> <p>var refreshId = setInterval(function() { $('#fArea').fadeOut("slow").load('response.php').fadeIn("slow"); }, 10000);</p> <p><strong>PHP Code:</strong></p> <p>$cOption = $_GET['fo'];</p> <pre><code>switch($cOption) { case 1: $recordsPerPage = 5; $pageNum = 1; if(isset($_GET['pg'])) { $pageNum = $_GET['pg']; settype($pageNum, 'integer'); } echo "&lt;table width='98%' border='0' cellspacing='0' cellpadding='0'&gt;"; $offset = ($pageNum - 1) * $recordsPerPage; $onlineresult = mysql_query("SELECT * FROM online") or die (mysql_error()); while ($ousers = mysql_fetch_array($onlineresult)) { $onuid = $ousers['uid']; $flist = mysql_query("SELECT * FROM friends_list WHERE fid='$onuid' AND uid='$myid' LIMIT $offset, $recordsPerPage;") or die (mysql_error()); while ($fri = mysql_fetch_array($flist)) { $id = $fir['id']; $uid = $fri['uid']; $fid = $fri['fid']; $userinfomation = mysql_query("SELECT * FROM accounts WHERE id='$fid'"); $userinfo = mysql_fetch_array($userinfomation); $v_tgid = $userinfo['tgid']; echo " &lt;tr class='menutxt2'&gt; &lt;td width='11%' height='21'&gt;&lt;center&gt; &lt;/center&gt;&lt;/td&gt; &lt;td width='50%'&gt;&lt;a href=\"javascript:void(0)\" onClick=\"javascript:chatWith('$v_tgid')\"&gt;$v_tgid&lt;/a&gt;&lt;/td&gt; &lt;td width='39%'&gt;View Profile&lt;/td&gt; &lt;/tr&gt; "; } } echo "&lt;/table&gt;"; $query = "SELECT COUNT(id) AS id FROM friends_list;"; $result = mysql_query($query) or die('Mysql Err. 2'); $row = mysql_fetch_assoc($result); $numrows = $row['id']; $maxPage = ceil($numrows/$recordsPerPage); $nav = ''; for($page = 1; $page &lt;= $maxPage; $page++) { if ($page == $pageNum) { $nav .= "&lt;span class='menutxt'&gt;Pages: $page &lt;/span&gt;"; } else { $nav .= ""; } } if ($pageNum &gt; 1) { $page = $pageNum - 1; $prev = ""; $first = ""; } else { $prev = ''; $first = ''; } if ($pageNum &lt; $maxPage) { $page = $pageNum + 1; $next = ""; $last = ""; } else { $next = ''; $last = ''; } echo "$first &lt;b&gt;$prev&lt;/b&gt; $nav&lt;b&gt; $next&lt;/b&gt; $last"; echo " "; break; case 2: echo 'Options'; break; default: echo 'Whoops, didn\'t understand that option: &lt;i&gt;'.$cOption.'&lt;/i&gt;'; } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload