Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Generating multiple pages from a single CGi script

by jonadab (Parson)
on Sep 17, 2003 at 19:02 UTC ( [id://292220]=note: print w/replies, xml ) Need Help??


in reply to HTML Display

To change the content on the browser side, you need some kind of client-side technology, such as ECMA script ("Javascript") or a plugin. However, what you describe sounds to me like separate pages. Is there some way your script can initially send only the first page, but include a link (and maybe an HTTP refresh) back to the script with an additional parameter that indicates to print the second page, the third page, or whatever? So, if there's no page set, you send page 1 (with a link with page=2), but if the query string says page=3 you send page 3 and a link with page=4. This is the way all the major search engines do it, I think. If the query string says page=n, you send page n with a link to page=n+1


$;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://292220]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2024-03-28 10:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found