Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Nov 2006
    Thanked 0 Times in 0 Posts

    Question word wrap not working in mozilla

    Word wrap is work in İE but doesn't work mozilla firefox

    <pxt:tmpl name="previewForm"> 
    <script language="javascript" src="components/com_combomax/templates/js.tpl"></script> 
    white-space: pre-wrap; /* css-3 */ 
    white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ 
    white-space: -pre-wrap; /* Opera 4-6 */ 
    white-space: -o-pre-wrap; /* Opera 7 */ 
    word-wrap: break-word; /* Internet Explorer 5.5+ */ 
    <div class="componentheading">Your comment so far:</div> 
    <!- Repeats for every comment --> 
    <div align="left" class="inputbox" style="white-space:-moz-pre-wrap;width:450px;height:1px;left:0"> 
    <table border="0" width="80%" align="center"> 
    <td width="30%" valign="top"><b>Name:</b> {NAME}</td> 
    <td width="60%" rowspan="2" style="word-wrap:break-word;width:450px;height:1px;left:0" rowspan="2" valign="top"><b>Comment:</b><br />{COMMENT}</td> 
    <!-- Rating --> Rated Article: {RATINGIMAGE}<br /> 
    <!-- IP --> <img style="cursor: help;" src="{LIVESITE}/components/com_combomax/images/ip.gif" alt="IP Logged as: {IP}" title="IP Logged as: {IP}"/> 
    <!-- URL --> <a href="{URL}" target="_blank"><img src="{LIVESITE}/components/com_combomax/images/home.gif" alt="HomePage: {URL}" title="HomePage: {URL}" border="0" /></a> 
    <!-- Browser --> <img style="cursor: help;" src="{LIVESITE}/components/com_combomax/images/browser.gif" alt="Browser: {BROWSER}" title="Browser: {BROWSER}" /> 
    <!-- Date --> <img style="cursor: help;" src="{LIVESITE}/components/com_combomax/images/clock.png" alt="Dated: {DATE}" title="Dated: {DATE}" /> 
    <!-- Report Comment --> <a href="{REPORTURL}" target="_SELF"><img src="{LIVESITE}/components/com_combomax/images/report.gif" alt="Yöneticiye Bildir" title="Report This Comment" border="0" /></a> 
    <br /> 
    <div class="componentheading">Make Changes:</div> 
    <form action="index.php" method="post" name="adminForm" id="adminForm" onsubmit="return validateForm( this,true,true,false,true,0)"> 
    Your Name: <br /> 
    <input type="text" name="name" style="width:300px;" class="inputbox" value="{NAME}" validate="blank" emsg="Please enter your name!"><br /> 
    Your Email Address: <br /> 
    <input type="text" name="email" style="width:300px;" class="inputbox" value="{EMAIL}" validate="email¦1" emsg="Please enter your email!"><br /> 
    Your Homepage: <br /> 
    <input type="text" name="url" style="width:300px;" class="inputbox" value="{URL}" validate="url¦http¦0¦0" emsg="Please enter your webpage address!"><br /> 
    Rate this article:<br /> 
    <span class="content_vote"> 
    <input type="radio" alt="vote 1 star" name="user_rating" value="1"{VOTE1}/> 
    <input type="radio" alt="vote 2 star" name="user_rating" value="2"{VOTE2}/> 
    <input type="radio" alt="vote 3 star" name="user_rating" value="3"{VOTE3}/> 
    <input type="radio" alt="vote 4 star" name="user_rating" value="4"{VOTE4}/> 
    <input type="radio" alt="vote 5 star" name="user_rating" value="5"{VOTE5} /> 
    <br /><br /> 
    Comment: <br /> 
    <textarea name="comment" id="comment" cols="50" rows="7" class="inputbox" validate="blank" emsg="Please enter your comment!" onkeydown="javascript:sinirla(this)" onkeyup="javascript:sinirla(this)">{RAWCOMMENT}</textarea> 
    <input type="text" size="5" id="kalan" name="kalan" value="140"> 
    <table border=0 cellspacing=3 cellpadding=0 class="smiletoolbar"> 
    <td onClick="javascript:emo('B)');" style="cursor:pointer;"><img src="components/com_combomax/images/bigsmile-smiley.gif" width="15" height="15" alt="" border="0"></td> 
    <td onClick="javascript:emo(':(');" style="cursor:pointer;"><img src="components/com_combomax/images/blue-smiley.gif" width="15" height="15" alt="" border="0"></td> 
    <td onClick="javascript:emo(':)');" style="cursor:pointer;"><img src="components/com_combomax/images/happy-smiley.gif" width="15" height="15" alt="" border="0"></td> 
    <td onClick="javascript:emo(':laugh:');" style="cursor:pointer;"><img src="components/com_combomax/images/laughing-smiley.gif" width="15" height="15" alt="" border="0"></td> 
    <td onClick="javascript:emo(':sad:');" style="cursor:pointer;"><img src="components/com_combomax/images/sad-smiley.gif" width="15" height="15" alt="" border="0"></td> 
    <td onClick="javascript:emo(':q:');" style="cursor:pointer;"><img src="components/com_combomax/images/question.gif" width="15" height="15" alt="" border="0"></td> 
    <td onClick="javascript:emo(':thumbup:');" style="cursor:pointer;"><img src="components/com_combomax/images/thumbsup.gif" width="15" height="15" alt="" border="0"></td> 
    <td onClick="javascript:emo(':thumbdown:');" style="cursor:pointer;"><img src="components/com_combomax/images/thumbsdown.gif" width="15" height="15" alt="" border="0"></td> 
    <td onClick="javascript:emo(':clown:');" style="cursor:pointer;"><img src="components/com_combomax/images/clown.gif" width="15" height="15" alt="" border="0"></td> 
    <td onClick="javascript:emo('');" style="cursor:pointer;"><strong>BOLD</strong></td> 
    <td onClick="javascript:emo('  
    ');" style="cursor:pointer;">"QUOTE"</td> 
    <td onClick="javascript:emo('');" style="cursor:pointer;"><U>UNDERLINE</U></td> 
    <input type="button" name="preview" value="Preview Changes" class="button" onClick="javascript:document.adminForm.task.value='preview';document.adminForm.submit();" /> 
    <br /> 
    <div class="componentheading">Subscribe</div> 
    Do you want to receive an email when new comments are added to this article? 
    <br /> 
    <select class="textarea" name="subscribe"> 
    <option value="1">Yes - I want to receive emails when this article has new comments</option> 
    <option value="0">No thanks!</option> 
    <input type="hidden" name="option" value="com_combomax" /> 
    <input type="hidden" name="task" value="save" /> 
    <input type="hidden" name="contentid" value="{CONTENTID}" /> 
    <div align="right"> 
    <input type="submit" class="button" value="Submit Comment" /> 

  • #2
    Senior Coder JamieR's Avatar
    Join Date
    Oct 2004
    United Kingdom
    Thanked 5 Times in 5 Posts
    As far as I know, Firefox doesn't support Word-Wrap.
    Also, you've posted this in the wrong section, tis not a PHP related issue.

    http://www.codingforums.com/showthread.php?t=72641 - have a look at that thread


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts