+4
To simplify usage, I’ve added a small feature: the text area used to write now automatically expands with its content.
That is you can write write write, scroll bars shouldn’t appear. Instead the textarea and surrounding page should vertically increase in size.
Technically it’s simple, and it works in firefox and IE. If any one happens to test it in other browsers, please, drop a comment!
For info, here is the javascript code (a lot originally comes from ajaxian):
__ Get vertical position
function findPosY(obj) {
if (!obj) return 0;
var curtop = 0;
if (obj.offsetParent)
while (1) {
curtop += obj.offsetTop;
if (!obj.offsetParent)
break;
obj = obj.offsetParent;
}
else if (obj.y)
curtop += obj.y;
return curtop;
}
__ Widen the elt until it is moved below or it is wider than its parent elt
__ Used in an "onfocus" event
function widen(elt) {
if (elt.widened) return;
elt.widened = true;
}
var initialPosition = findPosY(elt);
var initialParentWidth = elt.parentNode.offsetWidth;
while (initialPosition == findPosY(elt) && elt.offsetWidth < initialParentWidth) {
elt.cols = elt.cols + 1;
}
elt.cols = elt.cols - 1;
__ Resize text area accordingly to its content
function resize(elt) {
widen(elt);
var lines = elt.value.split('\n');
var newRows = lines.length + 1;
var oldRows = elt.rows;
}
for (var i = 0; i < lines.length; i++) {
var line = lines[i];
if (line.length >= elt.cols) newRows += Math.floor(line.length / elt.cols);
}
if (newRows > elt.rows) elt.rows = newRows;
if (newRows < elt.rows) elt.rows = Math.max(5, newRows);
+0
-1
-1
+0
To simplify usage, I’ve added a small feature: the text area used to write now automatically expands with its content.
That is you can write write write, scroll bars shouldn’t appear. Instead the textarea and surrounding page should vertically increase in size.
Technically it’s simple, and it works in firefox and IE. If any one happens to test it in other browsers, please, drop a comment!
For info, here is the javascript code (a lot originally comes from ajaxian):
Read more… / Lire plus…
__ Get vertical position
function findPosY(obj) {
if (!obj) return 0;
var curtop = 0;
if (obj.offsetParent)
while (1) {
curtop += obj.offsetTop;
if (!obj.offsetParent)
break;
obj = obj.offsetParent;
}
else if (obj.y)
curtop += obj.y;
return curtop;
}
__ Widen the elt until it is moved below or it is wider than its parent elt
__ Used in an “onfocus” event
function widen(elt) {
if (elt.widened) return;
elt.widened = true;
}
var initialPosition = findPosY(elt);
var initialParentWidth = elt.parentNode.offsetWidth;
while (initialPosition == findPosY(elt) && elt.offsetWidth < initialParentWidth) {
elt.cols = elt.cols + 1;
}
elt.cols = elt.cols – 1;
__ Resize text area accordingly to its content
function resize(elt) {
widen(elt);
var lines = elt.value.split(’\n’);
var newRows = lines.length + 1;
var oldRows = elt.rows;
}
for (var i = 0; i < lines.length; i++) { var line = lines[i]; if (line.length >= elt.cols) newRows += Math.floor(line.length / elt.cols); }
if (newRows > elt.rows) elt.rows = newRows;
if (newRows < elt.rows) elt.rows = Math.max(5, newRows);
-2
-2
-1
Sub domains to directly access elements
+1
Automatic widening text area. Rails 2
+1
“Tout sur le soft 100% libre”
Voici un site français pour suivre les mises à jours de nos logiciels.
Parlement est à la page
http://www.jesuislibre.org/user/progdetail.php3?action=view&idprog=599
+1
Heavily modified skin where anonymous users can no longer vote but can write and login at the same time.
Simplified and faster HTML. Shaded border.
+1
PostgreSQL has been upgraded. From version 8.1 to 8.2.
This was a test to alleviate some of the load. Due to the choice of the “nested tree set” algorithm to organize the tree of elements, there were transactions failing when trying to insert new elements at the beginning of the set.
The new database seems much much faster. No more failed transactions (for the time being), and the pages actually render much faster. Generally less than one second for the largest one.
That’s good news! :-)
+2
-1
Better filtering. Periodical updating of visitors, subscribers and elements lists.
+1
Internationalization
+2
-1
Most active forums presented first. Passage to rails 1.2
+2
-1
Democratically moderated mails.
Elements are displayed on the web page or sent by mail when they reach a user chosen voting threshold.
+2
Hey Emmanuel!
Glad you keep going on. Yet, please do understand me that I as a consumer of leparlement, not programer, am not in position to value your work about security or other issues that are enabled in communication tools we already have properly.
ATB,
Gale
--—-—----—-—-—---—~
You received this message because you are subscribed to the Google Groups “top-politics” group.
To post to this group, send email to top-politics@googlegroups.com
To unsubscribe from this group, send email to top-politics-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/top-politics?hl=en
--—---------———--~-
+0
You have seen democratically moderated mails before??
--—-—----—-—-—---—~
You received this message because you are subscribed to the Google Groups “top-politics” group.
To post to this group, send email to top-politics@googlegroups.com
To unsubscribe from this group, send email to top-politics-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/top-politics?hl=en
--—---------———--~-
+1
When you say democratically, you mean by principle of majority? Because idea of 50%+1 is based on legitimation of procedure, which is not this case. As long as there is no legitmation, there is no actually democratical procedure neither.
ATB,
Gale
--—-—----—-—-—---—~
You received this message because you are subscribed to the Google Groups “top-politics” group.
To post to this group, send email to top-politics@googlegroups.com
To unsubscribe from this group, send email to top-politics-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/top-politics?hl=en
--—---------———--~-
+1
The threshold is chosen by the participants.
Any chance you could try parlement and help improve it?
How do you envision the management of an electoral list in a P2P context? How to declare it, add or remove people from it?
Parlement is lacking real security right now, and it will as long as PGP signatures and electoral lists are not set up. But still, it is hopefully of interest already. The foundations, the architecture, are there.
There is already the basic and most useful functionalities: deliberations, proposals, votes.
--—-—----—-—-—---—~
You received this message because you are subscribed to the Google Groups “top-politics” group.
To post to this group, send email to top-politics@googlegroups.com
To unsubscribe from this group, send email to top-politics-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/top-politics?hl=en
--—---------———--~-
+1
I just looked at clasical forum about politics, vbuletin is its name. And what do I see? Regular partisans/ustashas fight and simmilar not interesting topics.
People who worth something, who are willing to involve some engagement in their writings do not like that place, nor any other simmilar place. They regularly come to such place, give it a try few or several times and go on, being not sartisfied with what they see. In the same time, spammers/trolls/flamers succeed in destroying any cool topic that could gather other cool people at one place.
I do want that thing to be changed. I want to enable people who are giving their time, who are pushin quality levels higher, I want these people not to leave such place, but stay there enabling creation of a place that would become relevant, hot, popular place. Place where people could really see constructive, progresive topics and other people who share their aproach.
So, can parelemnt in this very time do such thing? It can not. At least I do not trust it at all. What I want to see is a feedback mechinism that can not be hijacked by majority or something like that. I want to see free process of networking and creating popular clusters where most fine would lead others in this proliferation process of such forum.
So. That is the point. You need FEED BACK MECHANISM that would enable bypassing of spamers/flamers/trolls and in the same time not to disable freedom of speech. When you do that, I believe we will have a place that could start new era of internet communication, based on autopoitical process of selforganisation of mases.
And you ask me how? I can offer you our past vision:
http://kovach.web.srk.fer.hr/tiaktiv/index.php?mode=projekt_forum&m=forum&jezik=en
Yet, I believe we might go much simpler and more effective that it was our first model we developed. I hope I gave you some more information about what I believe we do really need.
ATB;
Gale
--—-—----—-—-—---—~
You received this message because you are subscribed to the Google Groups “top-politics” group.
To post to this group, send email to top-politics@googlegroups.com
To unsubscribe from this group, send email to top-politics-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/top-politics?hl=en
--