Link to home
Start Free TrialLog in
Avatar of t-min
t-min

asked on

Javascript not working on Windows IIS server site

Site built as an ASP .Net 2.0 web site. Development PC running Visual Studio 2005 on Windows XP. Live site is hosted on Windows Server 2003 with IIS6

Once deployed to the server gallery Javascript is not working on the gallery page of the site.
- the gallery page displays items but clicking on them displays the image rather then the javascript enabled preview (using lightbox.js )

Site completely works on my machine but the gallery page does not work on the server
- to double check the site copied fromthe live server all the code for the site and did a full directory compare with my live site and one on my developer PC. Directory structure and files identical. Only difference was database connection string in web.config
- sites are therefore running same versions of javascript files and dependencies

Other javascipt files are working
- javascript is used for the pop-up menu and other places. It works in these places on the live site
- the javascript for the pop-up works on the gallery page. just the gallery javascript does not work

Paths are verified
- using FF web developer I have Viewed Jacascript. There are no 404's. All required files are listed

IIS settings look fine
- I have compared the settings on my local and live servers.
- Home Directory > Executable Permissions is set to Scripts and Executables.


Does anyone have any others ideas of what I can check or what I may have missed in things I have checked?
Avatar of Pawel Witkowski
Pawel Witkowski
Flag of Poland image

Well... any link that you can provide for this not working version ?:)))

What you can miss? Some security polices, maybe caching (in Firefox I have to offen hit CTRL+R to reload and force to get stuff from server again, because browser cache it and gives me older version), maybe something else. Experts need to see it working on some test server to give you more info.
Avatar of t-min
t-min

ASKER

Thanks for suggestions, I have tried various refresh options, browser resets and reseting IIS.


Link to the site with the problem (Site is not great coding. I have reworked an existing site. At this stage I wish I had of re-written it from scratch):
http://testing.sensaura.com.au/Gallery.aspx

Clicking gallery images loads the image rather then popping up in the lightbox.
ASKER CERTIFIED SOLUTION
Avatar of Pawel Witkowski
Pawel Witkowski
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of t-min

ASKER

So the framework conflict is something that would appear on the server only?

On my development machine the gallery behaves as required.


Thanks for your ideas. I will look into you suggestions at work tomorrow.
Well the error I noticed in code - I follow it in firebug and its related with dom:onload   so I assume that something that should start onload of page does not start at all. And it seems that its a lightbox because it does not work :D
Avatar of t-min

ASKER

Thanks for pointing out that multiple frameworks were being used. I switched from a Prototype to a JQuery lightbox but still had the problem.

I change the include order of the js libraries and it worked!



Avatar of t-min

ASKER

Provided detail and lead to me to discovering the solution, thanks!