Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Next Record

Status
Not open for further replies.

rene316

Programmer
Jan 14, 2002
81
US
Hello,

I am new to java script and was wondering if mabye I could get some help. I tried searching the forum, but didn't find what I was looking for. What I need to know is, how to do a next record in java script. I don't want to assume that everyone knows what a 2-up or 4-up split is, but to kind of make an easy comparison, the next record function in Word would be the exactly what I want to do. You know, so that when you do labels you don't print 1 record per sheet 10 times or whatever. If I have a 4-up setup, I need it to put records 1,2,3,4 on the same sheet then the next sheet will have 5,6,7,8, etc... Hope I am being clear. Any help will be much appreciated.

Thank you,
Rene
 

It's not really clear (to me) at all. However, if you're looking to style your printing so that only certain elements get printed per page, you're better off asking in the HTML/CSS forum for print CSS commands.

Hope this helps,
Dan


The answers you get are only as good as the information you give!

 
Ok then, let me try to clarify it a little. Imagine you are mailing a postcard that you yourself are printing. You set it up with four cards on one page. Well you dont want it to print each record 4 times per page, that would be a waste of cards. Instead you want it to print four records per page, one in each card, so if you have 8 records, you only get two sheets but all 8 records, instead of 8 sheets with each record 4 time per sheet.
 

Who / what is "it"? A server-side script? The browser?

Is it help with printing you're after, or database record help, or somethinig entirely different?

If printing, then as suggested already, ask in the CSS forum.

Hope this helps,
Dan


The answers you get are only as good as the information you give!

 
Oh, I apologize. This is a server side script. This is in reguards to the database. The end result will be printed, but I need to know how to make it advance a record per area. Say you have a 8.5x11 piece of paper. You draw a line down the middle, horizontally and vertically so that the page is split into 4 equal sections. If you attach a data base without any conditions it will put record 1 in all 4 positions. What I need to happen is, in the first position(the piece is landscape) which would be the top left card, I need record# 1, then in the second position, which would be top right card, I need record# 2, then the third position, which would be bottom left, I need record# 3, then in the fourth position, which would be the bottom right card, I need record# 4, then the next page it generates will do the same thing except, have records, 5-8.
 

If you need to know how to layout a page (regardless of what the content is), then ask in the HTML / CSS forum.

If you need to know the commands for your server-side script to advance to the next record in a recordset, then you'd need to ask in the relevant forum for the server-side technology you are using. If this is ASP written in JavaScript, then this would be the right forum.

Dan


The answers you get are only as good as the information you give!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top