Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

generated pre tags

Posted on 2002-06-05
6
Medium Priority
?
217 Views
Last Modified: 2010-04-09
i am using a guestbook generating tool which automatically encloses the text in pre tags - and there is no way for these to be removed. is there anyway i can override these tags eg by setting width of table

 <TABLE><!--GUESTBOOK ENTRIES-->
<!--this bit is the generated html-->
<tr>
  <td align=right valign=top><b>date :  </b></td>
  <td align=left valign=top><pre>Tue Jun  4 19:48:58 2002</pre></td>
</tr>
<tr>
  <td align=right valign=top><b>email :  </b></td>
  <td align=left valign=top><pre>me@email.co.uk</pre></td>
</tr>
<tr>
  <td align=right valign=top><b>name :  </b></td>
  <td align=left valign=top><pre>desc</pre></td>
</tr>
<tr>
  <td align=right valign=top><b>submit :  </b></td>
  <td align=left valign=top><pre>Submit comments</pre></td>
</tr>
<tr>
  <td align=right valign=top><b>comments :  </b></td>
  <td align=left valign=top><pre>hg hghsghsg hsgd hsgh shghs hghg shgd
jhjhjhjhjhjh jh jhj hj jhjhsjahja
kjkj jkjkj kjakajksaj sk j kjkaj kj</pre></td>
</tr>
0
Comment
Question by:macintar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 22

Accepted Solution

by:
CJ_S earned 400 total points
ID: 7055986
No you cannot. That is why it is a pre tag, they are MEANT to be like that.

For IE you might want to try the following:

<script language="javascript">
function document_onload()
{
document.body.innerHTML = document.body.innerHTML.split("<pre>").join("<table width=200><tr><td>").split("</pre>").join("</td></tr></table>")
}
window.onload=document_onload;
</script>
0
 
LVL 18

Expert Comment

by:bruno
ID: 7056419
why do you want to override the tags?  is the text getting pushed out to far?
0
 
LVL 18

Expert Comment

by:bruno
ID: 7146397

Hello,

This question has been open for quite a while now and needs to be wrapped up.

EXPERTS: If any of the experts could come back and post any suggestions as to how they feel this could be wrapped up (delete, 0 PAQ, award points, etc), I'm sure the moderators would appreciate it.  If you feel you deserve points here, but don't care to respond, the question might very well get DELETED.

ASKER:  Please return and finalize this question.  Abandoning a question is in violation of the member agreement.

Please do NOT accept this comment as an answer, as I am simply trying to alert those involved that the question is still open.

Thank you,

BRUNO
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 22

Expert Comment

by:CJ_S
ID: 7148477
me
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 7182443
It is time to clean this abandoned question up.  

I am putting it on a clean up list for CS.

<recommendation>
points to CJ_S

</recommendation>

If anyone participating in the Q disagrees with the recommendation,
please leave a comment for the mods.

Cd&
0
 
LVL 1

Expert Comment

by:Computer101
ID: 7182881
Comment from expert accepted as answer

Computer101
E-E Moderator
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question