Home
TeamSite
object expected error in javascript
srilu
Hi,
I wrote a jsp code to read an xml file using javascript.
It was working fine in one teamsite server.
It's not working in other teamsite server. Both are teamsite 7.2 version servers.
It's throwing error as "object expected".
Please can any one help me to solve this issue.
Find more posts tagged with
Comments
ISCBorisB
It's throwing error as "object expected"...
Enable Debugger in your Browser and start troubleshooting.
You did not provide any information whatever to give you better advice. You'd have to find what Object is missing and in what
operational context. Chances are, you have missing (not moved over?) custom/modified JS Library or trying to use non-portable
JS Object in the Browser that does not have it, things like that...
document.rptdesign
srilu
Hi Boris,
Thanks for your suggestion.
While reading xml file using javascript, I am getting error as "object expected" error.
With same code i can able to read xml file in the other server.
i am not understanding what is the issue.
Please give me suggestion to solve this problem.
srilu
Hi,
I wrote code as follow:
if(window.XMLHttpRequest)
{
xmlhttp=new XMLFttpRequest();
}
else
{
xmlhttp= new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET" , "/iwmnt/default/main/sample/sample.xml" , false);
xmlhttp.send();
xmlDoc=xmlhttp.responseXML;
This code is working fine in one server. I can able to read xml file properly.
I used same code in other server, There i can't able to read xml file. Getting error as "object expected".
If i kept the xml file under "/iw-cc.war" path, then it's working fine in both the servers.
It's not reading the xml file if i kept it under content-cneter path "/default/main/sample". When it is working in one server placing /iwmnt/default/main/sample, Why is it not working in another server ?
Please can any one solve this issue.
MSelvan
Are you uploading your file using FTP?
birt_doc.png
srilu
Hi Selvan,
I created xml file in content-cneter path (i.e., /default/main/sample) directly from TeamSite UI.
But in /iw-cc.war path i am placing the file using FTP.
Thanks