Sign in to follow this  
Followers 0
timonthy

How to Fill Textarea code CKEDITOR

1 post in this topic

#1 ·  Posted (edited)

source html

</script> <form id="[url=""]register_form[/url]" name="[url=""]submit_listing[/url]" method="[url=""]post[/url]" action="[url="view-source:http://www.nhaban.com/member/dang_tin_nhanh.php?modules=nha#submit"]http://www.nhaban.com/member/dang_tin_nhanh.php?modules=nha#submit[/url]" enctype="[url=""]multipart/form-data[/url]"><p><label>&nbsp;</label><i>Chú ý những mục có dấu <span class="[url=""]required_star[/url]">*</span> là bắt buộc</i></p><div class="[url=""]border_solid bg_gray_color clear[/url]" style="[url=""]float:left; width:99%;[/url]"><h2 class="[url=""]heading2[/url]">Thông tin vị trí</h2></div><p id="[url=""]ck_type[/url]"><label>Nhu cầu:<span id="[url=""]required[/url]" class="[url=""]required_star[/url]">*</span></label><input type="[url=""]radio[/url]" id="[url=""]type2[/url]" name="[url=""]type2[/url]" value="[url=""]1[/url]" onclick="[url=""]$(document).ready(function(){$('#unit2').hide();$('#unit').show();});Format_Price(document.getElementById('type2').value=1);[/url]"> Cần Bán&nbsp;<input type="[url=""]radio[/url]" id="[url=""]type2[/url]" name="[url=""]type2[/url]" value="[url=""]2[/url]" onclick="[url=""]$(document).ready(function(){$('#unit2').hide();$('#unit').show();});Format_Price(document.getElementById('type2').value=2);[/url]"> Cần Mua&nbsp;<input type="[url=""]radio[/url]" id="[url=""]type2[/url]" name="[url=""]type2[/url]" value="[url=""]5[/url]" onclick="[url=""]$(document).ready(function(){$('#unit2').show();$('#unit').hide();});Format_Price(document.getElementById('type2').value=5);[/url]"> Cần Thuê&nbsp;<input type="[url=""]radio[/url]" id="[url=""]type2[/url]" name="[url=""]type2[/url]" value="[url=""]3[/url]" onclick="[url=""]$(document).ready(function(){$('#unit2').show();$('#unit').hide();});Format_Price(document.getElementById('type2').value=3);[/url]"> Cho Thuê&nbsp;</p><p><label>Danh mục tin rao: <span class="[url=""]required_star[/url]">*</span></label><select name="[url=""]type[/url]" id="[url=""]types[/url]">
                        <option value="">--lựa chọn-</option>
                        <option value="[url=""]16[/url]">Nh&agrave; Phố</option><option value="[url=""]4[/url]">Biệt thự</option><option value="[url=""]2[/url]">Cửa h&agrave;ng, Văn ph&ograve;ng</option><option value="[url=""]19[/url]">Nh&agrave; Xưởng</option><option value="[url=""]10[/url]">Nh&agrave; cấp 4, Tập thể</option><option value="[url=""]17[/url]">Nh&agrave; h&agrave;ng, Kh&aacute;ch sạn</option><option value="[url=""]18[/url]">Ph&ograve;ng Trọ, Nh&agrave; Nghỉ</option><option value="[url=""]15[/url]">C&aacute;c loại kh&aacute;c</option>
                    </select></p><p><label for="">Tỉnh, thành phố:<span id="[url=""]required[/url]" class="[url=""]required_star[/url]">*</span></label><select id="[url=""]location[/url]" name="[url=""]location[/url]" onchange="[url=""]getState(this.value);getStreet(0, ' ');getWard(0,0);getKdc(0,0);[/url]"><option value="">--lựa chọn-</option><option value="[url=""]44[/url]">Bà Rịa Vũng Tàu</option><option value="[url=""]12[/url]">Bình Dương</option><option value="[url=""]6[/url]">Cần Thơ</option><option value="[url=""]5[/url]">Đà Nẵng</option><option value="[url=""]50[/url]">Đồng Nai</option><option value="[url=""]2[/url]">Hà Nội</option><option value="[url=""]3[/url]">TP. Hồ Chí Minh</option><option value="[url=""]13[/url]">Khánh Hoà</option><option value="[url=""]24[/url]">Long An</option><option value="[url=""]8[/url]">Nam Định</option>
                    <option value="[url=""]27[/url]">An Giang</option><option value="[url=""]35[/url]">Bắc Cạn</option><option value="[url=""]20[/url]">Bắc Giang</option><option value="[url=""]26[/url]">Bạc Liêu</option><option value="[url=""]19[/url]">Bắc Ninh</option><option value="[url=""]55[/url]">Bến Tre</option><option value="[url=""]33[/url]">Bình Định</option><option value="[url=""]32[/url]">Bình phước</option><option value="[url=""]39[/url]">Bình Thuận</option><option value="[url=""]25[/url]">Cà Mau</option><option value="[url=""]36[/url]">Cao Bằng</option><option value="[url=""]42[/url]">Đắc Lắc</option><option value="[url=""]40[/url]">Đắc Nông</option><option value="[url=""]69[/url]">Điện Biên</option><option value="[url=""]68[/url]">Đồng Tháp</option><option value="[url=""]41[/url]">Gia Lai</option><option value="[url=""]67[/url]">Hà Giang</option><option value="[url=""]15[/url]">Hà Nam</option><option value="[url=""]11[/url]">Hà Tĩnh</option><option value="[url=""]17[/url]">Hải Dương</option><option value="[url=""]7[/url]">Hải Phòng</option><option value="[url=""]52[/url]">Hậu Giang</option><option value="[url=""]51[/url]">Hòa Bình</option><option value="[url=""]4[/url]">Huế</option><option value="[url=""]18[/url]">Hưng Yên</option><option value="[url=""]47[/url]">Kiên Giang</option><option value="[url=""]66[/url]">Kon Tum</option><option value="[url=""]71[/url]">Lai Châu</option><option value="[url=""]43[/url]">Lâm Đồng</option><option value="[url=""]34[/url]">Lạng Sơn</option><option value="[url=""]70[/url]">Lào Cai</option><option value="[url=""]9[/url]">Nghệ An</option><option value="[url=""]16[/url]">Ninh Bình</option><option value="[url=""]38[/url]">Ninh Thuận</option><option value="[url=""]22[/url]">Phú Thọ</option><option value="[url=""]54[/url]">Phú Yên</option><option value="[url=""]65[/url]">Quảng Bình</option><option value="[url=""]64[/url]">Quảng Nam</option><option value="[url=""]57[/url]">Quảng Ngãi</option><option value="[url=""]23[/url]">Quảng Ninh</option><option value="[url=""]63[/url]">Quảng Trị</option><option value="[url=""]46[/url]">Sóc Trăng</option><option value="[url=""]62[/url]">Sơn La</option><option value="[url=""]45[/url]">Tây Ninh</option><option value="[url=""]59[/url]">Thái Bình</option><option value="[url=""]58[/url]">Thái Nguyên</option><option value="[url=""]10[/url]">Thanh Hoá</option><option value="[url=""]48[/url]">Tiền Giang</option><option value="[url=""]56[/url]">Trà Vinh</option><option value="[url=""]60[/url]">Tuyên Quang</option><option value="[url=""]49[/url]">Vĩnh Long</option><option value="[url=""]21[/url]">Vĩnh Phúc</option><option value="[url=""]37[/url]">Yên Bái</option></select></p><p><label for="">Quận huyện:<span id="[url=""]required[/url]" class="[url=""]required_star[/url]">*</span></label><span id="[url=""]citydiv[/url]"><select id="[url=""]city[/url]" name="[url=""]city[/url]" onchange="[url=""]getStreet(0,this.value); getWard(0,this.value);getKdc(0,0);[/url]"><option value="">--lựa chọn quận huyện--</option></select></span></p><p><label for="">Phường xã<span id="[url=""]px[/url]" class="[url=""]required_star[/url]">*</span></label><span id="[url=""]warddiv[/url]"><select name="[url=""]ward[/url]" id="[url=""]phuongxa[/url]" onchange="[url=""]show_hide('phuongxa', 's_ward');[/url]"><option value="">--lựa chọn phường xã--</option><option value="[url=""]0[/url]">--Thêm tên phường xã mới--</option></select></span></p><p id="[url=""]s_ward[/url]" class="[url=""]addform[/url]" style="[url=""]display:none;[/url]"><label for="">Tên phường xã mới:<span id="[url=""]required[/url]" class="[url=""]required_star[/url]">*</span></label>
                <input type="[url=""]text[/url]" name="[url=""]add_ward[/url]" id="[url=""]add_ward[/url]" value="" class="[url=""]border_solid_blue[/url]">
                </p><p><label for="">Trong khu dân cư</label><span id="[url=""]kdcdiv[/url]"><select name="[url=""]kdc[/url]" id="[url=""]khudancu[/url]" onchange="[url=""]show_hide('khudancu', 's_kdc');[/url]"><option value="">--lựa chọn khu dân cư--</option><option value="[url=""]0[/url]">--Thêm tên kdc, tổ, khu phố mới--</option></select></span></p><p id="[url=""]s_kdc[/url]" class="[url=""]addform[/url]" style="[url=""]display:none;[/url]"><label for="">Thêm tên kdc mới:<span id="[url=""]required[/url]" class="[url=""]required_star[/url]">*</span></label>
                <input type="[url=""]text[/url]" name="[url=""]add_kdc[/url]" id="[url=""]add_kdc[/url]" value="" class="[url=""]border_solid_blue[/url]">
                </p><p><label for="">Đường phố , xóm ấp:<span id="[url=""]dp[/url]" class="[url=""]required_star[/url]">*</span></label><span id="[url=""]streetdiv[/url]"> <select name="[url=""]street[/url]" id="[url=""]duong[/url]" onchange="[url=""]show_hide('duong', 's_duongpho');[/url]"><option value="">--lựa chọn đường phố , xóm ấp--</option><option value="[url=""]0[/url]">--Thêm tên đường phố,xóm ấp mới--</option></select></span></p><p id="[url=""]s_duongpho[/url]" class="[url=""]addform[/url]" style="[url=""]display:none;[/url]"><label for="">Tên đường phố,xóm ấp mới:<span id="[url=""]required[/url]" class="[url=""]required_star[/url]">*</span></label>
                <input type="[url=""]text[/url]" name="[url=""]add_duong[/url]" id="[url=""]add_duong[/url]" value="" class="[url=""]border_solid_blue[/url]">
                </p><p id="[url=""]hide_cc[/url]" style="[url=""]display:none;[/url]"><label for="">Tên chung cư: <span id="[url=""]cc[/url]" class="[url=""]required_star[/url]">*</span></label><span id="[url=""]chungcudiv[/url]">    <select name="[url=""]chungcu[/url]" id="[url=""]chungcu[/url]" onchange="[url=""]show_hide('chungcu', 's_chungcu');cleanf('add_chungcu')[/url]">   <option value="">--lựa chọn chung cư--</option><option value="[url=""]0[/url]">--Thêm chung cư mới--</option></select></span><p id="[url=""]s_chungcu[/url]" class="[url=""]addform[/url]" style="[url=""]float:left; margin:0px;display:none;[/url]"><label for="">Tên chung cư mới:<span id="[url=""]required[/url]" class="[url=""]required_star[/url]">*</span></label>
                <input type="[url=""]text[/url]" name="[url=""]add_chungcu[/url]" id="[url=""]add_chungcu[/url]" value="" class="[url=""]border_solid_blue[/url]">
                </p><p><label for="">Số nhà, lô:</label><input type="[url=""]text[/url]" name="[url=""]sonha[/url]" value=""></p><p><label for="">Vị trí đất:</label><select name="[url=""]styles[/url]"><option value="">--lựa chọn-</option><option value="[url=""]7[/url]">Mặt tiền</option><option value="[url=""]16[/url]">Trong Ngõ - Hẻm</option></select></p><p><label for="">Hướng nhìn:</label><select name="[url=""]direction[/url]"><option value="">--lựa chọn--</option><option value="[url=""]4[/url]">Hướng Bắc</option><option value="[url=""]3[/url]">Hướng Nam</option><option value="[url=""]2[/url]">Hướng Tây</option><option value="[url=""]6[/url]">Hướng Tây Bắc</option><option value="[url=""]7[/url]">Hướng Tây Nam</option><option value="[url=""]1[/url]">Hướng Đông</option><option value="[url=""]5[/url]">Hướng Đông Bắc</option><option value="[url=""]8[/url]">Hướng Đông Nam</option></select></p><p id="[url=""]hide_kt[/url]" style="[url=""]display:block[/url]"><label for="">Kích thước: <span id="[url=""]kt[/url]" class="[url=""]required_star[/url]">*</span></label>
        <span style="[url=""]float:left; width:120px;[/url]">Chiều rộng:<br> 
        <input type="[url=""]text[/url]" id="[url=""]c_rong[/url]" name="[url=""]c_rong[/url]" value="" maxlength="[url=""]15[/url]" style="[url=""]width: 80px;[/url]"> m</span>
        <span style="[url=""]float:left; width:120px;[/url]">Chiều dài:<br> 
        <input type="[url=""]text[/url]" id="[url=""]c_dai[/url]" name="[url=""]c_dai[/url]" value="" maxlength="[url=""]15[/url]" style="[url=""]width: 80px;[/url]"> m</span>
    </p><p><label for="">Diện tích:<span id="[url=""]dt[/url]" class="[url=""]required_star[/url]">*</span></label>
        <input type="[url=""]text[/url]" id="[url=""]dien_tich[/url]" name="[url=""]dien_tich[/url]" value="" maxlength="[url=""]15[/url]" style="[url=""]width: 80px;[/url]"> m2</span>

    </p><p style="[url=""]margin-bottom:10px;[/url]"><label for="">Giấy tờ pháp lý:<span id="[url=""]pl[/url]" class="[url=""]required_star[/url]">*</span></label><span style="[url=""]float: left: width:120px; margin-right: 20px;[/url]"><input type="[url=""]radio[/url]" name="[url=""]appliances[/url]" value="[url=""]1[/url]"> Sổ Đỏ</span><span style="[url=""]float: left: width:120px; margin-right: 20px;[/url]"><input type="[url=""]radio[/url]" name="[url=""]appliances[/url]" value="[url=""]4[/url]"> Hợp đồng mua b&aacute;n</span><span style="[url=""]float: left: width:120px; margin-right: 20px;[/url]"><input type="[url=""]radio[/url]" name="[url=""]appliances[/url]" value="[url=""]2[/url]"> Giấy Hồng</span></p><div class="[url=""]border_solid bg_gray_color clear[/url]" style="[url=""]float: left; width:99%;[/url]"><h2 class="[url=""]heading2[/url]">Mô tả chi tiết</h2></div><p><i style="[url=""]margin-left:150px;[/url]">Tiêu đề tin đăng phải lớn hơn 20 và nhỏ hơn 100 ký tự</i><br>
                <label for="">Tiêu đề tin đăng:<span id="[url=""]required[/url]" class="[url=""]required_star[/url]">*</span></label><input type="[url=""]text[/url]" id="[url=""]title[/url]" name="[url=""]title[/url]" value="" maxlength="[url=""]105[/url]" style="[url=""]width:500px;[/url]" onkeyup="[url=""]check_title();[/url]" onclick="[url=""]check_title();[/url]"></p><p><label for="">Mô tả chi tiết:<span id="[url=""]required[/url]" class="[url=""]required_star[/url]">*</span></label><i>Quý khách vui lòng điền tiêu đề và mô tả chi tiết tin đăng bằng Tiếng Việt có dấu.</i>
                        <span style="[url=""]float:left;margin-left: 130px; width:500px;[/url]">
                        <textarea  name="[url=""]description[/url]" id="[url=""]description[/url]" style="[url=""]width:500px; height:300px;[/url]"></textarea>
                        </span></p><p><label>&nbsp;</label><span class="[url=""]small_text_black[/url]">Chú ý: trong phần nhập Mức giá, kích thước, diện tích, chỉ nhập vào là số</span></p>
        <script type="[url=""]text/javascript[/url]" language="[url=""]javascript[/url]" src="[url="view-source:http://www.nhaban.com/file/ckeditor/ckeditor.js"]http://www.nhaban.com/file/ckeditor/ckeditor.js[/url]"></script>
        <script type="[url=""]text/javascript[/url]" language="[url=""]javascript[/url]">
        //<![CDATA[
            CKEDITOR.replace('description'

I use Function

$oForm = _IETagnameGetCollection($IE, "TEXTAREA", 0)
$test = "<P>1111111111111111111111111</P>"
_IEDocInsertHTML($oForm, $test)

It Not Work . Anybody answer how to fill message ? thank

Edited by timonthy

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0