Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by hardburn (Abbot)
on Sep 23, 2014 at 16:45 UTC ( #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
Node Status?
node history
Node Type: note [id://1101681]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2019-09-22 08:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The room is dark, and your next move is ...












    Results (273 votes). Check out past polls.

    Notices?