iRev on line Page Editor

10 messages Options
Embed this post
Permalink
Sivakatirswami

iRev on line Page Editor

Reply Threaded More More options
Print post
Permalink
I'm wondering if anyone has already build a page editor, kind of like a
wiki thing... where you are on an iRev page, you click a button and  (in
my case) you get the html content for

<div id="maincontent">

# all the content of the page minus fixed headers and footers etc.
# the area to be edited

</div>

put that into a form field for editing, then send it back and update the
page.

I suspect someone has done this already and if so can you share your
page code?


_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Jim Ault

Re: iRev on line Page Editor

Reply Threaded More More options
Print post
Permalink
One of the tools that is really valuable to those doing web  
programming is:

The free FireBug plugin for FIrefox.
( http://getfirebug.com/ )
Also a lite version for IE, Opera, and Safari

This lets you drill down through all the parts of the web page being  
shown, and then make changes, or copy-paste, or...

In the Firebug panel that pops up on the bottom half of the page,
    Go to 'html' tab, then right-click on "<html>", choose 'Copy Html',
       then paste where you like

The right click menu choices are
Copy Html
Copy Inner Html
Copy XPath
Log Events
Scroll into View
New Attribute...
Inspect in DOM tab
----------------------
Tons of features and info

This is a very well-supported plugin (add on) and used by most anyone  
serious about web design/management.

Jim Ault
Las Vegas

On Nov 7, 2009, at 12:59 PM, Sivakatirswami wrote:

> I'm wondering if anyone has already build a page editor, kind of  
> like a wiki thing... where you are on an iRev page, you click a  
> button and  (in my case) you get the html content for
>
> <div id="maincontent">
>
> # all the content of the page minus fixed headers and footers etc.
> # the area to be edited
>
> </div>
>
> put that into a form field for editing, then send it back and update  
> the page.
>
> I suspect someone has done this already and if so can you share your  
> page code?
>
>
> _______________________________________________
> use-revolution mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

Jim Ault
[hidden email]



_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Sivakatirswami

Re: iRev on line Page Editor

Reply Threaded More More options
Print post
Permalink
But Firebug does not actually save edits back to the web server...I've
used it myself from time to time, but I don't see any place to enter FTP
info for uploading edited content. FB is amazingly useful if you are
trained.... but

I'm looking for an interface for very naive users.  Click, edit, save,
like a wiki, but for an individual page, though they will face the "raw"
html in the div where we let them work.

Should be pretty easy to build in iRev and I'll do it myself later this
week but I just did not want to re-invent this if someone else had done
it already.

Andre... you had a simple CMS right?





Jim Ault wrote:

> One of the tools that is really valuable to those doing web
> programming is:
>
> The free FireBug plugin for FIrefox.
> ( http://getfirebug.com/ )
> Also a lite version for IE, Opera, and Safari
>
> This lets you drill down through all the parts of the web page being
> shown, and then make changes, or copy-paste, or...
>
> In the Firebug panel that pops up on the bottom half of the page,
>    Go to 'html' tab, then right-click on "<html>", choose 'Copy Html',
>       then paste where you like
>
> The right click menu choices are
> Copy Html
> Copy Inner Html
> Copy XPath
> Log Events
> Scroll into View
> New Attribute...
> Inspect in DOM tab
> ----------------------
> Tons of features and info
>
> This is a very well-supported plugin (add on) and used by most anyone
> serious about web design/management.
>
> Jim Ault
> Las Vegas
>
> On Nov 7, 2009, at 12:59 PM, Sivakatirswami wrote:
>
>> I'm wondering if anyone has already build a page editor, kind of like
>> a wiki thing... where you are on an iRev page, you click a button
>> and  (in my case) you get the html content for
>>
>> <div id="maincontent">
>>
>> # all the content of the page minus fixed headers and footers etc.
>> # the area to be edited
>>
>> </div>
>>
>> put that into a form field for editing, then send it back and update
>> the page.
>>
>> I suspect someone has done this already and if so can you share your
>> page code?
>>
>>
>> _______________________________________________
>> use-revolution mailing list
>> [hidden email]
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>
> Jim Ault
> [hidden email]
>
>
>
> _______________________________________________
> use-revolution mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Stephen Barncard-4

Re: iRev on line Page Editor

Reply Threaded More More options
Print post
Permalink
Swami -- check out the incredible  CKEditor 3.0 -- I am working with it at
this very moment... it uses the CDATA form to substitute a custom rich text
window for a <textarea> tag.

It has everything you desire in an online rich text editor and more. Use it
to make an "included" page for the user contributions

yeah, I know - Javascript - but it is a thing of coding beauty...

http://ckeditor.com/

not sure how the licensing works in your case but I think it might be pretty
open..(dare I say free?)


-------------------------
Stephen Barncard
San Francisco
http://houseofcubes.com/disco.irev


2009/11/7 Sivakatirswami <[hidden email]>

> But Firebug does not actually save edits back to the web server...I've used
> it myself from time to time, but I don't see any place to enter FTP info for
> uploading edited content. FB is amazingly useful if you are trained.... but
>
> I'm looking for an interface for very naive users.  Click, edit, save, like
> a wiki, but for an individual page, though they will face the "raw" html in
> the div where we let them work.
>
> Should be pretty easy to build in iRev and I'll do it myself later this
> week but I just did not want to re-invent this if someone else had done it
> already.
>
> Andre... you had a simple CMS right?
>
>
>
>
>
>
> Jim Ault wrote:
>
>> One of the tools that is really valuable to those doing web programming
>> is:
>>
>> The free FireBug plugin for FIrefox.
>> ( http://getfirebug.com/ )
>> Also a lite version for IE, Opera, and Safari
>>
>> This lets you drill down through all the parts of the web page being
>> shown, and then make changes, or copy-paste, or...
>>
>> In the Firebug panel that pops up on the bottom half of the page,
>>   Go to 'html' tab, then right-click on "<html>", choose 'Copy Html',
>>      then paste where you like
>>
>> The right click menu choices are
>> Copy Html
>> Copy Inner Html
>> Copy XPath
>> Log Events
>> Scroll into View
>> New Attribute...
>> Inspect in DOM tab
>> ----------------------
>> Tons of features and info
>>
>> This is a very well-supported plugin (add on) and used by most anyone
>> serious about web design/management.
>>
>> Jim Ault
>> Las Vegas
>>
>> On Nov 7, 2009, at 12:59 PM, Sivakatirswami wrote:
>>
>>  I'm wondering if anyone has already build a page editor, kind of like a
>>> wiki thing... where you are on an iRev page, you click a button and  (in my
>>> case) you get the html content for
>>>
>>> <div id="maincontent">
>>>
>>> # all the content of the page minus fixed headers and footers etc.
>>> # the area to be edited
>>>
>>> </div>
>>>
>>> put that into a form field for editing, then send it back and update the
>>> page.
>>>
>>> I suspect someone has done this already and if so can you share your page
>>> code?
>>>
>>>
>>> _______________________________________________
>>> use-revolution mailing list
>>> [hidden email]
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>>
>>
>> Jim Ault
>> [hidden email]
>>
>>
>>
>> _______________________________________________
>> use-revolution mailing list
>> [hidden email]
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>>  _______________________________________________
> use-revolution mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Jacques Hausser

from integer to floating point

Reply Threaded More More options
Print post
Permalink
In reply to this post by Jim Ault
Can somebody help me ?

I just got something strange with 4-rc-1 and I would like

I have two successive handlers, shortened here, but the beginning is  
exact:

command changeClimat niveau
    lock screen
    set cursor to busy
    changeCouleur "Niveau1",niveau
    -- do something
end changeClimat

command changeCouleur lacarte,depart
    put depart * 4 + 1 into debut
    -- do something
end changeCouleur

well, "niveau" is an integer, say 1159
"depart" is also an integer, 1159 as you would expect
... but "debut" is 4638.568627 !!!! (instead of 4637)

The variable names are NOT used anywhere else in the stack. If I past  
and test these handlers in another stack, they work as expected, so it  
is probably due to something in this stack, but what ? I just started  
with it this evening and it contains practically nothing except one  
slider (calling changeclimat with its thumbposition) and six images.

Many thanks for any idea - I have none left...

Jacques

******************************************
Prof. Jacques Hausser
Department of Ecology and Evolution
Biophore / Sorge
University of Lausanne
CH 1015 Lausanne
please use my private address:
6 route de Burtigny
CH-1269 Bassins
tel/fax: ++ 41 22 366 19 40
mobile: ++ 41 79 757 05 24
E-Mail: [hidden email]
*******************************************

_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Stephen Barncard-4

Re: from integer to floating point

Reply Threaded More More options
Print post
Permalink
when working with sliders or any time fractional numbers might involved,
it's useful to use the round(  function on such situations.
-------------------------
Stephen Barncard
San Francisco
http://houseofcubes.com/disco.irev


2009/11/7 Jacques Hausser <[hidden email]>

> Can somebody help me ?
>
> I just got something strange with 4-rc-1 and I would like
>
> I have two successive handlers, shortened here, but the beginning is exact:
>
> command changeClimat niveau
>   lock screen
>   set cursor to busy
>   changeCouleur "Niveau1",niveau
>   -- do something
> end changeClimat
>
> command changeCouleur lacarte,depart
>   put depart * 4 + 1 into debut
>   -- do something
> end changeCouleur
>
> well, "niveau" is an integer, say 1159
> "depart" is also an integer, 1159 as you would expect
> ... but "debut" is 4638.568627 !!!! (instead of 4637)
>
> The variable names are NOT used anywhere else in the stack. If I past and
> test these handlers in another stack, they work as expected, so it is
> probably due to something in this stack, but what ? I just started with it
> this evening and it contains practically nothing except one slider (calling
> changeclimat with its thumbposition) and six images.
>
> Many thanks for any idea - I have none left...
>
> Jacques
>
> ******************************************
> Prof. Jacques Hausser
> Department of Ecology and Evolution
> Biophore / Sorge
> University of Lausanne
> CH 1015 Lausanne
> please use my private address:
> 6 route de Burtigny
> CH-1269 Bassins
> tel/fax:        ++ 41 22 366 19 40
> mobile: ++ 41 79 757 05 24
> E-Mail: [hidden email]
> *******************************************
>
> _______________________________________________
> use-revolution mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Sarah Reichelt-2

Re: from integer to floating point

Reply Threaded More More options
Print post
Permalink
In reply to this post by Jacques Hausser
> The variable names are NOT used anywhere else in the stack. If I past and
> test these handlers in another stack, they work as expected, so it is
> probably due to something in this stack, but what ? I just started with it
> this evening and it contains practically nothing except one slider (calling
> changeclimat with its thumbposition) and six images.

It's an oddity of scrollbars that they appear to produce integers, but
actually they are floating point numbers. Round the thumbPositon
before sending it on and everything should be OK.

Cheers,
Sarah
_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Sarah Reichelt-2

Re: iRev on line Page Editor

Reply Threaded More More options
Print post
Permalink
In reply to this post by Sivakatirswami
On Sun, Nov 8, 2009 at 6:59 AM, Sivakatirswami <[hidden email]> wrote:
> I'm wondering if anyone has already build a page editor, kind of like a wiki
> thing... where you are on an iRev page, you click a button and  (in my case)
> you get the html content for

I have written a page like this that allows me to edit some of my
pages online. The trick is in setting the page up at the start. I use
text files that contain the actual data and the displaying page reads
that in and formats it for display. This means that my editing page
just needs to list the existing text files and allow me to select one
of them for editing, or create a new text file. The form then saves
the edited or new text back to one of the text files so it can be
displayed as usual.

I make sure to replace ampersands, less-than and greater-than signs
with their HTML entities before saving. And when saving a new file,
On-Rev has a nasty habit of saving the file name at the start, so I
write empty to the file first, then write my text to the file in a
second write).

My editing page is in a protected folder since I don't allow anyone
but me to edit these pages, but I can send you the scripts if you
would like.

Cheers,
Sarah
_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Stephen Barncard-4

Re: iRev on line Page Editor

Reply Threaded More More options
Print post
Permalink
CKEditor 3.0 handles all entities -- no filtering needed, and can display
source on command. It has hooks for saving and loading, etc.

It's output can go right to the page with no coding. The demo even shows an
Ajax thing that pops up the editor in the middle of the text it's about to
edit!

This is *almost* a mini version of CODA in a web page.
-------------------------
Stephen Barncard
San Francisco
http://houseofcubes.com/disco.irev


2009/11/7 Sarah Reichelt <[hidden email]>

> On Sun, Nov 8, 2009 at 6:59 AM, Sivakatirswami <[hidden email]> wrote:
> > I'm wondering if anyone has already build a page editor, kind of like a
> wiki
> > thing... where you are on an iRev page, you click a button and  (in my
> case)
> > you get the html content for
>
> I have written a page like this that allows me to edit some of my
> pages online. The trick is in setting the page up at the start. I use
> text files that contain the actual data and the displaying page reads
> that in and formats it for display. This means that my editing page
> just needs to list the existing text files and allow me to select one
> of them for editing, or create a new text file. The form then saves
> the edited or new text back to one of the text files so it can be
> displayed as usual.
>
> I make sure to replace ampersands, less-than and greater-than signs
> with their HTML entities before saving. And when saving a new file,
> On-Rev has a nasty habit of saving the file name at the start, so I
> write empty to the file first, then write my text to the file in a
> second write).
>
> My editing page is in a protected folder since I don't allow anyone
> but me to edit these pages, but I can send you the scripts if you
> would like.
>
> Cheers,
> Sarah
> _______________________________________________
> use-revolution mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Jacques Hausser

Re: from integer to floating point

Reply Threaded More More options
Print post
Permalink
In reply to this post by Sarah Reichelt-2
Thanks, Sarah and Stephen. It works !
So scrollbars issue bananaskinish integers... useful to know. I did  
never meet this problem till now.

Have a good sunday

Jacques


Le 8 nov. 2009 à 00:22, Sarah Reichelt a écrit :

>> The variable names are NOT used anywhere else in the stack. If I  
>> past and
>> test these handlers in another stack, they work as expected, so it is
>> probably due to something in this stack, but what ? I just started  
>> with it
>> this evening and it contains practically nothing except one slider  
>> (calling
>> changeclimat with its thumbposition) and six images.
>
> It's an oddity of scrollbars that they appear to produce integers, but
> actually they are floating point numbers. Round the thumbPositon
> before sending it on and everything should be OK.
>
> Cheers,
> Sarah
> _______________________________________________
> use-revolution mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

******************************************
Prof. Jacques Hausser
Department of Ecology and Evolution
Biophore / Sorge
University of Lausanne
CH 1015 Lausanne
please use my private address:
6 route de Burtigny
CH-1269 Bassins
tel/fax: ++ 41 22 366 19 40
mobile: ++ 41 79 757 05 24
E-Mail: [hidden email]
*******************************************

_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution