navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Free FrontPage Templates

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

' Same page' bookmark scenario on a DB results page

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> ' Same page' bookmark scenario on a DB results page
Page: [1]
 
R Clark

 

Posts: 161
From: USA
Status: offline

 
' Same page' bookmark scenario on a DB results page - 11/21/2002 20:56:32   
Let' s say you have a static page that lists 30 items

item 1
item ...
item ...
item 10
item ...
item ...
item 20
item ...
item ...
item 30

and lets say you have bookmarks at item 10, item 20 and item 30.
and lets say that you have these because item 5 and beyond are out of view down the screen and you want to give the viewer a quick jump to the records below.

At the top of the page you have a horizontal (bookmark navigation if you will) line of text;

10..........20............30

and you put hyperlinks to each of the bookmarks that correspond to these numbers to jump down to the corresponding line item.

This is no problem, I do it all the time on the static page, but, now that I am diving into database scenario' s, how would I do the same actions (scenario) in a DB results page allowing me to just jump down the page to an item that is out of view? I am being asked to retain the old static page look (format) and that is why I a looking to do this.

any help would be appreciated.
I hope it' s not another ' not seeing the forest through the trees' thing! [:p]

Thanks
R Clark

Oops, forgive me. I suppose this should have gone in the DB forum.
My bad.

< Message edited by R Clark -- 11/21/2002 5:59:41 PM >
J-man

 

Posts: 936
From: Canada
Status: offline

 
RE: ' Same page' bookmark scenario on a DB results page - 11/22/2002 2:13:48   
so you want to pull images or something from a db, can' t you use hyperlinks on the html page to the db

(in reply to R Clark)
bobby

 

Posts: 11394
Joined: 8/15/1969
From: Seattle WA USA
Status: offline

 
RE: ' Same page' bookmark scenario on a DB results page - 11/22/2002 12:14:23   
Are you hand coding (ASP?) or using the DRW?

_____________________________

If con is the opposite of pro, is Congress the opposite of progress?


:)

(in reply to R Clark)
J-man

 

Posts: 936
From: Canada
Status: offline

 
RE: ' Same page' bookmark scenario on a DB results page - 11/22/2002 12:35:47   
hi, bobby ..... i used the invisible form to auto submit info about a user to a database.

sry, R Clark .... just had to get that off my head.

< Message edited by J-man -- 11/22/2002 12:50:27 PM >

(in reply to R Clark)
rdouglass

 

Posts: 9280
From: Biddeford, ME USA
Status: offline

 
RE: ' Same page' bookmark scenario on a DB results page - 11/22/2002 13:22:37   
Interesting post. I just tried it myself and quickly got it to work (or something like it) using 2 dieted DRW' s. I tried DRW' s ' cause it sounds like you' re not doing a whole lot of hand coding. I was sucessful setting the bookmarks.

The page here lists items sorted by their ID. (There are gaps!) There is a line like you spoke of (...10...20..) What it does in both DRW' s is to check to see if the ID number is evenly divisible by 10:

<%IF (FP_FieldVal(fp_rs," LinkID" )/10)=Fix(FP_FieldVal(fp_rs," LinkID" )/10) THEN%>

If it is, do one thing; if not, do something else. The full code of the page is here.

If this is a heavy traffic site, I would strongly suggest considering some ASP (try to move away from the DRW if possible) since 2 DRW' s can be a significant waste of server resources.

Hope this helps...

(in reply to R Clark)
bobby

 

Posts: 11394
Joined: 8/15/1969
From: Seattle WA USA
Status: offline

 
RE: ' Same page' bookmark scenario on a DB results page - 11/22/2002 14:42:33   
And RD claims not to be a genius... :)

J-man - that was your plan, eh? I wondered what the camoflauge was for...

_____________________________

If con is the opposite of pro, is Congress the opposite of progress?


:)

(in reply to R Clark)
R Clark

 

Posts: 161
From: USA
Status: offline

 
RE: ' Same page' bookmark scenario on a DB results page - 11/22/2002 15:48:43   
rdouglass,

You have done exactly what I wanted to do.
What I do in these pages is list a collection of ' task cards' (an index) and the list can have anywhere from 1 to 100 listed. I just wanted a horizontal menu at the top to jump down the list to a number grouping just like you have done.

I did try the two regions, I just couldn' t get it to work quite right.

Every page I do I put on a diet so that I have straight ASP so this should be fine.

In a corporate cluster@#%* meeting all day but I' ll take a look at your code later. I' m sure it will answer all my questions.

Thank you very much rdouglass

BTW
You know how to make us beginner/intermediate (I thought) users feel good...

from your first paragraph;

" I just tried it myself and quickly got it to work"

Thanks A lot! :)
Just kidding!

Again...Many thanks!

R Clark

(in reply to rdouglass)
rdouglass

 

Posts: 9280
From: Biddeford, ME USA
Status: offline

 
RE: ' Same page' bookmark scenario on a DB results page - 11/22/2002 17:32:59   
Sorry ' bout that - didn' t mean to intimidate anyone...:):) I just meant that it was rough - needed ' polish' ; not that it was easy - and quickly done...:)

(in reply to R Clark)
R Clark

 

Posts: 161
From: USA
Status: offline

 
RE: ' Same page' bookmark scenario on a DB results page - 11/22/2002 20:33:49   
No problem at all! I got a chuckle out of it and thought I would take advantage! :):)

Thanks for your help.

I took a brief look at the code and might be back with questions if that' s OK? I want to utilize something other than the ID but I will try and figure it out first and then let you know.

I have a reason for wanting to use other than the ID but I' ll expand later.

Have a good weekend!

R Clark

(in reply to rdouglass)
R Clark

 

Posts: 161
From: USA
Status: offline

 
RE: ' Same page' bookmark scenario on a DB results page - 11/26/2002 21:06:08   
Just to clarify...

I guess I just assumed that DRW on a diet was " straight asp" .
Let me see if I understand this correctly;

level 1 is DRW straight from FrontPage?

level 2 is DRW on the Spooky Diet?

Level 3 is straight ASP?

My question would be...

Is your scenario of straight ASP, not having to rely on the following?;

<!--#include file=" _fpclass/fpdblib.inc" -->
<!--#include file=" _fpclass/fpdbrgn1.inc" -->
<!--#include file=" _fpclass/fpdbrgn2.inc" -->

Your ASP pages are all inclusive?

I guess I' m just trying to educate myself (expand my knowledge).

Am I in the ball park of how you are thinking when you are describing these scenarios?

Thanks

R Clark

< Message edited by R Clark -- 11/26/2002 6:07:10 PM >

(in reply to R Clark)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: ' Same page' bookmark scenario on a DB results page - 11/27/2002 3:52:04   
It is basically straight ASP (the diet)
What tends to happen, is the include pages you use, contain multiple functions associated with displaying / formatting your data.

As they need to be fairly generic and all encompassing, they amount of code is more than is sometimes required.
So, in a heavily trafficed site, this would put additional load on the server performing processes that could be run more efficiently with straight asp.

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to R Clark)
R Clark

 

Posts: 161
From: USA
Status: offline

 
RE: ' Same page' bookmark scenario on a DB results page - 11/27/2002 16:04:18   

quote:

ORIGINAL: Spooky
So, in a heavily trafficed site, this would put additional load on the server performing processes that could be run more efficiently with straight asp.


Makes sense but just so I am absolutely clear, when you say ' with straight asp' , this means you have written the functions that FrontPage has tried to do for you in the includes page, into your .asp page to eliminate the need for the include?

Would I learn much from the processes in the includes pages if I were to study them in an attempt to learn the coding of the necessary functions that take place or is it more FrontPage talking to itself and it would do more to confuse than to educate?

Thanks Spooky!

R Clark

(in reply to Spooky)
R Clark

 

Posts: 161
From: USA
Status: offline

 
RE: ' Same page' bookmark scenario on a DB results page - 12/10/2002 16:19:29   
quote:

Let' s say you have a static page that lists 30 items

item 1
item ...
item ...
item 10
item ...
item ...
item 20
item ...
item ...
item 30

and lets say you have bookmarks at item 10, item 20 and item 30.
and lets say that you have these because item 5 and beyond are out of view down the screen and you want to give the viewer a quick jump to the records below.

At the top of the page you have a horizontal (bookmark navigation if you will) line of text;

10..........20............30

and you put hyperlinks to each of the bookmarks that correspond to these numbers to jump down to the corresponding line item.


OK, I' m Back
In regards to the above scenario, I' d like to clarify a little bit. I can' t just do a count and grab ten at a time.

Let me explain using a similar scenario:

instead of this...

item 1
item ...
item ...
item 10
item ...
item ...
item 20
item ...
item ...
item 30

What if we had this (I' m using the item numbers to illustrate the results listing), the 7 digit number is my focus...

(item 1 of db results) 6230001
(item 2 of db results) 6230002

(item 3 of db results) 6310001
(item 4 of db results) 6310002
(item 5 of db results) 6310003

(item 6 of db results) 6520001
(item 7 of db results) 6520002
(item 8 of db results) 6520003

(item 9 of db results) 6790001
(item 10 of db results) 6790002


OK, This would be on a much larger scale probably, the results may show a hundred items or so. Notice that the second number is grouped by the first three digits. If the group with 652 as the first three digits was off the screen, I would try and have a link at the top of the page that says " 52" . When someone clicked on 52 at the top of the page, they would jump down to 6520001. These groups could be anywhere from 2 or 3 (as in this example) to 40 or 50 in a ' like' group so I can' t count on an identical count each time. Most people would do a text search or something and the page would produce only the group that you want to look at. However, in my scenario, I am being asked to modernize by using a database and dynamic page but have it look and act the same as the old static page that had bookmarks.

Thanks for any help!

R Clark

PS
Should I tell them no way? :)

< Message edited by R Clark -- 12/10/2002 1:20:50 PM >

(in reply to R Clark)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: ' Same page' bookmark scenario on a DB results page - 12/10/2002 16:30:35   
quote:


Makes sense but just so I am absolutely clear, when you say ' with straight asp' , this means you have written the functions that FrontPage has tried to do for you in the includes page, into your .asp page to eliminate the need for the include?

Yes, the includes are used for various functions - some not required by a simple ask and display. The formatting functions are also generic, they can do many things.
ASP code would be asked to do one thing - display your code the way you want it, not one of 5 or more options.
With coding it yourself, you can use .getrows to more efficiently display it.

quote:


Would I learn much from the processes in the includes pages if I were to study them in an attempt to learn the coding of the necessary functions that take place or is it more FrontPage talking to itself and it would do more to confuse than to educate?


Quite frankly, dont bother. If you want to, concentrate on the parts outside of the includes, and as soon as you feel the need to look inside, resist, and go to www.learnasp.com/learn/ for some classic asp tutorials.




< Message edited by Spooky -- 12/10/2002 4:31:16 PM >


_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to R Clark)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: ' Same page' bookmark scenario on a DB results page - 12/10/2002 16:33:16   
Have you considered paging the results instead of bookmarks?

<< Page 1 of 10 >>

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to R Clark)
R Clark

 

Posts: 161
From: USA
Status: offline

 
RE: ' Same page' bookmark scenario on a DB results page - 12/10/2002 17:54:54   
quote:

Quite frankly, don' t bother. If you want to, concentrate on the parts outside of the includes, and as soon as you feel the need to look inside, resist, and go to www.learnasp.com/learn/ for some classic asp tutorials.


That' s pretty much what I have been doing. I can copy and paste snippets and I am not to bad at editing problems out but I just seem to have this writers block about ' thinking up code' . I can' t seem to cross the hurdle of generating code for my scenario' s instead of plagiarizing and editing. Someday I hope.
I do a lot of tutorials and understand them but when it comes to applying them, if the scenario is even slightly different than the tutorial, I go into brain freeze. I just need to get over the intimidation factor that is plaguing me. I' ll keep at it though!

Thanks for the info.

R Clark

< Message edited by R Clark -- 12/10/2002 2:55:21 PM >

(in reply to Spooky)
R Clark

 

Posts: 161
From: USA
Status: offline

 
RE: ' Same page' bookmark scenario on a DB results page - 12/10/2002 18:04:42   
quote:

Have you considered paging the results instead of bookmarks?

<< Page 1 of 10 >>


I think that it would annoy the users (believe it or not) to do that. For example, I changed a few buttons for more convenience and they wanted it back the way they were used to seeing it.
Once in a rut...!

It is an interesting design tip.

I designed this site from square one, but I can' t seem to get the users to allow me to evolve now. Once they got nestled in...they don' t want any changes in the look or function that they are used to. I' m now forced to make changes programmatically to make it more efficient but doesn' t change the function of process that they see and do.

Can be frustrating at times.

I' ve rambled enough.

As always thanks for your help!

R Clark

< Message edited by R Clark -- 12/10/2002 3:05:29 PM >

(in reply to Spooky)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: ' Same page' bookmark scenario on a DB results page - 12/10/2002 18:30:27   
quote:

I can' t seem to cross the hurdle of generating code for my scenario' s instead of plagiarizing and editing


Youll find that is often the best way to go - why recreate the wheel? if you find something that works, get to know it and use it!



_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to R Clark)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> ' Same page' bookmark scenario on a DB results page
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts