The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.



Post new topic Reply to topic  [ 35 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Wed Oct 14, 2009 1:48 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Oct 14, 2009 1:13 pm
Posts: 17
Location: India
Hi,
Greetings,

Someone please fix my project problem I would be very grateful.

I have uploaded my Joomla project from my server to client server.
Though the version were different. In my server it was 1.5.10 and in client's 1.5.14. (I don't think this could be a reason of my problem)

There I have used class modal for the lightbox purpose in one of the pages which worked fine in my server but it's not working in client's server. :(

This is what I have done in that page ----

<a href="<?php echo JURI::base(); ?>components/com_photo/views/photo/tmpl/addtoCartForm.php?pid=<?=$id;?>" class="modal" rel="{handler:'', size: {x: 700, y: 620 } }">BUY</a>

And have included this line in templates's index page

<script type="text/javascript" src="<?php echo $this->baseurl; ?>/media/system/js/modal.js"/></script>

<script type="text/javascript">
window.addEvent('domready', function() {
SqueezeBox.initialize({});
$$('a.modal').each(function(el) {
el.addEvent('click', function(e) {
new Event(e).stop();
SqueezeBox.fromElement(el);
});
});
});
</script>

Well class modal is working fine, I mean a tiny lightbox opens but the content that it suppose to show is not showing.

Well error console shows this error --
this.handlers[handler] is undefined (in page <?php echo $this->baseurl; ?>/media/system/js/modal.js)

Is Joomla Version is the problem or something else ?

Whatever it is please help.
My PM is killing me :(

Thanks in advance
Alok Tripathi


Last edited by ooffick on Tue Nov 03, 2009 9:20 am, edited 1 time in total.
Mod Note: Changed the title to something more descriptive.


Top
 Profile  
 
 Post subject: Re: Please HELP
PostPosted: Fri Oct 23, 2009 4:54 am 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Thu Jul 24, 2008 12:48 pm
Posts: 2678
Location: Austin, TX
It's possible that the modal code changed from one version to another, but I don't know for sure.

One thing I see weird is that you aren't specifying a handler in your code:
Code:
<a href="<?php echo JURI::base(); ?>components/com_photo/views/photo/tmpl/addtoCartForm.php?pid=<?=$id;?>" class="modal" rel="{handler:'', size: {x: 700, y: 620 } }">BUY</a>


Try setting it to something like iframe:
Code:
<a href="<?php echo JURI::base(); ?>components/com_photo/views/photo/tmpl/addtoCartForm.php?pid=<?=$id;?>" class="modal" rel="{handler:'iframe', size: {x: 700, y: 620 } }">BUY</a>


Let me know if this helps.

_________________
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.


Top
 Profile  
 
 Post subject: Re: Please HELP
PostPosted: Fri Oct 23, 2009 9:14 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Oct 14, 2009 1:13 pm
Posts: 17
Location: India
Hi, Thanks! for your response.

I tried that too. The content did come but without design and functionalities are not working as well.
I'm sending you the links of my server and clients server

ONE thing I have kept the handler blank in my server as well. There it's working fine

TRY MOZILLA FIREFOX

My server --
http://www.esolzdemos.com/tommy/index.p ... imageid=65

Client server --
http://www.tommyschultz.com/index.php?o ... imageid=12

Click on the button image Buy/License. See the difference.

Let me know of any solution you come up with.

Thanks in advance
Alok Tripathi


Top
 Profile  
 
 Post subject: Re: Please HELP
PostPosted: Fri Oct 23, 2009 3:27 pm 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Thu Jul 24, 2008 12:48 pm
Posts: 2678
Location: Austin, TX
They both come up for me and look very similar. Have you tried doing CTRL+R to reload the pages? It's possible the browser has something weird cached.
Attachment:
talok_1.jpg

Attachment:
talok_2.jpg


You do not have the required permissions to view the files attached to this post.

_________________
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.


Top
 Profile  
 
 Post subject: Re: Please HELP
PostPosted: Sat Oct 24, 2009 5:01 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Oct 14, 2009 1:13 pm
Posts: 17
Location: India
Hi,
Thanks for your quick reply. And I appreciate the effort you are putting in for me.

If that is the case you are mentioning, then it's good.

BUT just let me know that what browser did you tried.?
WAS IT MOZILLA FIREFOX?
Because it's not working in MOZILLA. Though working fine in IE-7.

Please let me know about the browser you tested.

Thanks again!

Alok Tripathi


Top
 Profile  
 
 Post subject: Re: Please HELP
PostPosted: Sat Oct 24, 2009 6:19 am 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Thu Jul 24, 2008 12:48 pm
Posts: 2678
Location: Austin, TX
Those screenshots are from Firefox 3.5.3.

Can you send a screenshot of what it looks like for you?

_________________
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.


Top
 Profile  
 
 Post subject: Re: Please HELP
PostPosted: Sat Oct 24, 2009 6:40 am 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Fri Sep 18, 2009 5:24 am
Posts: 66
Hi,

I used the same functionality for my site also...

with the help of this http://dvector.com/oracle/2009/02/05/us ... -lightbox/

may be this can be usefull to you...

try your luck...all the best...

_________________
Nanda Kishore (PHP Developer - welcome any suggestion / help / guide regarding PHP and Joomla)
http://www.vashishtait.com/blog


Top
 Profile  
 
 Post subject: Re: Please HELP
PostPosted: Mon Oct 26, 2009 5:37 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Oct 14, 2009 1:13 pm
Posts: 17
Location: India
Hi, Nanda Kishore. M

Thanks! for your effort. I have done exactly the way your given link explains. And I think you have not read the above posts. I already mentioned that it's working in my server but not in client's specially in MOZILLA.
AND that's the issue.

However, thanks again.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------

Hi, Will Mavis.

I'm sending the screenshots you asked for.
See the differences, the one with content is from my server and the one with no content is from client's.

Thanks again for your effort!


Waiting for your reply!


You do not have the required permissions to view the files attached to this post.

_________________
-------------------------
Thanks & Regards
Alok Tripathi


Top
 Profile  
 
 Post subject: Re: Please HELP
PostPosted: Mon Oct 26, 2009 9:32 pm 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Thu Jul 24, 2008 12:48 pm
Posts: 2678
Location: Austin, TX
I see the pop-up on that page as well in Firefox. I'm using version 3.5.3. What version do you have?
Attachment:
talok_3.jpg


If you have Firebug for Firefox, inspect the page and see if you see any HTML in your div. See below for what I see using Firebug:
Attachment:
talok_4.JPG


Also make sure you aren't getting any javascript errors:
http://www.cmsmarket.com/resources/dev-corner/92-how-to-check-for-javascript-errors

Let me know what you find.


You do not have the required permissions to view the files attached to this post.

_________________
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.


Top
 Profile  
 
 Post subject: Re: Please HELP
PostPosted: Tue Oct 27, 2009 5:59 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Oct 14, 2009 1:13 pm
Posts: 17
Location: India
Hi,
My Mozilla Firefox Version is 3.0

I did what you asked me to do. I'm sending a screenshot.

There is a JavaScript error as well
this.handlers[handler] is undefined
http://www.tommyschultz.com/media/system/js/modal.js
----------- line 182

Thanks again for your effort.
Waiting for your reply.


You do not have the required permissions to view the files attached to this post.

_________________
-------------------------
Thanks & Regards
Alok Tripathi


Top
 Profile  
 
 Post subject: Re: Please HELP
PostPosted: Tue Oct 27, 2009 2:12 pm 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Thu Jul 24, 2008 12:48 pm
Posts: 2678
Location: Austin, TX
I would temporarily modify this file:
http://www.tommyschultz.com/media/system/js/modal.js

And add a javascript alert call to see what the value of handler it is trying to use is:
Code:
   setContent: function(handler, content) {
      this.content.setProperty('class', 'sbox-content-' + handler);
alert(handler);
      this.applyTimer = this.applyContent.delay(this.fx.overlay.options.duration, this, [this.handlers[handler].call(this, content)]);

Reload the page and it should pop up a message box.

I see on the page that it should be url, but maybe it's getting messed up for some reason.

It's very strange that it works on your server and not the customers.

Let me know what you find.

_________________
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.


Top
 Profile  
 
 Post subject: Re: Please HELP
PostPosted: Wed Oct 28, 2009 5:19 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Oct 14, 2009 1:13 pm
Posts: 17
Location: India
Hi,
I added alert on the modal.js
It's popping 2 alerts
First one showing url.
And second one, Error during loading

I'm sending the screenshots.

_________________
-------------------------
Thanks & Regards
Alok Tripathi


Top
 Profile  
 
 Post subject: Re: Please HELP
PostPosted: Wed Oct 28, 2009 5:29 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Oct 14, 2009 1:13 pm
Posts: 17
Location: India
Hi Will Mavis,

I think I forgot to attach the screenshots. I'm attaching them though. While uploading screenshots, it's shows size error -- The file is too big, maximum allowed size is 512 KiB

Waiting for you reply.

_________________
-------------------------
Thanks & Regards
Alok Tripathi


Top
 Profile  
 
 Post subject: Re: Please HELP
PostPosted: Thu Oct 29, 2009 7:12 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Oct 14, 2009 1:13 pm
Posts: 17
Location: India
Hi Will Mavis,

Still waiting for your reply.

I tried to upload the screenshots showing the alerts. But it's showing size problem.

Hence I'm trying to mention what happened actually.

I added alert on the modal.js, AS YOU asked for.
It's popping 2 alerts
First one showing url.
And second one, Error during loading.

Help me out.

_________________
-------------------------
Thanks & Regards
Alok Tripathi


Top
 Profile  
 
 Post subject: Re: Please HELP
PostPosted: Thu Oct 29, 2009 3:08 pm 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Thu Jul 24, 2008 12:48 pm
Posts: 2678
Location: Austin, TX
Try saving the screenshots at jpg or gif and they should be small enough to upload here.

I'll see if I can find anything about the "Error during loading" message you are getting.

_________________
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.


Top
 Profile  
 
 Post subject: Re: Please HELP
PostPosted: Thu Oct 29, 2009 3:12 pm 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Thu Jul 24, 2008 12:48 pm
Posts: 2678
Location: Austin, TX
Here is where that message is in the code:
.../media/system/js/modal.js
Code:
   onError: function() {
      if (this.image) this.trashImage();
      this.setContent('Error during loading');
   },


Doesn't help much, though. I'll keep looking for more stuff to try.

_________________
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.


Top
 Profile  
 
 Post subject: Re: Please HELP
PostPosted: Thu Oct 29, 2009 3:14 pm 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Thu Jul 24, 2008 12:48 pm
Posts: 2678
Location: Austin, TX
Can you try opening the URL that is used in the modal window directly and see if you have any issues?

Here an example I copied:
http://www.tommyschultz.com/components/com_photo/views/photo/tmpl/addtoCartForm.php?pid=12

But I would suggest getting the one from the page you are trying and see if you can open it. Then try using the button again and see if it works.

This is not normal behavior :D

_________________
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.


Top
 Profile  
 
 Post subject: Re: Please HELP
PostPosted: Tue Nov 03, 2009 6:05 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Oct 14, 2009 1:13 pm
Posts: 17
Location: India
Hi Will Mavis,

I did tried opening the URL that is used in the modal window directly.
It opened but without any design and functionalities.

And then I tried to open using the button but to no avail.

Thanks again for your time & effort.
Waiting for your reply.

_________________
-------------------------
Thanks & Regards
Alok Tripathi


Top
 Profile  
 
PostPosted: Tue Nov 03, 2009 4:43 pm 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Thu Jul 24, 2008 12:48 pm
Posts: 2678
Location: Austin, TX
Can you post the link you tried to open and a screenshot of what you see? This is a bizarre one. The good news is it seems like it's only on your computer, but that isn't very reassuring since you are the site developer :D

Let me know what you find.

_________________
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.


Top
 Profile  
 
PostPosted: Wed Nov 04, 2009 5:09 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Oct 14, 2009 1:13 pm
Posts: 17
Location: India
Hi, Will Mavis

The link ---- http://www.tommyschultz.com/components/ ... php?pid=12
I'm sending the screenshot.

Well what I think is that Joomla upper version with Mozilla Firefox (3.0) is the problem.
Though it's only my point of view.

Waiting for your reply.


You do not have the required permissions to view the files attached to this post.

_________________
-------------------------
Thanks & Regards
Alok Tripathi


Top
 Profile  
 
PostPosted: Wed Nov 04, 2009 5:24 am 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Thu Jul 24, 2008 12:48 pm
Posts: 2678
Location: Austin, TX
It looks like I get the same page you are seeing without the styles. I'm guessing since it's supposed to open in the modal window, that it gets the styles from the main page.

Can you use firebug to inspect the window that starts to open but doesn't display anything and see if it will help us determine what the issue is?

I'm lost on this one. Maybe it's some kind of javascript permission setting or something. Very strange.

_________________
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.


Top
 Profile  
 
PostPosted: Fri Nov 06, 2009 1:29 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Oct 14, 2009 1:13 pm
Posts: 17
Location: India
Hi, Will Mavis

Sorry I didn't get you.

I think the screenshot you are asking was posted on dated, Tue Oct 27, 2009.
If not, then please explain what actually you want.

One more thing, it's not, that it's not working on my PC only, Whoever has Mozilla (3.0) faces the same problem.

However thanks! & waiting for your reply.

_________________
-------------------------
Thanks & Regards
Alok Tripathi


Top
 Profile  
 
PostPosted: Fri Nov 06, 2009 3:30 pm 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Thu Jul 24, 2008 12:48 pm
Posts: 2678
Location: Austin, TX
Yes it was. Sorry I missed that you already had Firebug open in that one.

So, I see this for the class on that div:
Code:
<div id="sbox-content" style="visibility: visible; opacity: 1" class=sbox-content-Error during loading"/>


That Error during loading class is added by the javascript when something goes wrong. You can see the code here:
.../media/system/js/modal.js
Code:
   onError: function() {
      if (this.image) this.trashImage();
      this.setContent('Error during loading');
   },


I would try adding this alert to see that the url you are expecting is actually the one being used:
Code:
      'url': function(url) {
alert(url);
         this.ajax = new Ajax(url, this.options.ajaxOptions);
         this.ajax.addEvent('onSuccess', function(resp) {
            this.applyContent(resp);
            this.ajax = null;
         }.bind(this));
         this.ajax.addEvent('onFailure', this.onError.bind(this));
         this.ajax.request.delay(10, this.ajax);
      },


It feels like I've asked you to do this before as well, but I just scanned the thread and didn't see it. I did see the one about alerting the handler, so maybe that's what I'm thinking.

Let me know what you find.

_________________
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.


Top
 Profile  
 
PostPosted: Sat Nov 07, 2009 5:05 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Oct 14, 2009 1:13 pm
Posts: 17
Location: India
Hi, Will Mavis

Sorry again, I think I mentioned that too on this thread dated, Thu Oct 29, 2009.

Though I did that again & it's popping alert.
It's showing URL.

However thanks! & waiting for your reply.

_________________
-------------------------
Thanks & Regards
Alok Tripathi


Top
 Profile  
 
PostPosted: Sat Nov 07, 2009 2:52 pm 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Thu Jul 24, 2008 12:48 pm
Posts: 2678
Location: Austin, TX
Do other modal windows work off of the customer's site in Firefox? You said it works in IE, right? Try just setting up a test that opens up a modal window to Yahoo or Google or something and see if that works.

This is definitely a strange one.

It could be a caching issue where your browser has that page cached as being an error, but you have opened the link directly and it works so I would rule that out.

It could be a permission issue, but you can open the modal window on your site without any issues, so I would rule that out.

And then it could be something completely different.


We'll keep trying to track it down. Sorry it's taking so much time to figure out, but it's definitely a strange one.

_________________
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.


Top
 Profile  
 
PostPosted: Mon Nov 09, 2009 1:59 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Oct 14, 2009 1:13 pm
Posts: 17
Location: India
Hi,

This was the original ----
<a href="http://www.tommyschultz.com/components/com_photo/views/photo/tmpl/addtoCartForm.php?pid=401" class="modal" rel="{handler:'', size: {x: 700, y: 620 } }">BUY</a>

This is what you asked for, i guess
<a href="http://www.google.co.in" class="modal" rel="{handler:'', size: {x: 700, y: 620 } }">BUY</a>

I have attached a screenshot. Still no content.

Waiting for reply


You do not have the required permissions to view the files attached to this post.

_________________
-------------------------
Thanks & Regards
Alok Tripathi


Top
 Profile  
 
PostPosted: Mon Nov 09, 2009 5:05 pm 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Thu Jul 24, 2008 12:48 pm
Posts: 2678
Location: Austin, TX
This is in Firefox, correct?

If you go to Tools -> Error Console, do you see any errors when you click the button?

The only thing I can come up with is that it is some weird behavior with Firefox 3.0. My version works correctly. The strange thing is that yours works on one site but not another.

Have you tried clearing all of your cached information to see if this changes anything. I hate doing this because you lose some stored info, but it might fix the issue.

In previous versions of Internet Explorer, I know they had security where you could mark sites as trusted and set different trust levels. I don't see anything like that in my Firefox, but maybe the 3.0 version had something like this. Is it possible that you have your server as being trusted but not the customer's?

Let me know what you find.

_________________
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.


Top
 Profile  
 
PostPosted: Wed Mar 16, 2011 5:00 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Jul 08, 2009 10:15 pm
Posts: 13
Hi, I'm having the exact same issue! Every problem you've identified I can see on my site.

1. it loads with iframe but with no styling

2. if i leave hander blank (handler '') then i get an empty box with a loading icon popup.

3. the box that half loads has the class sbox-content-Error during loading

4. if I put an alert in modal.js the same two dialog boxes appear.

WOuld really appreciate any help with this as I am totally out of my depth.

Thanks

Adam

_________________
Adam Darcy
Darcy Developments
http://www.darcydevelopments.com


Top
 Profile  
 
PostPosted: Wed Mar 16, 2011 5:21 pm 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Thu Jul 24, 2008 12:48 pm
Posts: 2678
Location: Austin, TX
Adam,

Can you post or PM me a link to your site so I can see the issue? It's been a while since I helped here and I don't remember what it was all about. If you can show me what is wrong, I will be able to help faster.

_________________
Will Mavis - Joomla Developer
http://www.covertapps.com/jam <<< Joomla! on your Android, iPhone, iPad, and iPod Touch
If you think I can help you, PM me a link to your post and I will respond. Please don't hijack another user's thread.


Top
 Profile  
 
PostPosted: Thu Mar 17, 2011 10:39 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Jul 08, 2009 10:15 pm
Posts: 13
Hi, thanks for the quick response..

Here is where it doesnt work..
http://dev03.darcydevelopments.com/inde ... ar-quartet

It works on another page on this template.. i just dont get it and have spent days on trying to solve it. This is actually live now and they are complaining but i just cant figure this out!

Any help seriously appreciated.

Thanks

Adam

_________________
Adam Darcy
Darcy Developments
http://www.darcydevelopments.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 35 posts ]  Go to page 1, 2  Next



Who is online

Users browsing this forum: No registered users and 30 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group