For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > August 2006 > reload a page









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author reload a page
pleaseexplaintome@yahoo.com

2006-08-25, 6:55 pm

Hi, I have a perl/cgi script that includes dynamically created
checkboxes and file names. When a given checkbox is checked I move the
related file. how do I redisplay the page without the checkbox and
file name. In other words, I want to reload the page just as if the
user has entered for the 1st time.

i've tried variations of:

<form action="/cgi-bin/gis.cgi" method="post" onsubmit="doRefresh()">

function doRefresh(){
location.replace("/cgi-bin/page.cgi");
//location.reload("/cgi-bin/page.cgi");
//location.reload("");
}

Thanks for any help

alpha_beta_release

2006-08-28, 3:55 am

http://groups.google.com.my/group/c...182e88d830a54ac


pleaseexplaintome@yahoo.com wrote:
> Hi, I have a perl/cgi script that includes dynamically created
> checkboxes and file names. When a given checkbox is checked I move the
> related file. how do I redisplay the page without the checkbox and
> file name. In other words, I want to reload the page just as if the
> user has entered for the 1st time.
>
> i've tried variations of:
>
> <form action="/cgi-bin/gis.cgi" method="post" onsubmit="doRefresh()">
>
> function doRefresh(){
> location.replace("/cgi-bin/page.cgi");
> //location.reload("/cgi-bin/page.cgi");
> //location.reload("");
> }
>
> Thanks for any help


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com