Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 table in the message
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

s80ts0465
Junior Member

Italy
290 Posts

Posted - 17 April 2004 :  07:36:58  Show Profile  Send s80ts0465 an ICQ Message
thanks a lot for the help. I tryed the "prompt" solution, nice, but there are some problems. In fact using this method the topic is saved in a strange mode (all the icons to edit or quote are in vertical ??). Moreover using the prompt method i can insert only one cell of the table, and i'd like to insert more columns and rows. I think that changing the function is possible, isn't it???
Go to Top of Page

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 17 April 2004 :  08:05:08  Show Profile  Visit PeeWee.Inc's Homepage

fString = replace(fString, "[table]", "<table border=""1"" cellspacing=""0"" cellpadding=""0"">", 1, -1, 1)




fString = replace(fString, "<table border=""1"" cellspacing=""0"" cellpadding=""0"">","[table]", 1, -1, 1)




You'll have to edit them bits.

De Priofundus Calmo Ad Te Damine

Edited by - PeeWee.Inc on 17 April 2004 08:05:56
Go to Top of Page

s80ts0465
Junior Member

Italy
290 Posts

Posted - 17 April 2004 :  08:20:36  Show Profile  Send s80ts0465 an ICQ Message
sorry?what is it????
now i'm looking how to close the procedure in a loop to insert more cell.

bye ste
Go to Top of Page

s80ts0465
Junior Member

Italy
290 Posts

Posted - 17 April 2004 :  10:12:33  Show Profile  Send s80ts0465 an ICQ Message
I've found this solution

function table() {
var text = getText();
var type = "n";
if (helpstat){
alert("Table tag Builds a table around the enclosed text.\n\nUSE: [table][tr][td]text here[/td][/tr][/table]");
} else if (basic) {
AddTxt="[table][tr][td]" + text + "[/td][/tr][/table]";
AddText(AddTxt);
} else {

AddTxt="[table][tr]";
while(type!="y"){
txt="1";
while ((txt!="")&&(txt!=null)){
txt=prompt("Inserisci i valori della cella e lascia il campo vuoto per chiudere la riga",text);
if (txt!=""){
AddTxt+="[td]"+txt+"[/td]";
}
}
AddTxt+="[/tr][tr]";
type=prompt("Hai finito la tabella (y/n) ??","text");
}
AddTxt+="[/table]";
AddText(AddTxt);

}
}

it works fine
bye stefano
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.17 seconds. Powered By: Snitz Forums 2000 Version 3.4.07