issues with PopupDetail

1 view
Skip to first unread message

Dean

unread,
Jun 28, 2009, 9:26:53 PM6/28/09
to Clientcide
Hi Aaron
I have noticed when creating a new PopupDetailCollection I am getting
the following error opt.stickyWinToUse is not a constructor

this.stickyWin = new opt.stickyWinToUse($merge(opt.stickyWinOptions, {
relativeTo: this.observer,
showNow: false,
content: this.content,
allowMultipleByClass: true
}));
Although when I link to http://www.clientcide.com/scripts/clientside.moo.v1.2.packed.js
I get no error

I have tried clientcide-trunk-2.1.0.js and clientcide-trunk-2.0.3 and
get the same error.
Regards
Dean

Aaron Newton

unread,
Jun 29, 2009, 4:01:23 PM6/29/09
to clien...@googlegroups.com
Sounds like you are missing StickyWin. Did you use the download builder at http://clientcide.com/js

Dean

unread,
Jun 29, 2009, 6:33:35 PM6/29/09
to Clientcide
Hi Aaron
Yes I used the download builder.
From memory I checked everything in the builder except for debug.
Im not missing StickyWin as you can see here http://www.buyaphoto.net/test2/test.html,
if you mouse over the links Popupdetails should run, if you click on
the link StickyWin runs.
Regards
Dean

Aaron Newton

unread,
Jun 29, 2009, 7:09:31 PM6/29/09
to clien...@googlegroups.com
Running the unit tester:


it works. It's important to note that the unit tester loads each file in -core, -more, and -clientcide individually from source, in order. Something is missing or wrong with your built version of the library...

Dean

unread,
Jun 29, 2009, 7:15:21 PM6/29/09
to Clientcide
Ok Thanks Aaron
Ill have another go with the builder
Regards
Dean

Aaron Newton

unread,
Jun 29, 2009, 7:16:55 PM6/29/09
to clien...@googlegroups.com
I just fixed it. The builder was including PopupDetails before StickyWin, and this was causing issues. Download it now.

Dean

unread,
Jun 29, 2009, 7:26:28 PM6/29/09
to Clientcide
Thanks Aaron
Its working now.
Glad you picked that up quickly, I was swearing at myself and people
around me were starting to give me funny looks :-)

Aaron Newton

unread,
Jun 29, 2009, 8:10:54 PM6/29/09
to clien...@googlegroups.com
thanks for the heads up.

Dean

unread,
Jun 29, 2009, 8:15:19 PM6/29/09
to Clientcide
Hi Aaron
The change you just made seems to have affected other coding.
Just trying to figure our what and where at the moment
Regards
Dean

Aaron Newton

unread,
Jun 29, 2009, 8:18:14 PM6/29/09
to clien...@googlegroups.com
you mean adversely?

Dean

unread,
Jun 29, 2009, 8:33:08 PM6/29/09
to Clientcide
Yeah
I cant seem to use setPosition now http://www.buyaphoto.net/test2/test.html

Aaron Newton

unread,
Jun 29, 2009, 9:01:10 PM6/29/09
to clien...@googlegroups.com
.setPosition and .position changed places. .setPosition is the opposite of .getPosition (as it should be, now) so it takes x/y coordinates. .position is the one that lets you position an element relative to another.

in theory, both functions know how to interpret each other's arguments, so this shouldn't be a breaking change.

I really don't know why this would have broken anything given that all I changed is that PopupDetails now loads after StickyWin, neither of which touch the positioning code...

Dean

unread,
Jun 29, 2009, 9:08:27 PM6/29/09
to Clientcide
strange hey
Reply all
Reply to author
Forward
0 new messages