Josh:

I found the problem to be a typo in my code (html in a "here document").
I was passing an unterminated <input> element.  It was missing the '/>'
I fixed that and things starting working fine.  Thanks.

Steve

P.S. -- In case you are curious, here are the details of exactly what
happened.  There was a peculiar transformation of the html occurring,
and below is what I observed:

Following is the buggy code fragment before and after ASP processing. 
The '==>' points to the offending line.  Note that after processing,
the <input> tag has been truncated.  The attributes that should be
with the <input> tag have been generously included with the </td>
element.  [This was tough to discover because there was no error
indication other than text entry fields that were not as wide as I
wanted them.]

Before:
    <td style="border: none; width: auto;">
       <input name="$form_element_name" type="text"
==>     style="some style stuff"
    </td>
    </td>
    <td style="some style stuff">
        $req
    </td>

After
    <td style="border: none; width: auto;">
==>     <input value="1" >
==> </td style="some style stuff" name="serial_port-52-serial_port_id" type="text">
    <td style="some style stuff">
        <b>*</b>
    </td>


This is the (good) corrected code fragment before and after ASP
processing.  You will notice it is part of a table, which has been
pruned for clarity).  The '==>' points to the corrected line:

Before:
    <td style="border: none; width: auto;">
        <input name="$form_element_name" type="text"
==>      style="some style stuff" />
    </td>
    </td>
    <td style="some style stuff">
        $req
    </td>

After:
    <td style="border: none; width: auto;">
        <input value="1" style="some style stuff"
==>      name="serial_port-105-serial_port_id" type="text" />
    </td>
    <td style="some style stuff">
        <b>*</b>
    </td>

> -----Original Message-----
> From: Josh Chamas [mailto:josh@;chamas.com]
> Sent: Tuesday, October 15, 2002 1:51 AM
> To: Stephen Bardsley
> Cc: Apache::ASP Mailing List
> Subject: Re: FillInForm and input field style
> 
> 
> Stephen Bardsley wrote:
> > Greetings:
> > 
> > I am experiencing an odd behavior with some form input fields.
> > The input elements have a style attribute defined to control the
> > width of the field, but it seems to be ignored.  I am using
> > FillInForm and I was wondering if there is something special I
> > need to consider to ensure the specified width is maintained.
> > 
> 
> So what does the tag look like in your script, & what does it
> look like afterwards in the HTML output?
> 
> HTML::FillInForm is what is used to do the form filling, so you
> can delve in there to find out why it is parsing things wrong
> for you, if you do not get any other answer.
> 
> If this is merely a matter of using styles, when you might use
> instead SIZE & MAXLENGTH attributes, you should look into using
> those instead.
> 
> Regards,
> 
> Josh
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to