473,796 Members | 2,544 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Scrolling display is blurred

41 New Member
Hi

Multiple rows of dynamically created data is retrived from the database and displayed properly.
When I get 50 rows displayed scrolling is necessary.
The problem is when I scroll to see the items at the bottom of the list the rows get blurred (jumbled).

To be specific at the top and bottom rows of the list are displayed properly but in the middle the rows get blurred.

Can you you see something wrong with my code? How can I make this work?

Note: This is part of the code related to the problem

[php]

<?php
include("../config/db_connect_in.p hp");
?>

<html>
<body>

<?php
function ohip_fee_search _result_display ($org_code, $field, $searching, $find, $special,
$services, $schedule_year, $db_id)
{
$mysqli = db_connect();
db_select($mysq li, $db_id);

/*************** ** this section displays the services******* ********/
//search area display area layer and table
echo "<table width=\"99%\" border=\"0\">
<tr align=\"center\ " bgcolor=\"#FFFF FF\" height=\"\">
<td width=\"100%\" >
<div id=\"Layer2\" style=\"positio n:absolute; width:100%; height:320px; z-index:2; left: 4px; top: 510px;\">
<div id=\"pat-dash-scroll-box2\" style=\"overflo w: auto; float: left; width: 100%; height: 310px; margin: 0px; \">\n";


//table begins
echo "<table width=\"99%\" height=\"332\" left =\"40\" align = \"\" border=\"0\" font face =\"arial\">\n ";

/********** determine which and how to select data to display *********/
$data = "SELECT c.code_id, c.fee_code, c.description, m.general_fee,
FROM bill_ohip_fee_c ode c, $fee_master_tab le m
WHERE c.fee_code = m.code
AND c.section_code = '$services'
ORDER BY c.fee_code
";

$result = mysqli_query($m ysqli,$data) or die('Error, bottom query failed');
$num_service = mysqli_num_rows ($result);
for($i=0; $i < $num_service; $i++)
{
$row = mysqli_fetch_ar ray($result);
list($code_id, $fee1_code, $description, $s_fee) = $row;


if($i % 2) //alternate row colour
{
$bgcolor="#eeee e0";
}
else
{
$bgcolor="#ebea e0";
}

//diaplay search results in rows
echo"<tr height=\"10\">
<td width=\"4%\" bgcolor=\"#fff8 dc\" align=\"center\ ">
<input type=\"checkbox \" name=\"fee1_cho ice[$i]\" value=\"$code_i d\"></td>
<td width=\"7%\" bgcolor=\"#fff8 dc\" ><span class=\"style20 \"><strong>$fee 1_code</strong></span></td>
<td width=\"3%\" bgcolor=\"$bgco lor\" height=\"10\">
<input type=\"text\" name=\"fee1_uni t[$i]\" size=\"1\" maxlength=\"2\" value =\"$fee1_unit \"/>
</td>
<td width=\"79%\" bgcolor=\"$bgco lor\" class=\"style20 \"> $description </td>
<td width=\"6%\" align=\"left\"> $s_fee</td>\n";
echo"</tr>\n";


}//end of for loop

echo "</table>\n";
echo "</div>\n";
echo "</div>\n";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
}

?>

</body>
</html>
[/php]
May 24 '07 #1
2 1519
pbmods
5,821 Recognized Expert Expert
Multiple rows of dynamically created data is retrived from the database and displayed properly.
When I get 50 rows displayed scrolling is necessary.
The problem is when I scroll to see the items at the bottom of the list the rows get blurred (jumbled).

To be specific at the top and bottom rows of the list are displayed properly but in the middle the rows get blurred.
In which browser do you experience this? Have you tried using a different browser? If the problem manifests in one browser but not another, the problem may be your HTML code (and in which case, we should move this tread over to the HTML/CSS forum so that you can get more relevant exposure).

If it's occurring in all browsers, post a screenshot. I've never heard of rendered content showing up blurry before.
May 25 '07 #2
assgar
41 New Member
[My problem with the scrolling is solved. It was looking blurred because of a duplicate function displaying the same info.
[php]
Eg.
<?
Function display()
{
Return $multiple_array _values;
}
List() = display();//NOTE: this was creating the duplicate
?>
[/php]
Changed to
[php]
<?
Function display()
{
Return $multiple_array _values;
}
List() = $multiple_array _values
?>
[/php]
May 31 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
7025
by: Kirk | last post by:
Is it possible to stop horizontal scrolling whilst still maintaining vertical scrolling within an <IFRAME> ? Within each page of my site I have an IFRAME for content. For some pages there is very little information to display, thus the frame has no scrolling bars, but on those where there is lots then the vertical scrolling bar appears. However, on two of my pages the horizontal scrolling bar has appeared also - why!? I'm just...
5
16028
by: Steve Belanger | last post by:
Has anybody heard or figured out a way to make a DIV with overflow: scroll to look the same in IE and Firefox in IE i have one table splitted in two, the bottom part is the scrolling (Set to a height of 100%), it displays properly.. But firefox hardly produce the scrollbars on that division, and instead makes the whole page to scroll. I know there is some incompatibility between the two browsers as far as following the CSS standards,...
44
919
by: Jim M | last post by:
I have had great success with using <iframe> with overflow-y set to auto. I can get a similar look with the <iframe> tag. BUT... In all cases I need to have fixed heights. Is there a way to put either tag inside an HTML <TD> and have the same kind of scrolling effect. This would allow me to fill the screen and have the size of the scrolling box change on resize. Thanks in advance.
14
5421
by: Dave | last post by:
My web site is not particularly theme-based, but it contains an Art Gallery I'd like to display in a different perspective. I would like to horizontally scroll it, rather than vertically - as if the viewer is virtually "walking" through the gallery. I'm just attempting this to have this part of the page be different. Is horizontal scrolling okay, or will it throw our browsers into chaos and viewers into insanity? If horizontal scrolling...
2
3833
by: James CC | last post by:
I have a strange bug in C# using windows forms. To make sure it's not some bug with my code, I've gone back to a simple test app, and still see the same behavior. I have created a simple C# Windows MDI Application, as in MSDN, ie : 1) Create Windows Application (Form1), set IsMDIContainer to true 2) Create MainMenu component in the form, with top level '&File', submenu '&New' and '&Close', and another top level '&Window' with MDIList...
8
4810
by: knoxautoguy | last post by:
This problem has consumed a lot of my time, and I'm aftraid someone will tell me that my whole approach to this objective is wrong; however, I would like to know if there is a way to do this. I have a web page divided into two major segments, with the top segment fixed and the bottom segment allowed to scroll, thus giving the look of frames without frames. I also have anchors so that users can click on a letter of the alphabet to jump...
2
1572
by: Gaetan | last post by:
I have some log data maintained in a DB that I would like to display on a web page. Some rows of the DB table are wider than the web page therefore horizontal scrolling will be required to view the data. I cannot use a ListBox web control since it does not support horizontal scrolling. In ASP.Net 2.0, what type of web control can I use to allow horizon scrolling of rows larger than the web page? PS, some article on the web indicates...
11
7655
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, I know I sound like a one-note Johnny on this but I'm still looking for a solution. I need to display characters coming in from a serial port or a socket. I also need to be able to type characters into the display myself - but that's not the main issue at this time. I've tried a scrolling multiline text box but once the original viewable area fills up and it starts scrolling the flashing of the entire area drives me nuts. The...
0
9680
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9528
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10230
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7548
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5442
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5575
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4118
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2926
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.