![]() |
|
|
|
#1 |
|
Hi Folks,
As directed, I got ClientForm and played with it. It is cool! However, I also found a bug: When it parses a form, if the VALUE of a field has not space, it works very well. For example, if a dropdown list, there many options, such as: <option value=foo> .... the value foo will be picked up for sure. But, if there is a space: <option value=foo bar> ..... The *bar* will be missed out. I wish this bug can be fixed in near future. By the way, can somebody helps me on setting parameter of uploading a file. In ClientForm, if I need to upload a text file, I can do it by: form.add_file(..., "text/plain") What about a picture file? What is the counterpart of 'text/plain"? Thanks! Muddy Coder Muddy Coder |
|
|
|
|
#2 |
|
Posts: n/a
|
Muddy Coder wrote:
> Hi Folks, > > As directed, I got ClientForm and played with it. It is cool! However, > I also found a bug: > > When it parses a form, if the VALUE of a field has not space, it works > very well. For example, if a dropdown list, there many options, such > as: > > <option value=foo> .... > > the value foo will be picked up for sure. But, if there is a space: > > <option value=foo bar> ..... > Values should be quoted, although you can omit the quotes if there aren't any spaces in the string: <option value="foo bar"> You can see examples at http://wwwsearch.sourceforge.net/ClientForm/ <input type="checkbox" name="control2" value="foo" id="cbe1"> As you can see, whitespace separates the name=value pairs. > The *bar* will be missed out. I wish this bug can be fixed in near > future. > It's not a bug. MRAB |
|
|
|
#3 |
|
Posts: n/a
|
En Sat, 28 Feb 2009 21:01:56 -0200, Muddy Coder <>
escribió: > By the way, can somebody helps me on setting parameter of uploading a > file. In ClientForm, if I need to upload a text file, I can do it by: > > form.add_file(..., "text/plain") > > What about a picture file? What is the counterpart of 'text/plain"? See http://www.iana.org/assignments/media-types/image/ -- Gabriel Genellina Gabriel Genellina |
|
|
|
#4 |
|
Posts: n/a
|
MRAB wrote:
> Muddy Coder wrote: >> Hi Folks, >> >> When it parses a form, if the VALUE of a field has not space, it works >> very well. For example, if a dropdown list, there many options, such >> as: >> >> <option value=foo> .... >> >> the value foo will be picked up for sure. But, if there is a space: >> >> <option value=foo bar> ..... >> > Values should be quoted, although you can omit the quotes if there > aren't any spaces in the string: > > <option value="foo bar"> > > You can see examples at http://wwwsearch.sourceforge.net/ClientForm/ > > <input type="checkbox" name="control2" value="foo" id="cbe1"> > > As you can see, whitespace separates the name=value pairs. It is also a good habit to have the quotes even when you don't use spaces. Also, knowledge of xHTML in general should come in handy. Lie Ryan |
|
|
|
#5 |
|
Posts: n/a
|
MRAB wrote:
> Muddy Coder wrote: >> Hi Folks, >> >> When it parses a form, if the VALUE of a field has not space, it works >> very well. For example, if a dropdown list, there many options, such >> as: >> >> <option value=foo> .... >> >> the value foo will be picked up for sure. But, if there is a space: >> >> <option value=foo bar> ..... >> > Values should be quoted, although you can omit the quotes if there > aren't any spaces in the string: > > <option value="foo bar"> > > You can see examples at http://wwwsearch.sourceforge.net/ClientForm/ > > <input type="checkbox" name="control2" value="foo" id="cbe1"> > > As you can see, whitespace separates the name=value pairs. It is also a good habit to have the quotes even when you don't use spaces. Also, knowledge of xHTML in general should come in handy. Lie Ryan |
|
|
|
#6 |
|
Posts: n/a
|
MRAB wrote:
> Muddy Coder wrote: >> Hi Folks, >> >> As directed, I got ClientForm and played with it. It is cool! However, >> I also found a bug: >> >> When it parses a form, if the VALUE of a field has not space, it works >> very well. For example, if a dropdown list, there many options, such >> as: >> >> <option value=foo> .... >> >> the value foo will be picked up for sure. But, if there is a space: >> >> <option value=foo bar> ..... >> > Values should be quoted, although you can omit the quotes if there > aren't any spaces in the string: > > <option value="foo bar"> > > You can see examples at http://wwwsearch.sourceforge.net/ClientForm/ > > <input type="checkbox" name="control2" value="foo" id="cbe1"> > > As you can see, whitespace separates the name=value pairs. > >> The *bar* will be missed out. I wish this bug can be fixed in near >> future. >> > It's not a bug. Or, if it is, it's a bug in the web page, not ClientForm! regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ Steve Holden |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can we make Java web report just by drag and drop? | freezea | Software | 0 | 08-13-2009 07:06 AM |
| Crystal Report | Koteswarr | Software | 1 | 06-02-2009 12:20 PM |
| Crystal stops displaying data when new field added to a report | nickmellor | Software | 0 | 01-14-2009 01:07 AM |
| changing Crystal report table at run time | rakesh201180 | Software | 1 | 10-22-2008 10:58 AM |
| DVD sales likely nearing global peak: report. | Allan | DVD Video | 0 | 12-09-2005 04:52 AM |