http://www.perlmonks.org?node_id=1101681


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.