chanchelkumar Posted March 5, 2007 Share Posted March 5, 2007 I m trying to use InnovaEditor in my php program. But it does not display the editor. when i try this on singlepage it works. But when i try it on the page,using ajax it does not show the editor. Have checked the paths and all the files required. Please help in this issue.. Thanks in advance Link to comment https://forums.phpfreaks.com/topic/41231-innovaeditor/ Share on other sites More sharing options...
Greaser9780 Posted March 5, 2007 Share Posted March 5, 2007 What Browser are you using? Firefox,Internet Explorer? Link to comment https://forums.phpfreaks.com/topic/41231-innovaeditor/#findComment-199723 Share on other sites More sharing options...
chanchelkumar Posted March 5, 2007 Author Share Posted March 5, 2007 What Browser are you using? Firefox,Internet Explorer? Both... In IE that div is not opening.. It shows me Runtime error!!!!!!!!!1 Link to comment https://forums.phpfreaks.com/topic/41231-innovaeditor/#findComment-199733 Share on other sites More sharing options...
Greaser9780 Posted March 5, 2007 Share Posted March 5, 2007 Just curious because I currently have the same problem with an AJAX application. It doesn't work in IE but it is flawless in FireFox. Link to comment https://forums.phpfreaks.com/topic/41231-innovaeditor/#findComment-199735 Share on other sites More sharing options...
chanchelkumar Posted March 5, 2007 Author Share Posted March 5, 2007 Just curious because I currently have the same problem with an AJAX application. It doesn't work in IE but it is flawless in FireFox. I am also experiencing the same issue while using ajax.... May i know how come you get rid from that??? Link to comment https://forums.phpfreaks.com/topic/41231-innovaeditor/#findComment-199740 Share on other sites More sharing options...
Greaser9780 Posted March 5, 2007 Share Posted March 5, 2007 I believe it lies in the .js file somewhere. The AJAX is supposed to create an object XMLHttp if non-IE and ActiveXObject if it's IE. If it doesn't make the right object IE won't be able to find it. This is prob more suited for the AJAX forum. But I may be able to help a bit if you post the .js file. Link to comment https://forums.phpfreaks.com/topic/41231-innovaeditor/#findComment-199741 Share on other sites More sharing options...
chanchelkumar Posted March 5, 2007 Author Share Posted March 5, 2007 I believe it lies in the .js file somewhere. The AJAX is supposed to create an object XMLHttp if non-IE and ActiveXObject if it's IE. If it doesn't make the right object IE won't be able to find it. This is prob more suited for the AJAX forum. But I may be able to help a bit if you post the .js file. Thank you... the js files as follows... var xmlHttp function add_training(str) { xmlHttp=GetXmlHttpObject(); if (xmlHttp==null) { alert ("Your browser does not support AJAX!"); return; } var url="../ajax/addtraining(test).php"; url=url+"?q="+str; url=url+"&sid="+Math.random(); xmlHttp.onreadystatechange=stateChanged; xmlHttp.open("GET",url,true); xmlHttp.send(null); } function edit_training(str) { xmlHttp=GetXmlHttpObject(); if (xmlHttp==null) { alert ("Your browser does not support AJAX!"); return; } var url="../ajax/edit_training.php"; url=url+"?q="+str; url=url+"&sid="+Math.random(); xmlHttp.onreadystatechange=stateChanged; xmlHttp.open("GET",url,true); xmlHttp.send(null); } function view_training(str) { xmlHttp=GetXmlHttpObject(); if (xmlHttp==null) { alert ("Your browser does not support AJAX!"); return; } var url="../ajax/training_view.php"; url=url+"?q="+str; url=url+"&sid="+Math.random(); xmlHttp.onreadystatechange=stateChanged1; xmlHttp.open("GET",url,true); xmlHttp.send(null); } function clear_off() { xmlHttp=GetXmlHttpObject(); if (xmlHttp==null) { alert ("Your browser does not support AJAX!"); return; } var url="../ajax/clear.php"; url=url+"?q="; url=url+"&sid="+Math.random(); xmlHttp.onreadystatechange=stateChanged; xmlHttp.open("GET",url,true); xmlHttp.send(null); } function stateChanged1() { if (xmlHttp.readyState==4) { document.getElementById("view").innerHTML=xmlHttp.responseText; } } function stateChanged() { if (xmlHttp.readyState==4) { document.getElementById("add_training").innerHTML=xmlHttp.responseText; } } //------------------------------------------------------------------------------- function training_delete(str) { xmlHttp=GetXmlHttpObject(); if (xmlHttp==null) { alert ("Your browser does not support AJAX!"); return; } var url="../ajax/deletetraining.php"; url=url+"?q="+str; url=url+"&sid="+Math.random(); xmlHttp.onreadystatechange=Delete; xmlHttp.open("GET",url,true); xmlHttp.send(null); } function Delete() { if (xmlHttp.readyState==4) { document.getElementById("list").innerHTML=xmlHttp.responseText; } } //----------------------------------------------------------------------- function GetXmlHttpObject() { var xmlHttp=null; try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } } return xmlHttp; } please try it for me... Link to comment https://forums.phpfreaks.com/topic/41231-innovaeditor/#findComment-199748 Share on other sites More sharing options...
Greaser9780 Posted March 5, 2007 Share Posted March 5, 2007 That's almost exactly what I have and I get the same error. I was going to try placing this function at top right below the var: function GetXmlHttpObject() I was going to try placing that whole function at the top because if it doesn't get the right object first it won't work anyway Link to comment https://forums.phpfreaks.com/topic/41231-innovaeditor/#findComment-199753 Share on other sites More sharing options...
chanchelkumar Posted March 5, 2007 Author Share Posted March 5, 2007 Give me your result.... Link to comment https://forums.phpfreaks.com/topic/41231-innovaeditor/#findComment-199755 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.