Closed Thread Icon

Preserved Topic: (click submit buttom) NO PLEASE, NO OTHER PAGE!!!! (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=21060" title="Pages that link to Preserved Topic: (click submit buttom) NO PLEASE, NO OTHER PAGE!!!! (Page 1 of 1)" rel="nofollow" >Preserved Topic: (click submit buttom) NO PLEASE, NO OTHER PAGE!!!! <span class="small">(Page 1 of 1)</span>\

 
Wakkos
Maniac (V) Mad Scientist

From: Azylum's Secret Lab
Insane since: Oct 2000

posted posted 09-29-2001 23:12

Hey, I think It's my first time here (even looking!) Houston, we have a problem....

I have a CGI and I want to execute a "Onclick" and a "Onblur":
onclick="activate(3); return false;" onfocus="if(this.blur)this.blur()"
Ok, I think that those are the line that i have to modify, but I think I wrong!! (Anyway, I don't know how to modify, doubts with the sintax in perl )

if ($fields{'ok_url'} ne ""){
print "Location: $fields{'ok_url'}\n\n"; exit;
}
else { &thank_you; }

I don't know Why, but I think it's not possible, Heres the script:
script

The HTML form tag goes like this:
<FORM METHOD="POST" ACTION="bnbform.cgi">

FIELDS
<INPUT TYPE="submit" VALUE="Send Mail!"> <input type="reset" value=" Clear-Form">
<!-- SCRIPT CONFIGURATION SECTION -->
<INPUT TYPE="HIDDEN" NAME="required"
VALUE="name,city,submit_by">
<INPUT TYPE="HIDDEN" NAME="data_order"
VALUE="name,city,submit_by,phone,fax,touristic,bussines,comments">
<INPUT TYPE="HIDDEN" NAME="submit_to" VALUE="justdemees@hotmail.com">
<INPUT TYPE="HIDDEN" NAME="automessage" VALUE="mymessage">
<INPUT TYPE="HIDDEN" NAME="outputfile" VALUE="form1">
<INPUT TYPE="HIDDEN" NAME="countfile" VALUE="form1">
<INPUT TYPE="HIDDEN" NAME="emailfile" VALUE="form1">
<INPUT TYPE="HIDDEN" NAME="form_id" VALUE="My Test Form">
<INPUT TYPE="HIDDEN" NAME="ok_url"
VALUE="thanks.html">
<INPUT TYPE="HIDDEN" NAME="not_ok_url"
VALUE="oops.html">
<!-- END OF SCRIPT CONFIGURATION SECTION -->

</FORM>

Thanks guys!!!

Wakkos
Maniac (V) Mad Scientist

From: Azylum's Secret Lab
Insane since: Oct 2000

posted posted 09-29-2001 23:16

Edit> SOrry, I didn't make myself totally clear: I don't want the script taking me to other page nor reloading...

Real Edit> Sorry, I thought I hit the edit buttom....



[This message has been edited by Wakkos (edited 09-29-2001).]

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 09-29-2001 23:41

Wakkos, I don't understand what you're trying to do. Where do you want to put that onClick and onBlur handlers?

Wakkos
Maniac (V) Mad Scientist

From: Azylum's Secret Lab
Insane since: Oct 2000

posted posted 09-30-2001 00:00

Sorry:
I want to execute that function when i make the click on the submit buttom instead of loading another page...

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 09-30-2001 00:09

If you add that to submit button, your form won't be submitted and e-mail won't be sent. So, CGI script must be called first and after that you'll be transferred to new page...

Wakkos
Maniac (V) Mad Scientist

From: Azylum's Secret Lab
Insane since: Oct 2000

posted posted 09-30-2001 00:23

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 10-01-2001 19:29

If you don't want the page to change you can use JS to create the appropriate form in a popup window for the submission.

You can see an example of this here look at the 3rd column about 1/2 way down. take the poll and see what happens.

You could probably also use the XMLHTTP widget that quek uses too but I haven't tried that yet.



:[ Computers let you make more mistakes faster than any other invention in human history, with the possible exceptions of handguns and tequila. ]:

« BackwardsOnwards »

Show Forum Drop Down Menu