r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!Cheyenne] Discussions about the Cheyenne Web Server

GrahamC
13-May-2011
[10601]
I wrote the basic functions a couple of years ago here http://www.compkarori.co.nz:8000/Googledocs
onetom
14-May-2011
[10602]
we are not talking about the same thing then. u said u were using 
google docs' editor as a text area editor. it didn't sound like u 
were creating an actual google document
GrahamC
14-May-2011
[10603x2]
I was though ... and then using the Api reimporting it
that's why I want an alternative that plays nicely with rsp
onetom
14-May-2011
[10605x3]
and u were deleting the doc afterwards or how?
nice idea actually, because it takes care about autosaving too
( ur site is fucking awesome, btw. i always wanted to thank you for 
it. i learnt a lot from it! )
GrahamC
14-May-2011
[10608x2]
Not deleting it .. just saves as backup on googledocs :)
That's what sites are for .. to share the knowledge !
Maxim
14-May-2011
[10610]
another good site is http://www.codeconscious.comits too bad its 
author doesn't come here anymore.
onetom
14-May-2011
[10611]
thats my other favourite too
Kaj
14-May-2011
[10612]
Graham, do you mean a WYSIWYG HTML editor?
GrahamC
14-May-2011
[10613x3]
Well, yes, but I'm only using a plain text .. so an editor that saves 
the current text regularly.

What I do at present is ... create an empty document on googledocs, 
and save the docid in the database.  I then browse to the doc on 
googledocs, edit it and save it.

I then go back to my rsp page and click on a button that imports 
the document as plain text.
here's how it works http://screencast.com/t/tDIbH8dYj
I guess the wiki editor on Qtask would work for me too.
Kaj
14-May-2011
[10616x2]
I collected links to several HTML editor widgets, but I don't know 
how they would do auto-saving
I guess it would need to be programmed on HTML5 local storage
GrahamC
14-May-2011
[10618]
How does Google do it?
Kaj
14-May-2011
[10619]
Google Docs is an extensive office suite in the cloud, with a server 
backend that does such functionality
GrahamC
14-May-2011
[10620]
Presumably there's some JS that does the saving?
Kaj
14-May-2011
[10621]
In any case. You could program something with a timer that sends 
the edit field to the server via AJAX, but you'd have to program 
the server as well
GrahamC
14-May-2011
[10622]
Do you know of any editors with such timer features?
Kaj
14-May-2011
[10623x2]
I didn't look at them that closely
A standalone editor widget sounds more like something that tries 
not to depend on a server or HTML5
GrahamC
14-May-2011
[10625]
I've seen some editors that are tied closely to php ...
Kaj
14-May-2011
[10626]
If that tickles your fancy
GrahamC
14-May-2011
[10627x2]
Those are the ones I need to avoid!
I guess I'm going to see if I can use tinymce .. http://tinymce.moxiecode.com/tryit/full.php
 just was hoping someone had one working well with rsp already.  
tinymce is overspecced for what I need.
Kaj
14-May-2011
[10629]
Yeah, that's one of the better ones I have bookmarked
GrahamC
14-May-2011
[10630x2]
This is a small editor with ajax support .. but probably no autosave 
http://remiya.com/htmlbox/index.php/12/demo/ajax-demo.html
but html ...
Kaj
14-May-2011
[10632]
Needs JQuery
GrahamC
14-May-2011
[10633x3]
This is odd .. I put the tinymce on my site and I don't see any widgets 
using Chrome but FF works
yet, if I browse to the tinymce website using Chrome, it works there.
Oh well, I'll get it integrated with my web app first and figure 
this out later on.
onetom
14-May-2011
[10636x2]
how about this?
http://rikrikrik.com/jquery/autosave/
or do u need the draft work accessible on serverside already?
GrahamC
14-May-2011
[10638x2]
no, so this is cute.
just need to make sure that if someone navigates away, they don't 
lose work
onetom
14-May-2011
[10640]
is bandwidth an issue? how much is the largest text they might need 
to save?
GrahamC
14-May-2011
[10641]
A couple of pages I guess
onetom
14-May-2011
[10642x2]
because it always gets sent w all the http requests then, if it's 
stored in a cookie. so if u have images in the same domain(/folder) 
for example, then data is sent for those too
imean the saved textarea data
Maxim
15-May-2011
[10644x3]
yeah, using cookies for storage isn't a good idea... also since many 
people are using cookie controlers now.
using server side character based logging of changed text shouldn't 
be a problem.   plus, if the browser breaks, when he comes back he 
finds all his text minus a word or two!


just log character changes and send them to the server at every word 
or line. when the server replies, send the next batch.
(using AJAX)
GrahamC
15-May-2011
[10647]
sounds like I would need to write some JS!
onetom
15-May-2011
[10648]
Maxim: im guessing graham doesnt really like to write JS and i have 
to admit, i don't like to write either if i can write rebol code 
instead OR it's already been written  :)
nve
15-May-2011
[10649]
You got script tiny : http://www.scriptiny.com/2010/02/javascript-wysiwyg-editor/
This site also provide tiny table, tony menu...
GrahamC
15-May-2011
[10650]
well, I got the tinymce working ...