2009-10-24 6 views
0

지금이 문제가 몇 시간 동안 발생하고 있으며이를 해결하는 방법을 모릅니다. 그러나 그것의 IE에서 잘 작동하지만 그것은 모질라에서 작동하지 않습니다.YUI 텍스트 편집기가 Mozilla에서 작동하지 않습니다.

<!-- Skin CSS file --> 
    <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.7.0/build/assets/skins/sam/skin.css"> 
    <!-- Utility Dependencies --> 
    <script type="text/javascript" src="http://yui.yahooapis.com/2.7.0/build/yahoo-dom-event/yahoo-dom-event.js"></script> 
    <script type="text/javascript" src="http://yui.yahooapis.com/2.7.0/build/element/element-min.js"></script> 
    <!-- Needed for Menus, Buttons and Overlays used in the Toolbar --> 
    <script src="http://yui.yahooapis.com/2.7.0/build/container/container_core-min.js"></script> 
    <script src="http://yui.yahooapis.com/2.7.0/build/menu/menu-min.js"></script> 
    <script src="http://yui.yahooapis.com/2.7.0/build/button/button-min.js"></script> 
    <!-- Source file for Rich Text Editor--> 
    <script src="http://yui.yahooapis.com/2.7.0/build/editor/editor-min.js"></script> 
    <script> 
      var myEditor = new YAHOO.widget.Editor('msgpost', { 
     height: '100px', 
     width: '522px', 
     dompath: true, //Turns on the bar at the bottom 
     animate: true //Animates the opening, closing and moving of Editor windows 
    }); 
    myEditor.render(); 
    //Inside an event handler after the Editor is rendered 
    YAHOO.util.Event.on('save', 'click', function() { 
     //Put the HTML back into the text area 
     myEditor.saveHTML(); 

     //The var html will now have the contents of the textarea 
     var html = myEditor.get('msgpost').value; 
    }); 
    YAHOO.util.Event.on('edit', 'click', function() { 
     //Put the HTML back into the text area 
     myEditor.saveHTML(); 

     //The var html will now have the contents of the textarea 
     var html = myEditor.get('msgpost').value; 
    }); 



     </script> 

    <form id="form2" name="form2" method="post" action="processgreeting.php"> 

    <div class="span-22 gtype" > 
    <div class="span-5"><label>Message:</label></div> 
    <div class="span-17 last"><textarea name="msgpost" id="msgpost" cols="50" rows="40"> </textarea> <br> 
    </div> 

    <input type="submit" name="save" value="Post Greeting" id="postgreeting"/> 

    </form> 

processgreeting.php 
if(isset($_POST['save'])) 
{ 

$body = trim($_POST['msgpost']); 

    $valid = 1; 
    $publish_date = strtotime($publish); 
    if ($publish >= $today) 
    { 
    $valid = 0; 
    $insert_greeting = "INSERT INTO greeting (type,decs,name,message,date,user,publish) VALUES ('$type','$desc','$name','$body','$today',$user,'$publish')"; 
    $register_greeting = mysql_query($insert_greeting)or die(mysql_error()); 
    $lastnum = mysql_insert_id(); 
    $_SESSION["greetingno"] = $lastnum; 
    if($valid == 0) 
    { 
    echo '<strong>Greeting Type: </strong>'.$type.'<br><strong>Description: </strong>'.$desc.'<br><strong>Name: </strong>'.$name.'<br><strong>Message: </strong>'.$body.'<strong><br>Publish Date: </strong>'.$publish; 
    } 

    //echo $valid; 
    } 
    else{ //echo "<span style='color:#FF0000'>Publish date is invalid</span>" ; 
    echo $valid; 
     } //} 

} 

사람이 사전에 .. 잘못하고 스피 무엇

감사 나를 도울 수하십시오 다음은 내 코드입니다.

답변

0

난 그냥 파이어 폭스와 내 맥에서 노력하고 모든게 작동하는 것. 너의 문제가 뭐야?

+0

값을 가져올 수 없습니다. – jbcedge

관련 문제