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
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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.