[jQuery] Subscribe form / ajax / jQuery ?
Sounds like the third option on this page is what you want:
http://jquery.com/demo/ajax/ (Loaded from a Dynamic HTML File)
Or something like this inside your function:
var addy = $('YourEmailField').value;
$("div#myDiv").load("process.asp",{email:addy});
An offhand question...is using $('YourEmailField').value to get the value of
a form field correct jquery code??
<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
andy@icglink.com
615.370.1530 x737
--------------//--------->
-----Original Message-----
From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On
Behalf Of Luc Pestille
Sent: Wednesday, June 28, 2006 11:21 AM
To: jQuery Discussion.
Subject: [jQuery] Subscribe form / ajax / jQuery ?
Hi again everyone,
Question number 2742356 for the day is this; I've got a one field input form
for subscribing to a mailing list - at the moment it submits to an .asp
script which sets a session variable, redirects and pops up a .js alert (I
didn't write it!).
I want to change this to use jQuery's ajax capabilities so that on
submission the form still uses the script, but when it's done (what does the
script need to return, if anything?) the input will disappear and a new div
will be shown/created. I can do the last bit, but I've never touched ajax,
let alone anything jQuery does with it - how do I go about doing this? Any
little scripts like this will be invaluable in the future.
Thanks,
Luc Pestille
Web Designer
e: luc.pestille@in2.co.uk
t: +44 (0)1628 899 700
f: +44 (0)1628 899 701
In2
Thames House
Mere Park
Dedmere Road
Marlow
Bucks
SL7 1PB
Tel 01628 899700
Fax 01628 899701
e: sales@in2.co.uk
i: www.in2.co.uk
This message (and any associated files) is intended only for the use of
discuss@jquery.com and may contain information that is confidential, subject
to copyright or constitutes a trade secret. If you are not
discuss@jquery.com you are hereby notified that any dissemination, copying
or distribution of this message, or files associated with this message, is
strictly prohibited. If you have received this message in error, please
notify us immediately by replying to the message and deleting it from your
computer. Messages sent to and from us may be monitored. Any views or
opinions presented are solely those of the author Luc.Pestille@in2.co.uk and
do not necessarily represent those of the company.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/