Re: [jQuery] Form plugin: default method

2006-10-10 Thread Mike Alsup
Another form thing...  this line in ajaxSubmit:

vars.push({name: 'evaljs', value: 1});

seems to be left over from an older version.  I don't believe we need
this anymore.

Mike

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


Re: [jQuery] Form plugin: default method

2006-10-10 Thread Mike Alsup
> Therefore I propose the default method should be 'GET' as it is the case
> for a form in HTML:

Good catch, Klaus.

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


Re: [jQuery] Form plugin: default method

2006-10-10 Thread Klaus Hartl


Sam Collett schrieb:
> On 10/10/06, Klaus Hartl <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> the objective of the form plugin is to completely mirror the behavior of
>> a standard form.
>>
>> Therefore I propose the default method should be 'GET' as it is the case
>> for a form in HTML:
>>
>> line 50:
>>
>> var mth = mth || f.method || 'POST';
>>
>> should be changed to:
>>
>> var mth = mth || f.method || 'GET';
>>
>>
>> Agreed?
>>
>>
>> -- Klaus
> 
> Is it the default on all browsers? If so, then perhaps that would be a
> good idea.


If not, it would be a bug. From the HTML spec:

method = get|post [CI]
 This attribute specifies which HTTP method will be used to submit 
the form data set. Possible (case-insensitive) values are "get" (the 
default) and "post". See the section on form submission for usage 
information.

http://www.w3.org/TR/html4/interact/forms.html#h-17.3


-- Klaus


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


Re: [jQuery] Form plugin: default method

2006-10-10 Thread Webunity | Gilles van den Hoven
Sam Collett wrote:
> Is it the default on all browsers? If so, then perhaps that would be a
> good idea.
>   
I agree with Klaus, all resources i found point that GET is the default 
method.

-- Gilles

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


Re: [jQuery] Form plugin: default method

2006-10-10 Thread Sam Collett
On 10/10/06, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> Hi,
>
> the objective of the form plugin is to completely mirror the behavior of
> a standard form.
>
> Therefore I propose the default method should be 'GET' as it is the case
> for a form in HTML:
>
> line 50:
>
> var mth = mth || f.method || 'POST';
>
> should be changed to:
>
> var mth = mth || f.method || 'GET';
>
>
> Agreed?
>
>
> -- Klaus

Is it the default on all browsers? If so, then perhaps that would be a
good idea.

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


[jQuery] Form plugin: default method

2006-10-10 Thread Klaus Hartl
Hi,

the objective of the form plugin is to completely mirror the behavior of 
a standard form.

Therefore I propose the default method should be 'GET' as it is the case 
for a form in HTML:

line 50:

var mth = mth || f.method || 'POST';

should be changed to:

var mth = mth || f.method || 'GET';


Agreed?


-- Klaus

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