473,698 Members | 2,149 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

displaying a page at a specified position

hello

i have a form about half way down a web page, which posts criteria for the
WHERE part of an sql which then returns the results at the bottom of the
page.
Trouble is when the page reloads it goes to the top of the page again so the
results are not visible and the user is sometimes unaware that anything has
happened.
I could get a message to display at the top to tell user to scroll to
bottom but i would prefer the page to display at the start of the records(in
a html table) . does anyone know how to do this?

thanks
ian
Nov 7 '06 #1
4 1727

mantrid wrote:
hello

i have a form about half way down a web page, which posts criteria for the
WHERE part of an sql which then returns the results at the bottom of the
page.
Trouble is when the page reloads it goes to the top of the page again so the
results are not visible and the user is sometimes unaware that anything has
happened.
I could get a message to display at the top to tell user to scroll to
bottom but i would prefer the page to display at the start of the records(in
a html table) . does anyone know how to do this?

thanks
ian
make an anchor line above the text <a name="bottom"></a>. Then when you
specify the page in which to reload use href="#bottom" or full path
href="blah.com/page.php#bottom "

Flamer.

Nov 7 '06 #2
mantrid:
does anyone know how to do this?
Maybe you check for the sql LIMIT statement in the query
e.g. when you prefer to display the result records from
333 to 444 you write '... LIMIT 333, 111'

hth
--
Nov 8 '06 #3
mantrid:
i have a form about half way down a web page, which posts criteria for the
WHERE part of an sql which then returns the results at the bottom of the
page.
Trouble is when the page reloads it goes to the top of the page again so the
results are not visible and the user is sometimes unaware that anything has
happened.
I assume that you are redirecting from the processing page (the page
pointed to by your form's action attribute) back to the page the form
is on using a Location header. You can add a fragment to the URL
specified in the Location header (this violates HTTP/1.1 but it is
mentioned in the errata) so that when the user-agent redirects, it
redirects to the anchored position.

--
Jock

Nov 8 '06 #4
thanks all
using an anchor seems the best way
ian

"mantrid" <ia********@vir gin.netwrote in message
news:t%******** *********@newsf e4-win.ntli.net...
hello

i have a form about half way down a web page, which posts criteria for the
WHERE part of an sql which then returns the results at the bottom of the
page.
Trouble is when the page reloads it goes to the top of the page again so
the
results are not visible and the user is sometimes unaware that anything
has
happened.
I could get a message to display at the top to tell user to scroll to
bottom but i would prefer the page to display at the start of the
records(in
a html table) . does anyone know how to do this?

thanks
ian


Nov 8 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4344
by: RAJ | last post by:
In our multi-tier application, we have several ASP.NET user controls which will update the same data source provided by middle tier logic. In this particular scenario we have one user control displaying the contents of the data source, whilst another control updates the datasource via a command buttons implementation of 'Click', an event raised in the 'Handle Postback Events' stage of the control execution life cycle (via the...
3
3828
by: Al Wilkerson | last post by:
Hey, I have a Web Form with a drop down list, textbox, and search button. When click the search button an SQL server database is queried fordata. Once I have the data in a dataset I use the dataset to dynamically create a Html Table control. I want to display the table on another frame page (target="main") without the web form controls (i.e. the textbox, search button, and dropdown list). I just want the table displayed only on the...
4
6694
by: Jason Chan | last post by:
How can I get the month and year a calendar control current displaying? My problem is I want to load a list of event to a calendar so that it display difference style if there a event for a day. My initial idea is load all events from database and store it in a DataTable. In the DayRender event, loop thr the DataTable and see if it equal to e.Day and alter the style if that is. However when the event table is large, it hurt...
2
3013
by: tradmusic.com | last post by:
Hi, I'm new to CSS and, following some advice, created my page like this: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Title</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
3
1165
by: mantrid | last post by:
hello i have a form about half way down a web page, which posts criteria for the WHERE part of an sql which then returns the results at the bottom of the page. Trouble is when the page reloads it goes to the top of the page again so the results are not visible and the user is sometimes unaware that anything has happened. I could get a message to display at the top to tell user to scroll to bottom but i would prefer the page to display...
5
9029
by: debbiedchang | last post by:
Hi, I have a custom user login authentication page. There are times when the login authentication succeeds, but before I redirect to the home page, I want to display a popup with a warning message to tell the user that their password is about to expire. I can't get the popup to display AND the page to redirect (only one or the other). I thought maybe setting the document.location would work, but it still doesn't redirect to the...
6
3268
by: Zeba | last post by:
Hi, I have a page with a calendar and two datalist items - one containing month values and the other, year values. Depending on the month/year value chosen ( in text/string format ) I should be able to display the correct month of the calendar. I thought it would be possible to use the OnSelectedIndexChanged attribute of the dropdown list to call a javascript function that sets the month value of the calendar...Something like :
1
4204
by: littlealex | last post by:
IE6 not displaying text correctly - IE 7 & Firefox 3 are fine! Need some help with this as fairly new to CSS! In IE6 the text for the following page doesn't display properly - rather than being aligned to the top, along with the slideshow and link buttons, you have to scroll down to see the text - how can I make IE6 display correctly? http://geekarama.co.uk/new_home.html here is the code for new_home.html and following that the CSS...
16
10744
Frinavale
by: Frinavale | last post by:
What I'd like to do is take a list and display it's items in a circle. For example (the order of the in the circle doesn't matter..except for Item1, it has to be at the top): Item1 Item2 Item3 Item4 I am hoping to avoid JavaScript for this solution but I don't know if it's possible without JavaScript. Obviously Googling "List Items Circle CSS" is not helping (it just keeps pulling up how to display the bullet...
0
8598
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
9152
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8887
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7709
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6515
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
5858
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4360
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
4613
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3037
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

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.