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

1.8 related questions and discussions.
Please upgrade to LATEST 1.9.x.
No more fixes for 1.8.

Moderators: Amaradana, TurboPT, TL Developers

Locked
nikpreek
TestLink user
Posts: 4
Joined: Tue Sep 28, 2010 7:11 pm

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

Post 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
Last edited by nikpreek on Thu Sep 30, 2010 9:26 pm, edited 1 time in total.
nikpreek
TestLink user
Posts: 4
Joined: Tue Sep 28, 2010 7:11 pm

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

Post by nikpreek »

A quick note about environment:
I'm using MySQL 5.2 &
My TestLink version is 1.8.5b
nikpreek
TestLink user
Posts: 4
Joined: Tue Sep 28, 2010 7:11 pm

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

Post 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
nikpreek
TestLink user
Posts: 4
Joined: Tue Sep 28, 2010 7:11 pm

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

Post 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.
Locked