emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Feature request: javascript expand collapse
@ 2009-07-14 16:21 Xin Shi
  2009-07-16 21:11 ` Bastien
  0 siblings, 1 reply; 11+ messages in thread
From: Xin Shi @ 2009-07-14 16:21 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 438 bytes --]

Hello  Experts,

I'm wondering if it's easy to implement the "javascript expand collapse" in
the published page.

For example: in this page:

http://en.wikipedia.org/wiki/Emacs

One can click the [hide]  or [show] beside the Contents.


Probably in the org file, we can use:

**** A Detailed section  [+]

to indicate this collapse?

[This might be  work for Sebastian again :-), but I think this feature shall
be useful. ]

Thanks!

Xin

[-- Attachment #1.2: Type: text/html, Size: 621 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Feature request: javascript expand collapse
  2009-07-14 16:21 Feature request: javascript expand collapse Xin Shi
@ 2009-07-16 21:11 ` Bastien
  2009-07-19 15:02   ` Xin Shi
  0 siblings, 1 reply; 11+ messages in thread
From: Bastien @ 2009-07-16 21:11 UTC (permalink / raw)
  To: Xin Shi; +Cc: emacs-orgmode

Hi Xin,

Xin Shi <shixin111@gmail.com> writes:

> I'm wondering if it's easy to implement the "javascript expand collapse" in the
> published page.
>
> [This might be  work for Sebastian again :-), but I think this feature
> shall be useful. ]

How does it differ from what Sebastian already implemented?

-- 
 Bastien

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

* Re: Feature request: javascript expand collapse
  2009-07-16 21:11 ` Bastien
@ 2009-07-19 15:02   ` Xin Shi
  2009-07-19 16:35     ` Matthew Lundin
  2009-07-19 17:00     ` Bastien
  0 siblings, 2 replies; 11+ messages in thread
From: Xin Shi @ 2009-07-19 15:02 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 923 bytes --]

Hi Bastien,


Thanks for coming back to my request!

I'm not sure if Sebastian has already implemented it or not. I saw my
friends using a software on Mac called aquaminds to produce webnotes, and
that "expand" button is very useful when presenting across the internet
during net-work meeting.

Here is the one example page (including the "?1" after html):

http://www.aquaminds.com/synergy/index.html?1

On this page, one can see the  minus sign can be clicked and become plus
sign ...

Xin






On Thu, Jul 16, 2009 at 5:11 PM, Bastien <bastienguerry@googlemail.com>wrote:

> Hi Xin,
>
> Xin Shi <shixin111@gmail.com> writes:
>
> > I'm wondering if it's easy to implement the "javascript expand collapse"
> in the
> > published page.
> >
> > [This might be  work for Sebastian again :-), but I think this feature
> > shall be useful. ]
>
> How does it differ from what Sebastian already implemented?
>
> --
>  Bastien
>

[-- Attachment #1.2: Type: text/html, Size: 1531 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Feature request: javascript expand collapse
  2009-07-19 15:02   ` Xin Shi
@ 2009-07-19 16:35     ` Matthew Lundin
  2009-07-19 17:02       ` Xin Shi
  2009-07-19 17:00     ` Bastien
  1 sibling, 1 reply; 11+ messages in thread
From: Matthew Lundin @ 2009-07-19 16:35 UTC (permalink / raw)
  To: Xin Shi; +Cc: Bastien, emacs-orgmode

Xin Shi <shixin111@gmail.com> writes:
>
> I'm not sure if Sebastian has already implemented it or not. I saw my
> friends using a software on Mac called aquaminds to produce webnotes,
> and that "expand" button is very useful when presenting across the
> internet during net-work meeting.
>
> Here is the one example page (including the "?1" after html):
>
> http://www.aquaminds.com/synergy/index.html?1
>
> On this page, one can see the  minus sign can be clicked and become
> plus sign ...

Perhaps it's not exactly what you're looking for, but you can already
get javascript folding of an exported org file using org-info.js.

For an example click on the "toggle view" button on the following page:

http://orgmode.org/worg/code/org-info-js/#sec-1

Best,
Matt

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

* Re: Feature request: javascript expand collapse
  2009-07-19 15:02   ` Xin Shi
  2009-07-19 16:35     ` Matthew Lundin
@ 2009-07-19 17:00     ` Bastien
  2009-07-19 17:59       ` Xin Shi
  1 sibling, 1 reply; 11+ messages in thread
From: Bastien @ 2009-07-19 17:00 UTC (permalink / raw)
  To: Xin Shi; +Cc: emacs-orgmode

Xin Shi <shixin111@gmail.com> writes:

> I'm not sure if Sebastian has already implemented it or not. I saw my friends
> using a software on Mac called aquaminds to produce webnotes, and that "expand"
> button is very useful when presenting across the internet during net-work
> meeting.
>
> Here is the one example page (including the "?1" after html):
>
> http://www.aquaminds.com/synergy/index.html?1
>
> On this page, one can see the  minus sign can be clicked and become plus sign
> ...

Ah, I see.  Still, I find Sebastian's design far better: no need to look
for this little needle (the "minus" sign), just click on the title of a
section... 

-- 
 Bastien

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

* Re: Feature request: javascript expand collapse
  2009-07-19 16:35     ` Matthew Lundin
@ 2009-07-19 17:02       ` Xin Shi
  0 siblings, 0 replies; 11+ messages in thread
From: Xin Shi @ 2009-07-19 17:02 UTC (permalink / raw)
  To: Matthew Lundin; +Cc: Bastien, emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1081 bytes --]

Hi Matt,

Thanks for your response. I knew the "toggle" button, but it's not what I
need. However, I think based on the current system, it would not be too hard
to add those "expand" on ...

Xin


On Sun, Jul 19, 2009 at 12:35 PM, Matthew Lundin <mdl@imapmail.org> wrote:

> Xin Shi <shixin111@gmail.com> writes:
> >
> > I'm not sure if Sebastian has already implemented it or not. I saw my
> > friends using a software on Mac called aquaminds to produce webnotes,
> > and that "expand" button is very useful when presenting across the
> > internet during net-work meeting.
> >
> > Here is the one example page (including the "?1" after html):
> >
> > http://www.aquaminds.com/synergy/index.html?1
> >
> > On this page, one can see the  minus sign can be clicked and become
> > plus sign ...
>
> Perhaps it's not exactly what you're looking for, but you can already
> get javascript folding of an exported org file using org-info.js.
>
> For an example click on the "toggle view" button on the following page:
>
> http://orgmode.org/worg/code/org-info-js/#sec-1
>
> Best,
> Matt
>

[-- Attachment #1.2: Type: text/html, Size: 1772 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Feature request: javascript expand collapse
  2009-07-19 17:00     ` Bastien
@ 2009-07-19 17:59       ` Xin Shi
  2009-07-19 18:03         ` Bastien
  0 siblings, 1 reply; 11+ messages in thread
From: Xin Shi @ 2009-07-19 17:59 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 965 bytes --]

Hi Bastien,

On Sun, Jul 19, 2009 at 1:00 PM, Bastien <bastienguerry@googlemail.com>wrote:

> Xin Shi <shixin111@gmail.com> writes:
>
> > I'm not sure if Sebastian has already implemented it or not. I saw my
> friends
> > using a software on Mac called aquaminds to produce webnotes, and that
> "expand"
> > button is very useful when presenting across the internet during net-work
> > meeting.
> >
> > Here is the one example page (including the "?1" after html):
> >
> > http://www.aquaminds.com/synergy/index.html?1
> >
> > On this page, one can see the  minus sign can be clicked and become plus
> sign
> > ...
>
> Ah, I see.  Still, I find Sebastian's design far better: no need to look
> for this little needle (the "minus" sign), just click on the title of a
> section...
>

In my opinion, there is no directly contradict with Sebastian's design, they
are targeting to different tasks. It'll be nice it we can include both ...
:)

Xin



>
> --
>  Bastien
>

[-- Attachment #1.2: Type: text/html, Size: 1731 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Feature request: javascript expand collapse
  2009-07-19 17:59       ` Xin Shi
@ 2009-07-19 18:03         ` Bastien
  2009-07-21  0:55           ` Xin Shi
  0 siblings, 1 reply; 11+ messages in thread
From: Bastien @ 2009-07-19 18:03 UTC (permalink / raw)
  To: Xin Shi; +Cc: emacs-orgmode

Hi Xin,

Xin Shi <shixin111@gmail.com> writes:

> In my opinion, there is no directly contradict with Sebastian's design, they
> are targeting to different tasks. It'll be nice it we can include both ... :)

But...  to me clicking on the title or clicking on a small button would
achieve the same function: i.e. unfold the section.  I don't see where
there are two different tasks - but maybe I don't understand :/

-- 
 Bastien

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

* Re: Feature request: javascript expand collapse
  2009-07-19 18:03         ` Bastien
@ 2009-07-21  0:55           ` Xin Shi
  2009-07-21  5:58             ` Bastien
  2009-07-27 11:32             ` Sebastian Rose
  0 siblings, 2 replies; 11+ messages in thread
From: Xin Shi @ 2009-07-21  0:55 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1117 bytes --]

Hi Bastien,

I'm sorry that I didn't explain it clearly. Here is what I mean. For
instance, one can  open this page:

http://orgmode.org/Changes.htm

All one can do is to click the sections and read each pages. If a certain
page turns out to be very long, there is no easy way to make it shorter in
the first place, then click on the needed parts.  One might say that you can
always put those into different sections, but I think it's just another
option for people.  If it sounds too complicated, we can just leave with
this and wait until more people need ... :)

Thanks!

Xin



On Sun, Jul 19, 2009 at 2:03 PM, Bastien <bastienguerry@googlemail.com>wrote:

> Hi Xin,
>
> Xin Shi <shixin111@gmail.com> writes:
>
> > In my opinion, there is no directly contradict with Sebastian's design,
> they
> > are targeting to different tasks. It'll be nice it we can include both
> ... :)
>
> But...  to me clicking on the title or clicking on a small button would
> achieve the same function: i.e. unfold the section.  I don't see where
> there are two different tasks - but maybe I don't understand :/
>
> --
>  Bastien
>

[-- Attachment #1.2: Type: text/html, Size: 1660 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Feature request: javascript expand collapse
  2009-07-21  0:55           ` Xin Shi
@ 2009-07-21  5:58             ` Bastien
  2009-07-27 11:32             ` Sebastian Rose
  1 sibling, 0 replies; 11+ messages in thread
From: Bastien @ 2009-07-21  5:58 UTC (permalink / raw)
  To: Xin Shi; +Cc: emacs-orgmode

Hi Xin,

Xin Shi <shixin111@gmail.com> writes:

> I'm sorry that I didn't explain it clearly. Here is what I mean. For
> instance, one can  open this page:
>
> http://orgmode.org/Changes.html
                                ^

> All one can do is to click the sections and read each pages. If a certain
> page turns out to be very long, there is no easy way to make it shorter in
> the first place, then click on the needed parts. 

The org-info.js script is explicitely done for this, and that's why
there is no long page when browsing the manual from this interface...

> One might say that you can always put those into different sections,
> but I think it's just another option for people.  If it sounds too
> complicated, we can just leave with this and wait until more people
> need ... :)

Yeah :)

-- 
 Bastien

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

* Re: Feature request: javascript expand collapse
  2009-07-21  0:55           ` Xin Shi
  2009-07-21  5:58             ` Bastien
@ 2009-07-27 11:32             ` Sebastian Rose
  1 sibling, 0 replies; 11+ messages in thread
From: Sebastian Rose @ 2009-07-27 11:32 UTC (permalink / raw)
  To: Xin Shi; +Cc: Bastien, emacs-orgmode

Xin Shi <shixin111@gmail.com> writes:

> Hi Bastien,
>
> I'm sorry that I didn't explain it clearly. Here is what I mean. For
> instance, one can  open this page:
>
> http://orgmode.org/Changes.htm
>
> All one can do is to click the sections and read each pages. If a certain
> page turns out to be very long, there is no easy way to make it shorter in
> the first place, then click on the needed parts.


Hi Xin Shi,


that would be possible, but I tried to make the script work with big
pages in the first place. Folding all the paragraphs and lists would
mean to change several hundred <p> elements when loading the page. That's
the reason why I didn't implement it.

   Sebastian

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

end of thread, other threads:[~2009-07-27 11:28 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-14 16:21 Feature request: javascript expand collapse Xin Shi
2009-07-16 21:11 ` Bastien
2009-07-19 15:02   ` Xin Shi
2009-07-19 16:35     ` Matthew Lundin
2009-07-19 17:02       ` Xin Shi
2009-07-19 17:00     ` Bastien
2009-07-19 17:59       ` Xin Shi
2009-07-19 18:03         ` Bastien
2009-07-21  0:55           ` Xin Shi
2009-07-21  5:58             ` Bastien
2009-07-27 11:32             ` Sebastian Rose

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).