Page 1 of 1

AJAX issue with JS Tree Loader (All Pages) Ext undefined

Posted: Wed Sep 29, 2010 2:30 pm
by nikpreek
Hi Experts,

I'm having a simple issue with AJAX (JS Tree). None of my tree menu are working and I'm getting this error on almost all pages.

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)
Timestamp: Tue, 28 Sep 2010 19:02:03 UTC

Message: 'Ext' is undefined
Line: 194
Char: 1
Code: 0
URI: http://<myweb>/TestLink/gui/javascript/treebyloader.js


The environment is :
Server: Windows Server 2003
Web Server: IIS with FastCGI (Deployed by MS Web Platform)
Client: Win XP, Win 7
Browser: IE8 , Chrome

Chrome doesn't show any error but the tree menu is not shown either.

Can someone please help me resolve this issue.

Great thanks in advance.

Thanks,
Nik

Re: AJAX issue with JS Tree Loader (All Pages)

Posted: Wed Sep 29, 2010 2:32 pm
by nikpreek
A quick note about environment:
I'm using MySQL 5.2 &
My TestLink version is 1.8.5b

Re: AJAX issue with JS Tree Loader (All Pages)

Posted: Thu Sep 30, 2010 9:06 pm
by nikpreek
I think it has something to do with .tpl files. The initiation of Ext is being done in JS files and these are included in .tpl (inc_ext_js.tpl in \gui\templates). IIS (FastCGI) is not processing it and hence I'm getting the error that Ext is not defined. Can anyone pls help on this?

Thanks,
Nikhil

Re: AJAX issue with JS Tree Loader (All Pages)

Posted: Thu Sep 30, 2010 9:25 pm
by nikpreek
Finally got through it... tried to give a js file directly on index.php and then kept putting it one level inside and testing it one by one. i.e. kept test.js with alert in root. Then moved to third_party; it worked. Then moved to ext-2.0 and it stopped working. Then renamed ext-2.0 to ext2 and woooo hooo it started working. Looks like Fast CGI OR IIS one of them cant understand "-" and/or "." in the path.
I also changed inc_ext_js.tpl line
{assign var="ext_version" value="-2.0"} to
{assign var="ext_version" value="2"}


So, I'll keep this in mind and if come across similar problem again, I'll try changing same.
But for the time being, its working perfectly fine without any problem.
I wanted to use same port for ASPX and PHP and by using these settings I'm able to do it perfectly.