emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* HTML question
@ 2006-05-20 19:15 Carsten Dominik
  2006-05-20 19:41 ` Todd Neal
  2006-05-20 23:01 ` T. V. Raman
  0 siblings, 2 replies; 6+ messages in thread
From: Carsten Dominik @ 2006-05-20 19:15 UTC (permalink / raw)
  To: emacs-orgmode

I am trying to improve the HTML representation of the new checkboxes in 
items.  I found out that I could use

  <INPUT TYPE=CHECKBOX>

to get a pretty checkbox, but that of course gives a checkbox that is 
actually active, so users can select and deselect them - unwanted in 
this case.  I would like a checkbox that shows the state, but cannot be 
changed.  Is there an easy way to do this?

Thanks.

- Carsten

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: HTML question
  2006-05-20 19:15 HTML question Carsten Dominik
@ 2006-05-20 19:41 ` Todd Neal
  2006-05-20 23:01 ` T. V. Raman
  1 sibling, 0 replies; 6+ messages in thread
From: Todd Neal @ 2006-05-20 19:41 UTC (permalink / raw)
  To: emacs-orgmode




Carsten Dominik <dominik@science.uva.nl> writes:

> this case.  I would like a checkbox that shows the state, but cannot
> be changed.  Is there an easy way to do this?

The following appears to work in Firefox. 

<INPUT TYPE=CHECKBOX CHECKED onClick="this.checked=1;"> Permanently Checked 
<INPUT TYPE=CHECKBOX onClick="this.checked=0;"> Permanently Unchecked


Todd

^ permalink raw reply	[flat|nested] 6+ messages in thread

* HTML question
  2006-05-20 19:15 HTML question Carsten Dominik
  2006-05-20 19:41 ` Todd Neal
@ 2006-05-20 23:01 ` T. V. Raman
  2006-05-21  6:09   ` Carsten Dominik
  1 sibling, 1 reply; 6+ messages in thread
From: T. V. Raman @ 2006-05-20 23:01 UTC (permalink / raw)
  To: dominik; +Cc: emacs-orgmode


the bigger issue with this is that legal HTML and XHTML does not
allow you to have a free floating checkbox item outside an html
form element. XForms does allow this, but is probably not what
you're looking for.

>>>>> "Carsten" == Carsten Dominik <dominik@science.uva.nl> writes:
    Carsten> I am trying to improve the HTML representation of
    Carsten> the new checkboxes in items.  I found out that I
    Carsten> could use
    Carsten> 
    Carsten>   <INPUT TYPE=CHECKBOX>
    Carsten> 
    Carsten> to get a pretty checkbox, but that of course gives a
    Carsten> checkbox that is actually active, so users can
    Carsten> select and deselect them - unwanted in this case.  I
    Carsten> would like a checkbox that shows the state, but
    Carsten> cannot be changed.  Is there an easy way to do this?
    Carsten> 
    Carsten> Thanks.
    Carsten> 
    Carsten> - Carsten
    Carsten> 
    Carsten> 
    Carsten> 
    Carsten> _______________________________________________
    Carsten> Emacs-orgmode mailing list Emacs-orgmode@gnu.org
    Carsten> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

-- 
Best Regards,
--raman

      
Email:  raman@users.sf.net
WWW:    http://emacspeak.sf.net/raman/
AIM:    emacspeak       GTalk: tv.raman.tv@gmail.com
PGP:    http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:    irc://irc.freenode.net/#emacs

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: HTML question
  2006-05-20 23:01 ` T. V. Raman
@ 2006-05-21  6:09   ` Carsten Dominik
  2006-05-21  6:42     ` David Emery
  0 siblings, 1 reply; 6+ messages in thread
From: Carsten Dominik @ 2006-05-21  6:09 UTC (permalink / raw)
  To: raman; +Cc: emacs-orgmode


On May 21, 2006, at 1:01, T. V. Raman wrote:

>
> the bigger issue with this is that legal HTML and XHTML does not
> allow you to have a free floating checkbox item outside an html
> form element. XForms does allow this, but is probably not what
> you're looking for.


Hmmm, this is a problem indeed.  I can of course just leave "[ ]" and 
"[X]", but these do not have the same width and look not pretty.  Does 
anyone know how to make a space as wide as "X"?

- Carsten

>
>>>>>> "Carsten" == Carsten Dominik <dominik@science.uva.nl> writes:
>     Carsten> I am trying to improve the HTML representation of
>     Carsten> the new checkboxes in items.  I found out that I
>     Carsten> could use
>     Carsten>
>     Carsten>   <INPUT TYPE=CHECKBOX>
>     Carsten>
>     Carsten> to get a pretty checkbox, but that of course gives a
>     Carsten> checkbox that is actually active, so users can
>     Carsten> select and deselect them - unwanted in this case.  I
>     Carsten> would like a checkbox that shows the state, but
>     Carsten> cannot be changed.  Is there an easy way to do this?
>     Carsten>
>     Carsten> Thanks.
>     Carsten>
>     Carsten> - Carsten
>     Carsten>
>     Carsten>
>     Carsten>
>     Carsten> _______________________________________________
>     Carsten> Emacs-orgmode mailing list Emacs-orgmode@gnu.org
>     Carsten> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
> -- 
> Best Regards,
> --raman
>
>
> Email:  raman@users.sf.net
> WWW:    http://emacspeak.sf.net/raman/
> AIM:    emacspeak       GTalk: tv.raman.tv@gmail.com
> PGP:    http://emacspeak.sf.net/raman/raman-almaden.asc
> Google: tv+raman
> IRC:    irc://irc.freenode.net/#emacs
>
>

--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: HTML question
  2006-05-21  6:09   ` Carsten Dominik
@ 2006-05-21  6:42     ` David Emery
  2006-05-21  6:57       ` Carsten Dominik
  0 siblings, 1 reply; 6+ messages in thread
From: David Emery @ 2006-05-21  6:42 UTC (permalink / raw)
  To: dominik; +Cc: emacs-orgmode

On Date: Sun, 21 May 2006 08:09:46 +0200, Carsten Dominik <dominik@science.uva.nl> wrote:
> 
> On May 21, 2006, at 1:01, T. V. Raman wrote:
> 
> >
> > the bigger issue with this is that legal HTML and XHTML does not
> > allow you to have a free floating checkbox item outside an html
> > form element. XForms does allow this, but is probably not what
> > you're looking for.
> 
> 
> Hmmm, this is a problem indeed.  I can of course just leave "[ ]" and 
> "[X]", but these do not have the same width and look not pretty.  Does 
> anyone know how to make a space as wide as "X"?

This is one way:

<div>[X]</div>
<div>[<span style="visibility:hidden;">X</span>]</div>

Dave

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: HTML question
  2006-05-21  6:42     ` David Emery
@ 2006-05-21  6:57       ` Carsten Dominik
  0 siblings, 0 replies; 6+ messages in thread
From: Carsten Dominik @ 2006-05-21  6:57 UTC (permalink / raw)
  To: David Emery; +Cc: emacs-orgmode

That works, great, thanks.

- Carsten

On May 21, 2006, at 8:42, David Emery wrote:

> <span style="visibility:hidden;">X</span>

--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-05-21  6:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-20 19:15 HTML question Carsten Dominik
2006-05-20 19:41 ` Todd Neal
2006-05-20 23:01 ` T. V. Raman
2006-05-21  6:09   ` Carsten Dominik
2006-05-21  6:42     ` David Emery
2006-05-21  6:57       ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).