Scroll Jumps

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gracepinas
Forum Newbie
Posts: 15
Joined: Sat Aug 15, 2009 1:04 am

Scroll Jumps

Post by gracepinas »

Hello.



can you help me?
Last edited by gracepinas on Thu Oct 01, 2009 4:37 am, edited 2 times in total.
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Set Retrieve cookie

Post 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.
gracepinas
Forum Newbie
Posts: 15
Joined: Sat Aug 15, 2009 1:04 am

Scroll Jumps when row is clicked

Post 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>";
Attachments
MScroll.JPG
MScroll.JPG (32.13 KiB) Viewed 63 times
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Scroll Jumps

Post by jackpf »

I'm not entirely sure what you mean. Have you got a link to this page?
gracepinas
Forum Newbie
Posts: 15
Joined: Sat Aug 15, 2009 1:04 am

Re: Scroll Jumps

Post 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?
Post Reply