Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 cooling their heels in the Monastery: (7)
As of 2020-08-11 07:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (58 votes). Check out past polls.

    Notices?