Hi Mike,

I am trying to get the value of a name field - below is part of the form and the JS

Thanx


from page:


<form name="contactForm" id="contactForm" action="" method="post">
......
Your Name<br />
<input type="text" name="name" />
</form>


from JS
$(document).ready(function(){
var options = {
       url: "/contactusSubmit",
       type: 'post',
       success: contactCompleted
   };
$('#contactForm').ajaxForm(options); }); $('#contactForm').submit(function() { //check it's working
       alert($('#contactForm :a').fieldValue());
//$.blockUI( { backgroundColor: '#231b1a', color: '#ffffff', height:'100px', padding:'20px' ,width:'300px'} ); //$.blockUI( '<table cellpadding="0" cellspacing="0" border="0" width="280"><tr><td><img src="/assets/images/4hp_load_logo_3_36.gif" /><\/td><td>Plase Wait...<\/td><\/tr><\/table>' ); //$(this).ajaxSubmit(options); return false; }); function contactCompleted(responseText, statusText){ if(responseText == "true"){
               $('#contactForm').clearForm();
//$.blockUI( '<table cellpadding="0" cellspacing="0" border="0" width="280"><tr><td><img src="/assets/images/4hp_load_logo_3_36.gif" /><\/td><td>Thank you. We will be in contact soon.<\/td><\/tr><\/table>' );
       }else{
// $.blockUI( '<table cellpadding="0" cellspacing="0" border="0" width="280"><tr><td><img src="/assets/images/4hp_load_logo_3_36.gif" /><\/td><td>There is a problem with the server, please try to re-submit the form<\/td><\/tr><\/table>' ); }

var unblock = function(){
           $.unblockUI();
       }
setTimeout(unblock, 1500);
   }




--
___________________________________________________
Timothy M Bowler BSc(Hons) MSc MIET | Technology Director


Or Media
Unit 5 Elm Court
156 -170 Bermondsey Street
London
SE1 3TQ

T: 020 7939 9540
F: 020 7939 9541

___________________________________________________ The information in this e-mail and any attachments is confidential and is intended solely for the addressee. The material may not be reproduced either in whole or in part without permission and may not be used or disclosed without permission. No copies of the entirety or part of the information set out in this email or any attachment may be made without our prior approval. Any views or opinions presented are solely those of the author and do not necessarily represent those of Or Multimedia Limited. If you are not the intended recipient of this email, please contact us at [EMAIL PROTECTED]

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to