[web2py:11605] Re: form field maxlength

2008-11-10 Thread Kyle Smith
The following is likely what you were looking for to set the maxlength attribute in a single call of the ready() function. $(document).ready(function() { $('#student_last_name').attr('maxlength','4'); $('#student_first_name').attr('maxlength','4'); $('#student_last_name__label').attr

[web2py:11232] Re: Possible bug in IS_URL

2008-11-05 Thread Kyle Smith
> Note that most modern browsers do some conversions transparently, so > you can type spaces and similar in the address bar and those will get > converted in the actual request to %20-s and such - whether you want > to keep that convenience functionality with web2py is a different > m

[web2py:11140] Re: file uploads

2008-11-04 Thread Kyle Smith
You'll need to do this yourself. Check out the jquery multi file upload plugin. http://www.fyneworks.com/jquery/multiple-file-upload/ Kyle On Tue, Nov 4, 2008 at 1:35 PM, BearXu <[EMAIL PROTECTED]> wrote: > I mean can I choose more than one file and then click upload once? > Do I need to design

[web2py:11119] Re: Possible bug in IS_URL

2008-11-04 Thread Kyle Smith
For your unit test there's a few other basic things you should probably be checking. The host portion can contain dashes http://my-site.com The path portion can contain many/most characters ex: http://my-site.com/path_to/my_file_for_'97.pdf In this example there are underscores and an apostrop

[web2py:10539] Re: URL validation problem (RFC?)

2008-10-22 Thread Kyle Smith
nput, but this is not about the IS_URL validator. This > is about web2py utterly rejecting any request that has and apostrophe (or > other RFC-valid punctuation) in the middle of the path. > > -tim > > > Kyle Smith wrote: > > A similar discussion happened shortly af

[web2py:10536] Re: URL validation problem (RFC?)

2008-10-22 Thread Kyle Smith
A similar discussion happened shortly after I started using web2py. If you read through this thread you can see the discussion that Massimo and I had on the topic. You probably want to jump down to around message 13 in the thread. http://groups.google.com/group/web2py/browse_frm/thread/414723e11c9