Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

CGI HTML Editor,

 [1/4] from: rebol:techscribe at: 14-Nov-2000 17:53


[--Aina--med-iq--de] wrote:
> Hi all!
Hi Sharriff!
> > I have coded a script that takes input from an HTML-form and stores the > resulting HTML page on the server.
Cool.
> The problem is, my REBOL script just > exchanges the text in my Page template and the formatting is totally > ruined.
That's weird. Why would REBOL make any modifications to the submitted input? What are these modifications? Have you been able to nail down from which point on in your script the submitted data is modified? Is it at the point in time at which REBOL starts up, or is the data modified during some later processing step?
> The content is readable and looks fine in a browser window of its > own, but I´m trying to display this in a frame, and the resulting text does > not wrap.
How is REBOL responsible for what happens with the text in a frame?
> I have tried all the HTML text formatting tags and attributes > like "WRAP" , int t cell; "<TD width="n"" and so on. I just want REBOL to > capture a string and give it back without need for reformatting.
A little glimpse at the relevant functions in your source might help to determine if it's REBOL's fault, and if so, if and how it can be remedied. Perhaps this a HTML problem and not a REBOL problem?

 [2/4] from: tim::johnsons-web::com at: 14-Nov-2000 17:53


Hi Shariff: It would be easier for someone to help you if you could put together a very simple example with code and output. As is true for many other aspects of programming, reduce to simplest..... With code and output, many of this list can help. Regards -Tim [Sharriff--Aina--med-iq--de] wrote:

 [3/4] from: sharriff:aina:med-iq at: 15-Nov-2000 7:42


Thanks Tim, Elan for helping out. Heres the code The Form ------------------------------------ <?xml version="1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/transitional.dtd"> <html xmlns="http://www.w3.org/TR/xhtml1"> <head> <title>Add new Intranet page</title> <style type="text/css"> p.c1 {font-family: Verdana,Tahoma,Arial,Helvetica; font-size: 80%} </style> </head> <body bgcolor="#666666"> <form action="http://10.104.98.70/cgi-bin/newintranethomepage.r" enctype ="text" method="get" name="newcontact"> <table border="1" cellpadding="1" cellspacing="0" id="Tabelle1" width ="400"> <tbody> <tr> <td width="100" bgcolor="silver"> <p class="c1">Title</p> </td> <td colspan="2" bgcolor="silver"> <p><input id="" maxlength="45" name ="title" size="45" />&nbsp;</p> </td> </tr> <tr> <td width="100" bgcolor="silver"><font face ="Verdana" size="2">Author</font></td> <td bgcolor="silver" colspan="2"><input id="" maxlength="45" name="author" size="45" /></td> </tr> <tr> <td width="100" bgcolor="silver"> <p class="c1">Media</p> </td> <td colspan="2" bgcolor="silver"> <p><input type="file" name="receivemedia" size="16" /></p> </td> </tr> <tr> <td width="100" bgcolor="silver"> <p class="c1">Text</p> </td> <td bgcolor="silver" colspan="2"><textarea name="text" cols="75" rows="22" wrap="physical"/></textarea></td> </tr> <tr> <td bgcolor="gray">&nbsp;</td> <td colspan="2" bgcolor="gray">&nbsp;</td> </tr> <tr> <td bgcolor="#FF9900">&nbsp;</td> <td width="180" bgcolor="#FF9900"> <p><input id="" name="buttsave" type="submit" value="save" />&nbsp;</p> </td> <td width="180" bgcolor="#FF9900"> <p><input id="" name="buttreset" type="reset" value="reset" />&nbsp;</p> </td> </tr> </tbody> </table> </form> </body> </html> The CGI script --------------------------------------- <?xml version="1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/transitional.dtd"> <html xmlns="http://www.w3.org/TR/xhtml1"> <head> <title>Add new Intranet page</title> <style type="text/css"> p.c1 {font-family: Verdana,Tahoma,Arial,Helvetica; font-size: 80%} </style> </head> <body bgcolor="#666666"> <form action="http://10.104.98.70/cgi-bin/newintranethomepage.r" enctype ="text" method="get" name="newcontact"> <table border="1" cellpadding="1" cellspacing="0" id="Tabelle1" width ="400"> <tbody> <tr> <td width="100" bgcolor="silver"> <p class="c1">Title</p> </td> <td colspan="2" bgcolor="silver"> <p><input id="" maxlength="45" name ="title" size="45" />&nbsp;</p> </td> </tr> <tr> <td width="100" bgcolor="silver"><font face ="Verdana" size="2">Author</font></td> <td bgcolor="silver" colspan="2"><input id="" maxlength="45" name="author" size="45" /></td> </tr> <tr> <td width="100" bgcolor="silver"> <p class="c1">Media</p> </td> <td colspan="2" bgcolor="silver"> <p><input type="file" name="receivemedia" size="16" /></p> </td> </tr> <tr> <td width="100" bgcolor="silver"> <p class="c1">Text</p> </td> <td bgcolor="silver" colspan="2"><textarea name="text" cols="75" rows="22" wrap="physical"/></textarea></td> </tr> <tr> <td bgcolor="gray">&nbsp;</td> <td colspan="2" bgcolor="gray">&nbsp;</td> </tr> <tr> <td bgcolor="#FF9900">&nbsp;</td> <td width="180" bgcolor="#FF9900"> <p><input id="" name="buttsave" type="submit" value="save" />&nbsp;</p> </td> <td width="180" bgcolor="#FF9900"> <p><input id="" name="buttreset" type="reset" value="reset" />&nbsp;</p> </td> </tr> </tbody> </table> </form> </body> </html> -------------------------------------------------------------------------------------------------------- I´m sorry its not simplified, I was afraid that some important mistake might fall by the wayside. My first suspect was HTML, but after spending 2- 3 hours changing stylesheets and table cell definitions, my conclusion was that I have a problem in storing creating large strings EXACTLY the way they are stored. Another bad side effect is that after a certain amount of text in the textarea, the Internet explorer does´nt carry out the CGI request!!!! on the contrary to the Netscape, which sends off everything given to it no matter how large the string. Thanks for your anticipated help "A tired man called" Sharriff

 [4/4] from: sharriff:aina:med-iq at: 14-Nov-2000 14:20


Hi all! I have coded a script that takes input from an HTML-form and stores the resulting HTML page on the server. The problem is, my REBOL script just exchanges the text in my Page template and the formatting is totally ruined. The content is readable and looks fine in a browser window of its own, but I´m trying to display this in a frame, and the resulting text does not wrap. I have tried all the HTML text formatting tags and attributes like "WRAP" , int t cell; "<TD width="n"" and so on. I just want REBOL to capture a string and give it back without need for reformatting. Has anyone coded something similar? its a VERS simplified sort of HTML editor. Best regards Sharriff Aina med.iq information & quality in healthcare AG