Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Arrows when viewing an album
abrentnall
#1 Posted : Sunday, 18 September 2011 8:32:12 PM(UTC)
abrentnall

Rank: Member

Joined: 18/09/2011(UTC)
Posts: 15
Location: Columbia, SC

When I am viewing an album and click the next arrow, it works on the first click, but never the second click. I have tried multiple albums and I can never navigate past the second media object. Any ideas?

Adam
Roger Martin
#2 Posted : Monday, 19 September 2011 7:49:44 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

Check to make sure you are using jQuery 1.6 or higher (on the site settings - general page).

If that's not it, use a tool like Firebug to see if there are any javascript/network errors.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
abrentnall
#4 Posted : Monday, 19 September 2011 8:17:10 PM(UTC)
abrentnall

Rank: Member

Joined: 18/09/2011(UTC)
Posts: 15
Location: Columbia, SC

I upgraded to jQuery 1.6.4 and still had an issue. I installed firebug and recieve the following error that is in the attachemnt.
abrentnall attached the following image(s):
abrentnall attached the following image(s): error.png
Roger Martin
#5 Posted : Tuesday, 20 September 2011 9:20:51 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

The message says "a.prop is not a function". The prop() function was added in jQuery 1.6, so that tells me the browser is still using an old version of jQuery. Maybe you need to clear the cache?
Roger Martin
Creator and Lead Developer of Gallery Server Pro
abrentnall
#6 Posted : Tuesday, 20 September 2011 7:35:01 PM(UTC)
abrentnall

Rank: Member

Joined: 18/09/2011(UTC)
Posts: 15
Location: Columbia, SC

I updated the jquery version in dotnetnuke and it still didn't work. I turned on the "Hosted jQuery Version" and it works. Thank you for your help in resolving my issue.
aargre
#7 Posted : Tuesday, 13 December 2011 1:17:43 PM(UTC)
Rank: Member

Joined: 13/12/2011(UTC)
Posts: 7
Man
Location: Cincinnati

I have the same or very similar issue but my error is different:

f.easing[i.animatedProperties[this.prop]] is not a function
http://ajax.googleapis.c.../jquery/1/jquery.min.js
Line 4
Roger Martin
#8 Posted : Tuesday, 13 December 2011 1:30:12 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

Can you tell who is calling that function? (Look at the call stack with a tool like Firebug) I don't think GSP invokes the easing function, unless it is done indirectly.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
aargre
#9 Posted : Tuesday, 13 December 2011 1:48:35 PM(UTC)
Rank: Member

Joined: 13/12/2011(UTC)
Posts: 7
Man
Location: Cincinnati

from the firebug stack window

clone(a=undefined)jquery.min.js (line 4)
clone(a=undefined)jquery.min.js (line 4)
clone(a=0, c=1, d=undefined)jquery.min.js (line 4)
clone()jquery.min.js (line 4)
clone()jquery.min.js (line 4)
f(a=img#mo_img getmedia...dt=2&g=2, b="fx")jquery.min.js (line 2)
f()jquery.min.js (line 2)
f(a=[img#mo_img getmedia...dt=2&g=2], c=function(), d=undefined)jquery.min.js (line 2)
f(a=function(), b=undefined)jquery.min.js (line 2)
f(a="fx", c=g())jquery.min.js (line 2)
clone(a=Object { opacity="show"}, b=300, c=undefined, d=undefined)jquery.min.js (line 4)
clone(a=300, c=undefined, d=undefined)jquery.min.js (line 4)
Timer(a=[img#mo_img getmedia...dt=2&g=2])mediao...view.js (line 1)
Timer()mediao...view.js (line 1)
onclick(event=click clientX=1143, clientY=154)Pictur...onclick (line 2)

is this good enough?

Roger Martin
#10 Posted : Tuesday, 13 December 2011 3:00:51 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

Hmm, because the file is minified, I can't tell what line is failing. Replace the minified version with the debug version:

1. On the web server, go to DesktopModules\GalleryServerPro\gs\script in your DNN site.
2. Rename mediaobjectview.js to mediaobjectview_tmp.js
3. Rename mediaobjectview.debug.js to mediaobjectview.js.
4. Use a browser to trigger the error again, noting the stack trace (callstack). Post it here.

When finished, reverse the steps to go back to your original script file.

Also, which version of jQuery is your browser using? With Firebug, view the jQuery script file - the version number is in the first line or two.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
aargre
#11 Posted : Tuesday, 13 December 2011 3:26:41 PM(UTC)
Rank: Member

Joined: 13/12/2011(UTC)
Posts: 7
Man
Location: Cincinnati

f.easing[i.animatedProperties[this.prop]] is not a function
clone(a=undefined)jquery.min.js (line 4)
clone()jquery.min.js (line 4)
a = undefined
clone(a=0, c=1, d=undefined)jquery.min.js (line 4)
clone()jquery.min.js (line 4)
clone()jquery.min.js (line 4)
f(a=img#mo_img getmedia...dt=2&g=2, b="fx")jquery.min.js (line 2)
f()jquery.min.js (line 2)
f()jquery.min.js (line 2)
a = [img#mo_img getmedia...dt=2&g=2]
c = function()
d = undefined
f(a=function(), b=undefined)jquery.min.js (line 2)
f(a="fx", c=g())jquery.min.js (line 2)
clone(a=Object { opacity="show"}, b=300, c=undefined, d=undefined)jquery.min.js (line 4)
clone(a=300, c=undefined, d=undefined)jquery.min.js (line 4)
Timer(a=[img#mo_img getmedia...dt=2&g=2])mediao...view.js (line 1)
Timer()mediao...view.js (line 1)
onclick(event=click clientX=1068, clientY=278)Pictur...onclick (line 2)
{for(var a=0,b;(b=this[a])!=null;a++){...y",[],function(){return f})})(window);
jquery.min.js (line 4)
f.easing[i.animatedProperties[this.prop]] is not a function
{for(var a=0,b;(b=this[a])!=null;a++){...y",[],function(){return f})})(window);
jquery.min.js (line 4)
"enabling javascript debugger to support JavaScriptTool"

/*! jQuery v1.7.1 jquery.com | jquery.org/license */


anything else?
Roger Martin
#12 Posted : Tuesday, 13 December 2011 3:35:43 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

Your browser may be caching the old script file. Notice these two lines in the stack trace:

Timer(a=[img#mo_img getmedia...dt=2&g=2])mediao...view.js (line 1)
Timer()mediao...view.js (line 1)

The line number should be greater than one. Force your browser to refresh by hitting F5 and try again.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
aargre
#13 Posted : Tuesday, 13 December 2011 3:46:03 PM(UTC)
Rank: Member

Joined: 13/12/2011(UTC)
Posts: 7
Man
Location: Cincinnati

so sorry!

clone(a=undefined)jquery.min.js (line 4)
clone(a=undefined)jquery.min.js (line 4)
clone(a=0, c=1, d=undefined)jquery.min.js (line 4)
clone()jquery.min.js (line 4)
clone()jquery.min.js (line 4)
f(a=img#mo_img getmedia...dt=2&g=2, b="fx")jquery.min.js (line 2)
f()jquery.min.js (line 2)
f(a=[img#mo_img getmedia...dt=2&g=2], c=function(), d=undefined)jquery.min.js (line 2)
f(a=function(), b=undefined)jquery.min.js (line 2)
f(a="fx", c=g())jquery.min.js (line 2)
clone(a=Object { opacity="show"}, b=300, c=undefined, d=undefined)jquery.min.js (line 4)
clone(a=300, c=undefined, d=undefined)jquery.min.js (line 4)
animate(obj=[img#mo_img getmedia...dt=2&g=2])mediao...view.js (line 361)
showNextMediaObject()mediao...view.js (line 293)
onclick(event=click clientX=1142, clientY=270)Pictur...onclick (line 2)

is that better?
Roger Martin
#14 Posted : Tuesday, 13 December 2011 10:49:32 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

Well, based on that stack trace the error is ultimately being triggered by GSP calling the animate function in jQuery, but I don't see why that would cause jQuery to fail.

I can think of two things to try:

1. Try changing to an earlier version of jQuery to see if the behavior changes.
2. Try the DNN demo to see if the issue occurs for you. I don't see a problem but maybe I'm not looking in the same place as you.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
aargre
#15 Posted : Wednesday, 14 December 2011 10:28:19 AM(UTC)
Rank: Member

Joined: 13/12/2011(UTC)
Posts: 7
Man
Location: Cincinnati

1. I was having an a.prop issue like Adam and I turned on "Hosted jQuery Version". That fixed the a.prop issue but then this happened. I am worried that changing the JQuery version is going put me back to where I started.
2. The demo worked fine for my computer. So I agree that it is the version of jQuery I am using.

Removing the Transition Effect fixed it and I don't really care about the fade effect. Thanks for looking into the issue.
Roger Martin
#16 Posted : Wednesday, 14 December 2011 10:41:06 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

Glad you found a workaround. I still don't know the root cause, though. The demo I pointed you to uses the same version of jQuery as you are using, so there must be something else going on.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.