Hi,
I don't have much time to help you now, but better formated code
might help others:
> $.fn.ajaxSubmitEmail = function(e) {
> this.submit(function(){
> var params = {};
> $(this).find("[EMAIL PROTECTED], [EMAIL PROTECTED]'text'],
> [EMAIL PROTECTED]'hidden'], [EMAIL PROTECTED], textarea")
> .filter(":enabled").each(function() {
> params[ this.name || this.id ||
> this.parentNode.name || this.parentNode.id ] = this.value;
> });
> $("div#indicate").show();
> $.post(this.getAttribute("action"), params, function(text){
> $("div#indicate").hide();
> $('textarea', "emailform").val('');
> $("div#email").slideUp('fast');
>
> $("div#thereply").html(text).slideDown('slow').highlightFade({
> color:'yellow',
> speed:2000,
> iterator:'sinusoidal'
> });
> });
> return false; });
> }
Christof
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/