|
|
sybperl-l Archive
Up Prev Next
From: "BAHRI, SOFIENNE" <sofienne dot bahri at bell dot ca>
Subject: Re: QUESTION
Date: Sep 3 1999 3:09PM
hi,
I use a cursor because i want to minimize the overhead(ithink). Because
the user normally can get about 1200 records. with he the cursor i can
cash the records and minimize the time to wain for the browser to
display the records.
for the Next Buttom(java) to get the next pages i don't know another
solution to handle this.
Any Help
Michael Peppler wrote:
>
> BAHRI, SOFIENNE writes:
> > Hi folks,
> >
> > my question is when i dispaly a page containing 10 records. I have to
> > dispaly a Buttom named Next(to dispaly the next 10 records). But the
> > buttom is in javascript. how i can call again the query from a java
> > code.
> >
> > !A part of my perl scrip
> > $dbh->ct_cursor(CS_CURSOR_CLOSE, undef, undef, CS_DEALLOC) == CS_SUCCEED
> > || die;
> > $dbh->ct_send;
> > print
> > $q->button(-name=>'next',-value=>'Suivant',-onClick=>"&Next_page");
> > print $q->end_html;
> >
> > print "deuxieme set";
> > Next_page;
> > }#Fin while ct_results
>
> Why is the button a javascript button?
> Why do you use client-side cursors?
>
> Michael
> --
> Michael Peppler -||- Data Migrations Inc.
> mpeppler@peppler.org -||- http://www.mbay.net/~mpeppler
> Int. Sybase User Group -||- http://www.isug.com
> Sybase on Linux mailing list: ase-linux-list@isug.com
--
-----------------------------------------------------------
Sofienne Bahri Bell Canada
Directeur-CSR
700,De la Gauchetière O., RC Mezz, Montréal (PQ) H3B-4L1
Téléphone :+1 514 391 4114
Pagette :+1 514 801 2186
Email :sofienne.bahri@ bell.ca
-----------------------------------------------------------
|