473,715 Members | 2,972 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
3 1167

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:
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 #3
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 #4

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

Similar topics

2
4349
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
3830
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
6696
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
3015
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
5827
by: CD | last post by:
An application is logging faxes sent in SQL2000 image column type. I have found code on the net but what it is doing is prompting to save to local which is fine for single page image. Not good for multiple page faxes. I have not been able to locate an example to load in the browser or how to handle multiple image in the one column. 1) Ideally it would be nice to display back in the browser since some may be multiple images. I am not...
4
1732
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
9030
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
3270
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
4214
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
10751
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
8821
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
9340
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...
0
9196
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...
0
9047
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6646
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
5967
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
4477
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
4738
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2118
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.