Opened 13 years ago

Closed 8 years ago

#74 closed enhancement (inactive)

Enable and Disable Xinha from a checkbox or other

Reported by: anonymous Owned by: gogo
Priority: normal Milestone:
Component: Xinha Core Version:
Severity: normal Keywords:
Cc:

Description

Users of mine have requested the ability to start and stop/enable and disable Xinha without having to reload the page.

Attachments (1)

replaceElementOnClick.htm (5.9 KB) - added by judah@… 13 years ago.
code to add or remove xinhaarea

Download all attachments as: .zip

Change History (6)

Changed 13 years ago by judah@…

code to add or remove xinhaarea

comment:1 Changed 13 years ago by anonymous

  • Version set to 2.0

i came up with a couple options. check em out.

the borders are just for show. i think what is left is to cancel out the htmlarea auto generation and then use these checkboxes to turn on the htmlarea. to turn off the htmlarea we would have to decide if we are going to erase the textarea. if we erase the textarea then we also have to erase the htmlarea. or we coud play peekaboo. or you decide...

or it could be a one way switch. have it just turn an htmlarea on. if people like it they will be turning it on. if they turn it on and don't like it they can reload the page and not turn it on ever again.

comment:2 Changed 13 years ago by gogo

  • Version 2.0 deleted

comment:3 Changed 12 years ago by tess@…

another idee (for PHP users):

before user can edit there text, place a 'edit' submit-button and a checkbox with > name='editorOff'.

Then get the information from the previous page with $_POST and put before every editor object the statement:

if(!isset($_POST['editorOff'])){

if you like you can also give the user the option to choose for a simple javascript editor.

I hope you can use this

comment:4 Changed 11 years ago by mokhet

Humm, i dont see the point of the attached document which is only creating dynamic buttons and checkbox. Anyway, please refer to ticket #658 for more explanations

http://mokhet.com/xinha/branch_events/examples/on_demand.php
based on the branch : http://svn.xinha.python-hosting.com/branches/mokhet

comment:5 Changed 8 years ago by gogo

  • Resolution set to inactive
  • Status changed from new to closed

Don't know where mokhet got to with the ondemand stuff, but this ticket is inactive, closing.

Note: See TracTickets for help on using tickets.