// We do this in order to avoid the condition in html_editor.php ==> if ($this -> fck_editor->Config['CreateDocumentWebDir']=='' || $this -> fck_editor->Config['CreateDocumentDir']== '')
/* We do this in order to avoid the condition in html_editor.php ==> if
document.write ('<iframeid="frame"frameborder="0"scrolling="no"src="<?phpecho$pixlr_url;?>"width="100%"height="100%"><noframes><p>Sorry, your browser does not handle frames</p></noframes></iframe></div>');
@ -189,4 +181,4 @@ echo '<noscript>';
echo '<iframestyle="height: 600px; width: 100%;"scrolling="no"frameborder="0"src="'.$pixlr_url.'"><noframes><p>Sorry, your browser does not handle frames</p></noframes></iframe>';
document.write ('<iframeid="frame"frameborder="0"scrolling="no"src="<?phpecho$svg_url;?>"width="100%"height="100%"><noframes><p>Sorry, your browser does not handle frames</p></noframes></iframe>');
function resizeIframe() {
var height = window.innerHeight -50;
@ -153,14 +148,14 @@ if (api_browser_support('svg')) {
echo '<iframestyle="height: 550px; width: 100%;"scrolling="no"frameborder="0\' src="'.$svg_url.'"<noframes><p>Sorry, your browser does not handle frames</p></noframes></iframe>';
var lang_no_applet="<?phpechoget_lang('NanogongNoApplet');?>";
var lang_record_before_save="<?phpechoget_lang('NanogongRecordBeforeSave');?>";
@ -142,15 +137,15 @@ function submitVoice() {
//path, url and filename
var filename = document.getElementById("audio_title").value+"_chnano_.wav";//adding name file, tag and extension
var filename = filename.replace(/\s/g, "_");//replace spaces by _
var filename = encodeURIComponent(filename);
var filename = encodeURIComponent(filename);
var filepath="<?phpechourlencode($filepath);?>";
var dir="<?phpechourlencode($dir);?>";
var course_code="<?phpechourlencode($course_code);?>";
//
var urlnanogong="../inc/lib/nanogong/receiver.php?filename="+filename+"&filepath="+filepath+"&dir="+dir+"&course_code="+course_code+"&nano_group_id="+nano_group_id+"&nano_session_id="+nano_session_id+"&nano_user_id="+nano_user_id;
var cookie="<?phpecho'ch_sid='.session_id();?>";
//check
//check
var recorder
if (!(recorder = document.getElementById("nanogong"))) {
alert(lang_no_applet)
@ -160,17 +155,17 @@ function submitVoice() {
if (duration <= 0) {
alert(lang_record_before_save)
return
}
}
if (!document.getElementById("audio_title").value) {
alert(lang_give_a_title)
return
}
//
var applet = document.getElementById("nanogong");
//
var applet = document.getElementById("nanogong");
var ret = applet.sendGongRequest( "PostToForm", urlnanogong, "voicefile", cookie, "temp");//'PostToForm', postURL, inputname, cookie, filename
//echo '<paramname="SamplingRate"value="32000"/>';//Quality for ImaADPCM (low 8000, medium 11025, normal 22050, hight 44100) OR Quality for Speex (low 8000, medium 16000, normal 32000, hight 44100) | (default 44100)
//echo '<paramname="MaxDuration"value="60"/>';
//echo '<paramname="SoundFileURL"value="http://somewhere.com/mysoundfile.wav"/>';//load a file |(default "")
//echo '<paramname="SoundFileURL"value="http://somewhere.com/mysoundfile.wav"/>';//load a file |(default "")