|
Posted by Julien on 11/16/07 10:52
On Nov 16, 12:53 am, Julien <j.a.rouil...@gmail.com> wrote:
> On Nov 16, 12:16 am, "Jonathan N. Little" <lws4...@centralva.net>
> wrote:
>
> > Jonathan N. Little wrote:
> > > Julien wrote:
> > >> Is this possible with Firefox 2 : creating a multi-row HTML button ?
>
> > >> This works with MSIE (versions 6 and 7, and maybe others) :
> > >> <input id='btn_CreateProducts' type='submit' value='Create
> > >> \rproducts' />"
> (...)
> > > <input id="btn_CreateProducts" type="submit" value="Create products"
> > > style="width: 5em; white-space: normal;">
>
> > Note: that above only works in Gecko by my testing. '\r' did not work in
> > any version of MSIE though, not sure how you accomplished it.
>
> When posting my question, I forgot that this HTML code was written
> dynamically by a server side program.
> In this progam's language, \r in a string means "carriage
> return" (CR). So, it was replaced by a real carriage return in the
> button and worked with MSIE.
>
> text$ = "<input id='btn_CreateProducts' type='submit' value='Create
> \rproduct' disabled />"
> Send(text$)
>
I found a ultra-easy way to write a multirow HTML button dynamically:
the linefeed (LF) character must be used to set each new row. This
works with Microsoft Internet Explorer, Firefox and probably other
browsers :
text$ = "<input id='btn_CreateProducts' type='submit' value='Create
\nproduct' disabled />"
Send(text$)
....where \n here inserts a LineFeed character.
Putting a carriage return instead of a linefeed only works with
Microsoft Internet Explorer, not Firefox.
Using only a LF (and no CR) works also on Windows, although the normal
"newline" is normally the CR+LF combination on this OS.
> (skiped)
Julien
Navigation:
[Reply to this message]
|