For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > June 2006 > sequence of function in Javascript









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 sequence of function in Javascript
Lecca Paola

2006-06-17, 7:56 am


Thanks for your help. I solved the problem of the error message "Insecure
$ENV{...} ...".

Now, another question, In my html form after the insertion of data a cgi
perl save them in a file and open a new html page, from which I want to
have the possibility to go back to the form html page, but with all the
field black.
In other terms, after the insertion of the data and the confirmation
message displayed on a new html page, I wish to return from this page to
my form an to insert new data. So I need a black form.

If I specify

<INPUT type="button" value="Insert new" onClick="insertData()">

where the function "insertData()" calls the form html page, I get the
following error message like this

"Unable to find insertion_form.html"

The permission for the access to the directory of the htdocs are ok.
Therefore, why this error?

To avoid this troble my idea was to compose the functions history.back()
and Reset(), but I do not know in which way to do it. For example if I write

<INPUT type="button" value="Insert new" onClick="history.back();Reset()">

I do not obtain what I want.

Have you any idea about how to solve this problem?

Thanks a lot in advance,
Paola.
Sponsored Links







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

Copyright 2008 codecomments.com