Jump to content

InnovaEditor ????


chanchelkumar

Recommended Posts

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

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

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.