Petras has asked for the wisdom of the Perl Monks concerning the following question:
These calculations aren't my goal, obviously, or else I would do it with JavaScript. I'd like to be able to load new content into a page without reloading the entire page. Can this be done with CGI?<html> <body> <div ID=changeDIV>The answer will be here</div> <input type=text value="Put a number here" name=input1><br> <input type=button value="x2" onclick='changeDIV.innerHTML=somePerlCGI +(document.input1.value, 2);'> <input type=button value="x3" onclick='changeDIV.innerHTML=somePerlCGI +(document.input1.value, 3);'> </body> </html>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Running CGI Scripts without redirecting the browser
by dws (Chancellor) on Feb 04, 2003 at 09:19 UTC | |
|
Re: Running CGI Scripts without redirecting the browser
by cfreak (Chaplain) on Feb 04, 2003 at 14:42 UTC | |
|
Re: Running CGI Scripts without redirecting the browser
by hardburn (Abbot) on Feb 04, 2003 at 14:51 UTC | |
|
Re: Running CGI Scripts without redirecting the browser
by jacques (Priest) on Feb 04, 2003 at 14:04 UTC |