473,414 Members | 1,618 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Loading page and staring half way down

I'm trying to go to a new page, but I want it to jump straight to a
specific part of the page instead of starting at the top of the page.

Anyone got any idea on how this is done?

I was trying to get it to work with a <a name="here"> tag, but the
browser ignores the #here on the end of my cgi script name.

I tried using javascript and the onload event to rewrite the url, but
I couldn't get that to work either.

Is it possible to go to a web page and have it start half way down, or
can you only do this on the same page?

Kerrin
Jul 23 '05 #1
8 3715
On 26 Sep 2004 05:32:54 -0700, Kerrin wrote:

I am not sure I understand you correctly, but..
Is it possible to go to a web page and have it start half way down, or
can you only do this on the same page?
Sure, this should start you part way down the JS FAQ
<http://www.jibbering.com/faq/#FAQ4_32>
I was trying to get it to work with a <a name="here"> tag, but the
browser ignores the #here on the end of my cgi script name.


There must be somthing wrong with your
a) HTML (or the HTML your CGI script is writing)
b) CGI script
c) Browser

I would put my money on a) or b), and my first suggestion is
to produce a static HTML page that you have validated* and
can link to an anchor before you proceed.

* <http://validator.w3.org/>

HTH

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.lensescapes.com/ Images that escape the mundane
Jul 23 '05 #2
Sorry, I don't think I was clear about the issue I was having.

The problem is I have a page that links to another page, except I want
it to open the page half way down, and I want to call a cgi script to
get there.
There are multiple pages, and they cross reference each other. Because
of this I want to use a single form to do all the cross referencing,
so the destination and tag name are dynamic.
I was using javascript to modify the form action to append the
#<name>, but IE won't allow me to do this (NetScape was fine and
worked as I wanted).

So now I need the load the page, and then after the page has loaded,
move the page down to the selected section. So when the page loads the
#<name> is not there, and I simply wish to use the onload event to
move the page.

So all I need to know is how do you make javascript move the page to
the <a name="blah"> tag?

Kerrin

Andrew Thompson <Se********@www.invalid> wrote in message news:<13******************************@40tude.net> ...
On 26 Sep 2004 05:32:54 -0700, Kerrin wrote:

I am not sure I understand you correctly, but..
Is it possible to go to a web page and have it start half way down, or
can you only do this on the same page?


Sure, this should start you part way down the JS FAQ
<http://www.jibbering.com/faq/#FAQ4_32>
I was trying to get it to work with a <a name="here"> tag, but the
browser ignores the #here on the end of my cgi script name.


There must be somthing wrong with your
a) HTML (or the HTML your CGI script is writing)
b) CGI script
c) Browser

I would put my money on a) or b), and my first suggestion is
to produce a static HTML page that you have validated* and
can link to an anchor before you proceed.

* <http://validator.w3.org/>

HTH

Jul 23 '05 #3
On 27 Sep 2004 04:50:38 -0700, Kerrin wrote:
Sorry, I don't think I was clear about the issue I was having.
Posting replese on top does not assist clarity
Kerrin, please post comments below and trim..
<http://www.physci.org/codes/javafaq.jsp#netiquette>

See further comments in that style.
Andrew Thompson <Se********@www.invalid> wrote in message news:<13******************************@40tude.net> ...
On 26 Sep 2004 05:32:54 -0700, Kerrin wrote:

I am not sure I understand you correctly, but..
Is it possible to go to a web page and have it start half way down, or
can you only do this on the same page?
Sure, this should start you part way down the JS FAQ
<http://www.jibbering.com/faq/#FAQ4_32> The problem is I have a page that links to another page, except I want
it to open the page half way down, and I want to call a cgi script to
get there.
There are multiple pages, and they cross reference each other. Because
of this I want to use a single form to do all the cross referencing,
so the destination and tag name are dynamic.
This all sounds like a very confusing navigation
system Kerrin, are you sure it is a good idea, rather
than 'heck, we have the technology'?
I was using javascript to modify the form action to append the
#<name>,
This will fail for any browser with JS disabled.

That is not a wise thing to rely on in a navigation system.
A navigation system can be imporved by use of script, but
it needs to be fully functional without it. Which means..
..but IE won't allow me to do this (NetScape was fine and
worked as I wanted).
Netscape with JS enabled, any other UA with JS enabled, ..maybe.
So now I need the load the page, and then after the page has loaded,
move the page down to the selected section. So when the page loads the
#<name> is not there, and I simply wish to use the onload event to
move the page.

So all I need to know is how do you make javascript move the page to
the <a name="blah"> tag?

....
I was trying to get it to work with a <a name="here"> tag, but the
browser ignores the #here on the end of my cgi script name.
.... There must be somthing wrong with your
a) HTML (or the HTML your CGI script is writing)
b) CGI script
c) Browser
d) your basic design
I would put my money on a) or b),


I was wrong, it is seeming like it is d).

Make the site function with JS disabled first, then
improve it with DHTML.

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.lensescapes.com/ Images that escape the mundane
Jul 23 '05 #4
> Posting replese on top does not assist clarity
I was trying to rephrase the entire question and thought it would be
clearer all thogether at the top, instead of spread out in the post
for the sake of it.
As for putting it at the top, I'm sorry, I haven't been a regular
poster in years and thought it was the correct place to put it. Now
you have so politely slapped my wrists I'll be good. And I didn't even
moan about the fact you clearly didn't proof read you post before
posting it (as you can see in the above quote). Oh whoops, I guess I
did.
Kerrin, please post comments below and trim.. Yes, I should have trimmed, we can't all be prefect all the time.
This all sounds like a very confusing navigation
system Kerrin, are you sure it is a good idea, rather
than 'heck, we have the technology'?
Yes, I have got a little carried away with the original idea I had for
this area of the site.
This will fail for any browser with JS disabled.
Well considering that you have no idea what the site is, you have made
an assumption that the site is conventional, which it isn't. I'm
afraid the site that this is for requires JS (it wouldn't be possible
otherwise), so I saw no harm in using it on the area of the site.
d) your basic design
I was wrong, it is seeming like it is d).
I never saw the point of flaming people, why can't people be polite? I
just wanted to know the answer to a question, and I am greatful of
your help.
Make the site function with JS disabled first, then
improve it with DHTML.


I was intending on rethinking this area of the site, but the site as a
whole will require JS.

Kerrin
Jul 23 '05 #5
On 27 Sep 2004 14:21:59 -0700, Kerrin wrote:
Kerrin, please post comments below and trim.. Yes, I should have trimmed, we can't all be prefect all the time.


All the contributors to this thread thus far are human
(so far as I know). That precludes perfect.

Your efforts to trim are appreciated.
This all sounds like a very confusing navigation system ..


Yes, I have got a little carried away with the original idea I had for
this area of the site.


I think that is an important realisation.

Perhaps you need to take a step back from it and take
a pause as you decide how to proceed, and the best form
of the navigation*.
This will fail for any browser with JS disabled.


Well considering that you have no idea what the site is, you have made
an assumption that the site is conventional, which it isn't.


No, I made several assumptions, amongst which were that
the site needs to work meaningfully for users with pure HTML
browsers*, such as..

* Search engines being an important section of that group.
..I'm
afraid the site that this is for requires JS (it wouldn't be possible
otherwise), so I saw no harm in using it on the area of the site.
Pointing them towards a page explaining (with screen shots)
- the wonderful tools you are creating for their benefit
- the technology (JS) upon which it is based
- the way to enable JS in a variety of browsers**.

** This is more important than you might think, as
most web-surfers would not know how to do it.
d) your basic design
I was wrong, it is seeming like it is d).


I never saw the point of flaming people, why can't people be polite?


(chuckles) That was not a flame, your
ass ain't even smokin'! ;-)
..I
just wanted to know the answer to a question, and I am greatful of
your help.


You're welcome!
Make the site function with JS disabled first, then
improve it with DHTML.


I was intending on rethinking this area of the site, but the site as a
whole will require JS.


That's fine. I have sections of my site that only make
sense when the user has Java, but each page (sometimes,
though *very* rarely, it makes sense to have no page at
all) degrades to a simple message for 'no Java' and 'Java
disabled' clients, to let them know what *should* be there.

Perhaps I ahould have made those points more clear in
my original reply.

There is a lot to making a great site, one of the most
fundamental things is to make a site that can be logically
traversed and indexed by the search bots, and that can
only be done in HTML.

But of course, I am making further assumptions (you want
it indexed on Google). Perhaps we might cirvumvent too
many more guesses with an URL.

Where's your site?

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.lensescapes.com/ Images that escape the mundane
Jul 23 '05 #6
Andrew Thompson <Se********@www.invalid> wrote in message news:<m6****************************@40tude.net>.. .
On 27 Sep 2004 14:21:59 -0700, Kerrin wrote: Pointing them towards a page explaining (with screen shots)
- the wonderful tools you are creating for their benefit
- the technology (JS) upon which it is based
- the way to enable JS in a variety of browsers**.

** This is more important than you might think, as
most web-surfers would not know how to do it.
That is a good point, and one I intend to use.
I never saw the point of flaming people, why can't people be polite?


(chuckles) That was not a flame, your
ass ain't even smokin'! ;-)


Well, I found it a little warm for my liking.
But of course, I am making further assumptions (you want
it indexed on Google). Perhaps we might cirvumvent too
many more guesses with an URL.
Yes I will be submitting the site to search engines when it is ready,
but I still have to do that. I am only now writting the manual (which
is the section my question was for.)
Where's your site?


http://kerrin.zapto.org

The site is far from finished. There is plenty wrong with it, that I
intend to fix.

Kerrin
Jul 23 '05 #7
On 28 Sep 2004 03:25:37 -0700, Kerrin wrote:
http://kerrin.zapto.org
I feel we've made more progress in that line, than in
all the previous posts (I have a thing about seeing
what we are talking about)
The site is far from finished.
The first step in a thousand mile journey, ehh?
I have 4 sites, & feel I have reached the second step
of that journey or (waggles hand) maybe the third. ;-)
..There is plenty wrong with it, that I
intend to fix.


Puhh! Enough disclaimers, let's have a quick look.

I will leave the JS comments to those are good at it
( I had you fooled into thinking I was one of them for
a few moments there, didn't I? ;-), instead I will just
make a few quick comments about useability and design.

1) I have no problem seeing the text on the left, but
some will. If your users are not guaranteed better than
18/18 vision, you might think about increasing the contrast,
which you might do by making the text white, or light gray.

2) <http://kerrin.zapto.org/cgi/page.cgi>
In the select for screen size..
a) Some users will be 'not listed' in the list of 4 you
provide, my (relatively old) monitor has 5 settings between
widths of 800&1280 width, and your list does not account for
users with very old screens, moderately hi-tech screens, or
twin screens. You might add three further fields, '<800x600'
'>1600x1200' and 'Other' for the rest.
b) Also, you do not need to put 1600x1200 first to make it default,
simply specify the 'selected' attribute.
<http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.6.1>

3) Just what is that screensize select for? It is unnecessary
for the pages you already have, so I guess it is for functionality
that happens after registering, is that right?

4) Get in touch with your inner validator (very Zen, huhh?)
<http://validator.w3.org/check?uri=http://kerrin.zapto.org/cgi/page.cgi>
Valid HTML is necessary to ensure that everything else
has a solid foundation. If your HTML is not valid,
all bets are off as to how it will render, and how JS
will (or will fail to) interact with it.

5) Ditto the styles..
<http://jigsaw.w3.org/css-validator/validator?uri=http://kerrin.zapto.org/styles.css>

It might pay to put up a page that briefly describes the ultimate
content of the site, perhaps screen shots, to give helpers a better
idea of the appropriateness of your styles and design (especially
in relation to a 'JS only' functionality).

For instance, I have this (vague) impression of a fairly
youthful audience signing up for games and which might
appear in a limited number of standard screen sizes.
(But I still do not know that, and you have not stated!)

HTH

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.lensescapes.com/ Images that escape the mundane
Jul 23 '05 #8
> 1) I have no problem seeing the text on the left, but
some will. If your users are not guaranteed better than
18/18 vision, you might think about increasing the contrast,
which you might do by making the text white, or light gray.
I will be getting new graphics (again) for the site this evening, I'm
not a graphics person, so I'm just putting in what ever I get and
giving feed back on changes. (You should have seen the previous
version! Green text on a blue background!)
2) <http://kerrin.zapto.org/cgi/page.cgi>
In the select for screen size..
a) Some users will be 'not listed' in the list of 4 you
provide
The list there is for testing only, to be honest I don't like that,
and have plans on doing it automatically.
3) Just what is that screensize select for? It is unnecessary
for the pages you already have, so I guess it is for functionality
that happens after registering, is that right?
It's used to calculate how much board can be shown to the user. Don't
feel scared about registering, the site doesn't bite. With out
registering you have seen 1% of the sites functionality (and a very
dull bit at that).
4) Get in touch with your inner validator (very Zen, huhh?)


I will, at a later time.

Kerrin
Jul 23 '05 #9

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

Similar topics

2
by: Rob Tweed | last post by:
I have a customer who is having problems when their Windows 2000/IIS/PHP-based system begins to experience a level of loading that isn't, in my view, unreasonably high. I'm wondering what others...
4
by: MFA | last post by:
Hi All I have one ASP page. During opening this page its taking some time to open as its has to process some asp code. I want to display some animated gif or text showing that page is loading...
4
by: anag | last post by:
I am opening pop up windows from a hint button on several pages in my site. If the user leaves the pop up window open from a previous page, I would like the new hint to open in that window. I...
4
by: Adrian MacNair | last post by:
Hi, I created an image gallery which displays 63 images in a slideshow. The problem is that the show was slow because each image loaded one at a time during the show. No problem right? I just...
7
by: A Causal | last post by:
I'm an experienced C programmer, but I have never worked with any sort of internet programming. I would like to write a program to search for certain character strings in a currently displayed web...
4
by: blackhawk | last post by:
I need to build a web page that has to potentially display a large amount of data in two grids on the same page. The HTML file with all of the formatting is about 7MB in size. This is too large...
3
by: Bala | last post by:
Hi, In my page there is 4 dropdown list boxes.when page loading that time i am loading the nearly 3000 items array. so its taking too much time to load. is it other way fill up the dropdown...
2
by: **Developer** | last post by:
I have a little more info about this problem I can't seem to solve! I know it'll take a minute to study the lising but if you like to sove puzzles there is one there. I have a Form (FV&C)...
4
by: trint | last post by:
I am developing a new website for our company with c# dotNet. There is no problem displaying this website with ie6. Last week I downloaded ie7 because a friend of mine said he could only see half...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
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...
0
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,...
0
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...

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.