Forum Moderators: open
<script>
function event_window(from_field)
{
var event=window.open('','event','width=300,height=300,scrollbars=1');
var content=document.getElementById(from_field).innerHTML;
content=content.replace('\\\\n','<br><br>');
var html='<html><body>'+content+'</body></html>';
event.document.open();
event.document.write(html);
event.document.close();
}
</script>
<div id=event_from_521 onClick=event_window('event_from_521')>Here goes a very long text, but here by style=hieght:30;overflos:hidden only the first 2 lines visible
</div>
On the main document is with overflow:hidden the first 2 lines of the event.
Clicking on the field, a new window should open (this works fine)
And each linefeed should be replaced by <br><br> to have it better formated.
No idea, why the replace does not work.
It's for my new Andoid cell phone, to carry a part of my database always with me.