AJAXIAN Theme | AJAX/JS not working in Joomla

jbassil

Joined: 2007-11-24
Posts: 8
Posted: Sat, 2007-11-24 04:05

Hi,
I have successfully installed and configured gallery2 with the Ajaxian theme which runs fine in standalone mode. However, when integrated with Joomla CMS as a component, the AJAX does not work. Instead, all of the control buttons appear has hyperlinks when pressed cause a page reload to iterate to the next image. I'm not sure what the cause of this could be. Any suggestions?

Thanks,
Joe
---


Gallery version (not just "2"): 2.2.3
Module / Theme name & version: Ajaxian
PHP version (e.g. 5.1.6): PHP 4
Webserver (e.g. Apache 1.3.33): Apache 1.3.x
Database (e.g. MySql 5.0.32): MySQL 4.1
Activated toolkits (e.g. NetPbm, GD): None.
Operating system (e.g. Linux): Linux
Browser (e.g. Firefox 2.0): IE & Firefox

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2007-11-24 04:27

Could be some JavaScript in the Joomla that have the same variable names or some other conflict.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
jbassil

Joined: 2007-11-24
Posts: 8
Posted: Sat, 2007-11-24 13:39

Interesting. Is there anyway that I can debug the issue to find out exactly what's wrong? This is the only gallery2 theme that I've found that doesn't require a page reload to view images in succession, which is a requirement for this site. Any help would be much appreciated.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2007-11-24 15:32

Firefox and Firebug.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
jbassil

Joined: 2007-11-24
Posts: 8
Posted: Sat, 2007-11-24 19:55

Ok. Could you or someone else possibly coach me through what I should be looking for using Firebug and Firefox? I've attached a screenshot of the desired output (good.gif) as compared to the actual output (bad.gif). Your guidance would be appreciated.

Thanks,
Joe

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2007-11-24 23:21

I don't think peopel are going to troubleshoot your issue from just a screen shot.
I am no expert in JS but if you give a real url then you might get more help.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
jbassil

Joined: 2007-11-24
Posts: 8
Posted: Sun, 2007-11-25 06:02

I was hoping that an expert might have been able to recognize a common flaw in the JS of Ajaxian when integrated with Joomla by looking at the screenshots. If you are willing to provide some valuable direction, it would be much appreciated:

Test URL:
http://www.halifaxphotos.com/momentsintime

Login to Site and select 'My Photos' from User Menu:
user:testuser
pwd: test123

You will notice the Ajaxian theme's JS does not load properly.

Anyone's help on this would be much appreciated.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2007-11-25 06:27

Looks to me like a CSS issue as well.
From the source it tries to load:

<link rel="stylesheet" type="text/css" href="/momentsintime/themes/ajaxian/theme.css" />
<script type="text/javascript" src="/momentsintime/modules/albumselect/dtree.js"></script>

It does not find the css or the js file. Is there a setting for 'paths' in the joomla embedding admin page?
I don't know much about joomla, So I will leave it up to somebody that is willing to provide some valuable direction.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
jbassil

Joined: 2007-11-24
Posts: 8
Posted: Sun, 2007-11-25 15:03

That is great informatin, thanks. I have double checked the gallery2 paths within the Joomla bridge component and all of the settings there are correct. I'll search for similar experiences with this theme elsewhere on the web and update this thread accordingly if there are no other replies.

Thanks again.
Joe

 
jbassil

Joined: 2007-11-24
Posts: 8
Posted: Sun, 2007-11-25 15:04

That is great information, thanks. I have double checked the gallery2 paths within the Joomla bridge component and all of the settings there are correct. I'll search for similar experiences with this theme elsewhere on the web and update this thread accordingly if there are no other replies.

Thanks again.
Joe

 
jbassil

Joined: 2007-11-24
Posts: 8
Posted: Tue, 2007-11-27 00:12

The fix to this issue is to make sure that the Gallery2 URL within the Gallery2 Bridge component in Joomla is configured to end with a "/". For example, if your gallery2 site is http://www.<somewebpage>com/gallery2, you must defined the Gallery2 URL as http://www.<somewebpage>/gallery2/