If this is not the correct newsgroup, please direct me to one better
suited to my request.
I have created a simple online survey (using a form) for a club. For
several reasons we prefer to have the survey results transmitted via
e-mail, to be analyzed by a person rather than a CGI script:
<FORM ID="Club Survey" NAME="Club Survey"
ACTION="mailto: em***@host.com" METHOD="POST" ENCTYPE="text/plain">
or the equivalent. Rather than simply leaving the form in the browser
window after the user clicks the submit button:
<INPUT NAME="Submit Button" TYPE="submit" VALUE="Send Survey" >
we would like to have the browser automatically transfer to another page
("Thank you for participating . . .").
That is, in effect we want one button do two things:
1) Submit the results (via e-mail).
2) Transfer to a new page rather than leaving the form visible in the
browser window.
I admit that my knowledge of Javascript is pretty limited--but not
completely zero. A few times I have been able to adapt scripts that are
offered openly for general use on various web sites. But in this case I
can't find any help.
This seems like a natural thing people would want to do. But as far as
I have been able to tell, I must be the first person who has ever
thought of it. There is a choice of (probably) dozens of scripts that
disable the "submit" button after the first click, but nothing at all
that does what I describe above.
I HAVE modified one script into something that works in some browsers
(code provided upon request), but it would be preferable to find
something that works in all of them (at least in both Netscape and
Internet Explorer). I would be grateful for any suggestions or advice,
either to the newsgroup or directly to my e-mail address 2 1336
In article <40************ ***@earthlink.n et>, Matthew Lybanon says... If this is not the correct newsgroup, please direct me to one better suited to my request.
I have created a simple online survey (using a form) for a club. For several reasons we prefer to have the survey results transmitted via e-mail, to be analyzed by a person rather than a CGI script:
<FORM ID="Club Survey" NAME="Club Survey" ACTION="mailto: em***@host.com" METHOD="POST" ENCTYPE="text/plain">
That's your problem. "mailto" as a form action doesn't work. Use a
server-side process to send the email. How can JavaScript possibly know
if the message has been sent successfully?
--
Hywel I do not eat quiche http://kibo.org.uk/ http://kibo.org.uk/mfaq.php
>I have created a simple online survey (using a form) for a club. For several reasons we prefer to have the survey results transmitted via e-mail, to be analyzed by a person rather than a CGI script:
<FORM ID="Club Survey" NAME="Club Survey" ACTION="mailto :em***@host.com " METHOD="POST" ENCTYPE="text/plain">
or the equivalent. Rather than simply leaving the form in the browser window after the user clicks the submit button:
<INPUT NAME="Submit Button" TYPE="submit" VALUE="Send Survey" >
we would like to have the browser automatically transfer to another page ("Thank you for participating . . .").
That is, in effect we want one button do two things: 1) Submit the results (via e-mail). 2) Transfer to a new page rather than leaving the form visible in the browser window.
<.form ... onsubmit="windo w.location.href ='url_address'" >
Check out this link though before you decide a server-side solution isn't the
way to go. http://www.network23.com/hub/mailto/default.html
I admit that my knowledge of Javascript is pretty limited--but not completely zero. A few times I have been able to adapt scripts that are offered openly for general use on various web sites. But in this case I can't find any help.
This seems like a natural thing people would want to do. But as far as I have been able to tell, I must be the first person who has ever thought of it. There is a choice of (probably) dozens of scripts that disable the "submit" button after the first click, but nothing at all that does what I describe above.
Javascript has been around for nine years. There are not that many ideas which
have not been attempted in Javascript, including disabling your computer. :)
Peace, Vm
Yaz
Providing complicated solutions to simple problems since 1997. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Newbie |
last post by:
OK, this may be impossible since I'm using 3rd party shopping cart ASP
software, but I've been able to finagle a lot of other stuff I thought
wouldn't work, so here we go:
I'm using a form in which users enter numbers to be calculated into a square
footage cost. Upon submitting, the results page uses ASP to give the total
and the chance to add the new totalled item to the cart or try a new
calculation. Part of the cart's software has a...
|
by: Kingdom |
last post by:
I have a SelectBoxes.asp page that is working with multiple selection
dropdown boxes to extract data and total the selection prices.
Tom & Bob were kind enough to give me a big help getting this page
working and it's working just fine, no problems with this page.
However I then would like this data e-mailed using jmail (my host insists
on this method) and that is the function of the sendEMail2.asp page.
This is failing and only giving...
|
by: Du |
last post by:
I'm trying to automate the upload process to yousendit.com, but the file
size doesn't add up and yousendit.com keep rejecting my upload (it accepts
the upload until the very end)
I don't know what i'm missing, I use Fiddler and I got my header and body to
a very close match, but the content-length is slightly off and I got no clue
why
Sorry for the lengthy post, but i have no other way of showing my work
|
by: Atul Bahl |
last post by:
I am not able to reference values by using cross page postings when using
master page.
Currently I am runing on beta 2 of CLR.
Any ideas...
Thanks
Atul
|
by: monomaniac21 |
last post by:
Hi all
Can anyone tell me how to submit a form to update its contents to a db
and then from the page the form is submitted to then submit another
form which is the payment processing data for a site such as paypal?
At the moment im having to have users submit the form and then click a
button on successful submission to take them through to payment
processing and i would like to streamline this process to just require
the submission of...
| |
by: roxanaislam |
last post by:
Submitting Form by pressing the "ENTER" key
--------------------------------------------------------------------------------
Hi:
I have a search form in my application which has 4 dropdown list controls, one text box, one "GO" button, one "reset" button. When the "GO" button is clicked the form gets submitted and the results page is displayed. When I press the "enter" key nothing happens. I want to submit the form by pressing the "enter"...
|
by: Axel Dahmen |
last post by:
Hi,
trying to submit an ASPX form using the key (using IE6) the page is not submitted in my web project.
Trying to debug the pages' JavaScript code I noticed that there's some ASP.NET client script code being executed having a flaw:
function anonymous() {
if (!ValidatedTextBoxOnKeyPress(event)) { event.cancelBubble = true; if (event.stopPropagation) event.stopPropagation(); return false; }
}
|
by: dmjpro |
last post by:
when a page is placed then it can be refresh using JS.
but if i request for a page using AJAX then how can i get the fresh copy every time.
i did that using caching management....
i mean .... adding caching related response headers.
without managing caching , getting a updated copy of a page every time using AJAX is not possible?
plz clear the funda.
|
by: James97212 |
last post by:
I’m trying to request a different page using VB with ASP.
I can do this with Radio Buttons and a Dropdown Box.
How do I setup the “RedirectPage” for a stand alone redirect?
I'm using it in the following condition statment:
<%
If Condition then
Response.Redirect(Request.Form("RedirectPage"))
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |