Scroll Jumps
Posted: Wed Sep 30, 2009 2:28 am
Hello.
can you help me?
can you help me?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Hello thanks for the reply I resolve now that issue by double clicking the table it will send the cookie value...but my problem is the scroll jumps everytime i click the table..posted is the image of my formjackpf wrote:The cookie is set, then the browser sends it back in the headers for the request for each page thereafter.
So, by nature, you won't be able to see it until the next request.
Code: Select all
#userlist
{
clear:both;
float:left;
margin-top:5px;
margin-left:30px;
width:200px;
overflow: auto;
border: #21538a 1px solid;
min-height: 400px!important;
max-height: 400px!important;
height:400px;
}Code: Select all
$TableName1 = "tblemployee";
$query1 = mysql_query("SELECT * from $TableName1");
$tabno=$_GET['tab'];
echo "<div id=\"lblUser\">Employee Code</div>";
echo "<div id=\"lblName\">Employee Name</div>";
echo "<div id=\"userlist\" > ";
echo "<table style=\"margin:0 auto;\" width:\"100%\" margin-top:\"-15px\">";
while ($Row = mysql_fetch_array($query1)) {
echo "<tr style=\"background:white;\">";
echo "<td onClick=\"javascript:showModule('MasterFile.php','tab=$tabno&id={$Row['empcode']}','get')\"><span id=\"liUser\">{$Row['empcode']}</span><span id=\"liName\">{$Row['ename']}</span></a></td>";
echo "</tr>";
}
echo "</table>";
echo "</div>";no i dont have a link..my problem is when i click a row in left table the scroll moves below is the code when i click the rowjackpf wrote:I'm not entirely sure what you mean. Have you got a link to this page?
Code: Select all
echo "<td onClick=\"javascript:showModule('MasterFile.php','tab=$tabno&id={$Row['empcode']}','get')\"><span id=\"liUser\">{$Row['empcode']}</span><span id=\"liName\">{$Row['ename']}</span></a></td>";