Page 1 of 1

Scroll Jumps

Posted: Wed Sep 30, 2009 2:28 am
by gracepinas
Hello.



can you help me?

Re: Set Retrieve cookie

Posted: Wed Sep 30, 2009 9:56 am
by jackpf
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.

Scroll Jumps when row is clicked

Posted: Wed Sep 30, 2009 9:07 pm
by gracepinas
jackpf 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.
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 form

the scroll of the table is coded in css
pay.css

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;
 
}
userslist.php

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\" >&nbsp;";
        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&#058;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>";

Re: Scroll Jumps

Posted: Thu Oct 01, 2009 3:16 am
by jackpf
I'm not entirely sure what you mean. Have you got a link to this page?

Re: Scroll Jumps

Posted: Thu Oct 01, 2009 4:36 am
by gracepinas
jackpf wrote:I'm not entirely sure what you mean. Have you got a link to this page?
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 row

Code: Select all

echo "<td onClick=\"javascript&#058;showModule('MasterFile.php','tab=$tabno&id={$Row['empcode']}','get')\"><span id=\"liUser\">{$Row['empcode']}</span><span id=\"liName\">{$Row['ename']}</span></a></td>";


why is it like that?