Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Miscellaneous > Apolyton/Community > wow I did it!!
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
20.Sep: FOURTH CHAPTER IN `HISTORY OF...` PUBLISHED
13.Sep: NEWS ON THE FLY
06.Sep: APOLYTON DONATES TO HURRICANE RELIEF
CivGroups
Apolytoners Hall of Fame (66): Not a Member - Join

bottom of page
   - CIVILIZATION 3 $9.99 - CIVILIZATION 2 from $6.95 - CIVILIZATION 2 from $4.25 - ALPHA CENTAURI + ALIEN CROSSFIRE (laptop collection) from $19.99 - ALPHA CENTAURI PC $9.99 -->
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
Atahualpa is offline Atahualpa
Emperor
Hawthrone
Mar 1999
time: 06:16
  Old Post 28-12-2004 03:17 Visit Atahualpa's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
wow I did it!! Suffering from ads?

The JavaScript edit function: Check it out!

You can directly edit your postings by just double clicking them. After you have finished editing the post, you'll be asked if you want to save it (which then should send a request to the server - not implemented in this example).

Here is a technology preview (download the file).

In this preview you can edit postings of all (2) users, which is not what we would want for the real version, but easy to control. It's cool because it's in place editing! Check it out!

It's not compatible with bbcode yet.

to answer your questions beforehand:
1. I am just a little bit drunk
2. this idea was floating around in my mind for a long time now
3. JS is soo cool
4. CHECK IT OUT!

UPDATE I: Added ability to revert
UPDATE II: Added preview for WYSIWYG editing

Tested on Firefox 1.0, Internet Explorer 6 SP2, Opera 7.54

test.zip has been removed after 4 downloads
test2.zip has been removed after 3 downloads

Attachment: test3.zip
This has been downloaded 2 time(s).

Last edited by Atahualpa on 30-12-2004 at 15:42

Heresson is offline Heresson
King
of frogs
Jun 2000
time: 06:16
  Old Post 28-12-2004 05:42
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

Bravo. I'm so proud of You.
Haven't tried it out yet, though.

Jonny is offline Jonny
Emperor
Nashville, Tennessee, USA
Nov 2000
time: 23:16
  Old Post 28-12-2004 09:14
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Help yourself to an AD-FREE life

That's cool...

But would it be difficult to make it compatible with these boards?

Atahualpa is offline Atahualpa
Emperor
Hawthrone
Mar 1999
time: 06:16
  Old Post 28-12-2004 13:37 Visit Atahualpa's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Tired of ads?

quote:
If you press cancel, it doesnt actually cancel.


Yes, but that is intended. Otherwise you cannot really copy something in from other posts.
The cancel option is when you say cancel and then reload the thread or close it or whatever.
But, you are right I'll think about more sophisticated things, maybe put everything in a form with buttons "Save" and "Revert" below and not use the onBlur Method.

quote:
But would it be difficult to make it compatible with these boards?


Yes I think that should be possible, I try to make it as simple as possible so that the changes will be kept to a minimum.
The bigger problem is that you edit HTML directly and I'd need to convert it to BBCode first. This could get a bit ugly, but probably only requires a single function.

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:16
  Old Post 28-12-2004 17:51 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Put an end to popups!

Does it actually work on all recent browsers?

Gerar Dean is offline Gerar Dean
Deity
Acá abajo
Sep 2002
time: 01:16
  Old Post 28-12-2004 21:09
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton buy from Amazon

Well, I'll try it

Atahualpa is offline Atahualpa
Emperor
Hawthrone
Mar 1999
time: 06:16
  Old Post 29-12-2004 03:51 Visit Atahualpa's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Support Apolyton buy from Amazon

quote:
Does it actually work on all recent browsers?


In Firefox yes, in IE I believe too. Haven't checked Opera.

Kuciwalker is offline Kuciwalker
Emperor
of Schmooism
Feb 2001
time: 00:16
  Old Post 29-12-2004 03:56
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

Why?

Atahualpa is offline Atahualpa
Emperor
Hawthrone
Mar 1999
time: 06:16
  Old Post 29-12-2004 05:06 Visit Atahualpa's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

Here is a slightly updated version. With Save and Revert buttons.

Should work fine in Firefox 1.0, IE6 and Opera 7.5

edit: I use the first post now for updates

Last edited by Atahualpa on 30-12-2004 at 15:40

Atahualpa is offline Atahualpa
Emperor
Hawthrone
Mar 1999
time: 06:16
  Old Post 29-12-2004 16:24 Visit Atahualpa's homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Help yourself to an AD-FREE life

Does anybody know why Firefox would always place the text in the textarea centered at first?
I smell a bug.

alva is offline alva
Emperor
Republic of Flanders
Sep 2001
time: 06:16
  Old Post 29-12-2004 18:42
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Support Apolyton buy from Amazon

* sniff sniff *

nope, nothing. Bad coding maybe.

Atahualpa is offline Atahualpa
Emperor
Hawthrone
Mar 1999
time: 06:16
  Old Post 29-12-2004 19:13 Visit Atahualpa's homepage!
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Got spare money?

You need to enable ActiveScripting in IE (JavaScript in Firefox) or in Opera (whatever it is called there).

If you open the file with IE, it will disable Active scripting by default and tell you about that in a lightly colored bar at the top. You need to click it and tell to enable it.
Or use Firefox and enable JS under tools>options>Web features

Kuciwalker is offline Kuciwalker
Emperor
of Schmooism
Feb 2001
time: 00:16
  Old Post 29-12-2004 20:35
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Increase the size of your Attachments

quote:
Originally posted by Kuciwalker
Why?

Heresson is offline Heresson
King
of frogs
Jun 2000
time: 06:16
  Old Post 29-12-2004 20:45
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

I concur

Atahualpa is offline Atahualpa
Emperor
Hawthrone
Mar 1999
time: 06:16
  Old Post 30-12-2004 00:27 Visit Atahualpa's homepage!
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Support Apolyton buy from Amazon

quote:
Originally posted by Kuciwalker

DrSpike is offline DrSpike
Deity
Enthusiastic member of Apolyton
Sep 2001
time: 05:16
  Old Post 30-12-2004 03:38
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Help yourself to an AD-FREE life

Can you explain why this is better than current editing?

Atahualpa is offline Atahualpa
Emperor
Hawthrone
Mar 1999
time: 06:16
  Old Post 30-12-2004 04:22 Visit Atahualpa's homepage!
Edit/Delete Message Reply w/Quote
#17 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

Try it and see for yourself...

Skanky Burns is offline Skanky Burns
Deity
Skanky Bastard Quartermaster
Aug 2001
time: 14:16
  Old Post 30-12-2004 04:59
Edit/Delete Message Reply w/Quote
#18 Report this post to a moderator
Remove this text

Or explain it so we don't need to spend effort to determine if spending our effort on this is worth the... effort.

Atahualpa is offline Atahualpa
Emperor
Hawthrone
Mar 1999
time: 06:16
  Old Post 30-12-2004 15:39 Visit Atahualpa's homepage!
Edit/Delete Message Reply w/Quote
#19 Report this post to a moderator
Inflate your Upload Space

new version with preview button for WYSIWYG (=What You See Is What You Get) editing.

The advantages of doing this client side are:
1. Less requests to the server
2. WYSIWYG, which should reduce multiple edits

Hueij is offline Hueij
Emperor
Kokonino Kounty
May 1999
time: 06:16
  Old Post 31-12-2004 02:36
Edit/Delete Message Reply w/Quote
#20 Report this post to a moderator
Remove this text

quote:
You need to enable ActiveScripting in IE

You are kidding, right?

Atahualpa is offline Atahualpa
Emperor
Hawthrone
Mar 1999
time: 06:16
  Old Post 31-12-2004 03:00 Visit Atahualpa's homepage!
Edit/Delete Message Reply w/Quote
#21 Report this post to a moderator
Support Apolyton, buy Civilization 2

Well you know, JavaScript doesn't work with JavaScript disabled....

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:16.
Apolyton Time is 00:16.
    top of page
Rate This Thread:
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0491 seconds (89.33% PHP - 10.67% MySQL) with 36 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net