Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: How to refresh content within div in perl CGI ?

by hardburn (Abbot)
on Sep 23, 2014 at 16:45 UTC ( [id://1101681]=note: print w/replies, xml ) Need Help??


in reply to How to refresh content within div in perl CGI ?

There's a way to do this without JavaScript: turn the <div> into a <iframe>. The iframe loads another CGI, which outputs just the updated data.

It's probably better to go the JavaScript route, though.


"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.

Replies are listed 'Best First'.
Re^2: How to refresh content within div in perl CGI ?
by chidori (Novice) on Sep 23, 2014 at 16:57 UTC
    Thanks that sounds interesting. Will look into it.

      While it can work (sort of, in certain ways), please note well this part of the post: It's probably better to go the JavaScript route, though.

      Iframes come with their own problems and Ajax is not that hard.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-03-19 06:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found