Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

[04:26:52 EDT(-0400)] * higmad (n=chatzill@pcit-8752.HIG.SE) has joined ##uportal
[07:32:01 EDT(-0400)] * jayshao_ (n=jayshao@ool-4573130c.dyn.optonline.net) has joined ##uportal
[08:34:05 EDT(-0400)] * tsnfoo (n=tsnfoo@140.141.15.78) has joined ##uportal
[08:50:20 EDT(-0400)] * michelled (n=team@142.150.154.193) has joined ##uportal
[08:57:39 EDT(-0400)] * EricDalquist (n=dalquist@bohemia.doit.wisc.edu) has joined ##uportal
[09:37:35 EDT(-0400)] * athena (n=athena@adsl-75-58-127-15.dsl.wlfrct.sbcglobal.net) has joined ##uportal
[09:41:48 EDT(-0400)] * jayshao_ (n=jayshao@ool-4573130c.dyn.optonline.net) has joined ##uportal
[10:07:00 EDT(-0400)] * jessm (n=Jess@c-71-232-1-65.hsd1.ma.comcast.net) has joined ##uportal
[10:50:28 EDT(-0400)] * colinclark (n=colin@bas2-toronto09-1176394061.dsl.bell.ca) has joined ##uportal
[10:50:46 EDT(-0400)] <EricDalquist> time to try my hand at my first fluid component
[10:50:55 EDT(-0400)] <colinclark> wicked (smile)
[11:45:43 EDT(-0400)] <EricDalquist> fluid component question
[11:45:52 EDT(-0400)] <EricDalquist> does that.locate only find things that are children of the container?
[11:46:10 EDT(-0400)] <colinclark> EricDalquist: Yep, exactly.
[11:46:15 EDT(-0400)] <EricDalquist> hrm
[11:46:25 EDT(-0400)] <colinclark> It's designed to constrain your searches to a specific region of the page, so you don't go sucking up some other portlet's markup.
[11:46:26 EDT(-0400)] <colinclark> (smile)
[11:46:34 EDT(-0400)] <colinclark> It can be overridden if you need to
[11:46:41 EDT(-0400)] <EricDalquist> ok
[11:46:44 EDT(-0400)] <colinclark> using an optional second argument, which is the context in which to run the search
[11:47:11 EDT(-0400)] <EricDalquist> because for a component I'm working on I have to reference a <div> that is a direct child of the body
[11:47:21 EDT(-0400)] <colinclark> ah
[11:47:23 EDT(-0400)] <EricDalquist> to put up a transparent overlay
[11:47:27 EDT(-0400)] <colinclark> right
[11:47:41 EDT(-0400)] <EricDalquist> I suppose I could pass a reference in the constructor
[11:47:47 EDT(-0400)] <athena> sounds sort of like the error div for the layout reorderer
[11:47:50 EDT(-0400)] <colinclark> That's something we do sometimes, yes
[11:47:53 EDT(-0400)] <colinclark> yep
[11:48:01 EDT(-0400)] <athena> and i think that's exactly what that component does
[11:48:07 EDT(-0400)] <EricDalquist> pass in a reference?
[11:48:11 EDT(-0400)] <athena> took me a while to figure out why a normal selector didn't work
[11:48:12 EDT(-0400)] <athena> yep
[11:48:14 EDT(-0400)] <colinclark> yeah, it's passed in as an option
[11:48:43 EDT(-0400)] <colinclark> if a normal selector doesn't work, athena, shouldn't that be a bug?
[11:48:43 EDT(-0400)] <colinclark> (smile)
[11:48:44 EDT(-0400)] <EricDalquist> ok
[11:49:06 EDT(-0400)] <athena> well, antranig said it doesn't work because it's outside the container
[11:49:12 EDT(-0400)] <EricDalquist> hrm
[11:49:52 EDT(-0400)] <colinclark> athena: Ah, of course
[11:50:27 EDT(-0400)] <colinclark> It's a tough call, because sometimes components do need to stretch outside of their purview. But most of the time, it's actually a problem.
[11:50:47 EDT(-0400)] <EricDalquist> yeah
[11:58:52 EDT(-0400)] <EricDalquist> so what would the syntact for that.locate be if I wanted to find an element by id on the page?
[11:59:16 EDT(-0400)] <EricDalquist> I have " overlay: '#portlet-controls_dd-layer' " defined in my selectors
[11:59:30 EDT(-0400)] <EricDalquist> that that is a <div> directly under the <body>
[12:00:11 EDT(-0400)] <EricDalquist> var ddLayer = that.locate('overlay', $('body'));
[12:00:13 EDT(-0400)] <EricDalquist> that worked
[12:00:19 EDT(-0400)] <EricDalquist> not sure if it is the best approach
[12:00:49 EDT(-0400)] * holdorph (n=holdorph@wsip-72-215-204-133.ph.ph.cox.net) has joined ##uportal
[12:07:30 EDT(-0400)] * Sememmon (n=Sememmon@wsip-72-215-204-133.ph.ph.cox.net) has joined ##uportal
[12:16:27 EDT(-0400)] <athena> i think for the layout reorderer, we just fed it thingy: $('#thingy')
[12:16:46 EDT(-0400)] <EricDalquist> ah
[12:18:25 EDT(-0400)] <EricDalquist> https://mywebspace.wisc.edu/dalquist/web/MUM_UI/mum31b/normal.html
[12:18:25 EDT(-0400)] <EricDalquist> https://mywebspace.wisc.edu/dalquist/web/MUM_UI/mum31b/media/skins/universality/common/javascript/uportal/portlet-controls.js
[12:18:25 EDT(-0400)] <EricDalquist> there we go
[12:18:25 EDT(-0400)] <EricDalquist> wasn't too bad to convert to a fluid component
[12:18:32 EDT(-0400)] <EricDalquist> hopefully I did it right (smile)
[12:42:43 EDT(-0400)] <athena> well if it works that's a start, regardless of if it's "right" or not (tongue)
[12:42:51 EDT(-0400)] <EricDalquist> (smile)
[12:43:46 EDT(-0400)] <athena> hey i like those
[12:43:56 EDT(-0400)] <athena> want to have that in uportal 3.2?
[12:44:00 EDT(-0400)] <EricDalquist> yeah
[12:44:19 EDT(-0400)] * athena cheers
[12:44:26 EDT(-0400)] <EricDalquist> my intent is to move everything other than the minimize link there
[12:44:44 EDT(-0400)] <EricDalquist> locally at least
[12:45:34 EDT(-0400)] <athena> sounds great
[13:11:22 EDT(-0400)] * colinclark (n=colin@142.150.154.101) has joined ##uportal
[16:26:45 EDT(-0400)] <EricDalquist> jquery plugin of the day: http://devongovett.wordpress.com/2009/04/06/text-overflow-ellipsis-for-firefox-via-jquery/
[16:41:53 EDT(-0400)] * colinclark (n=colin@142.150.154.101) has joined ##uportal
[16:45:56 EDT(-0400)] <athena> sounds neat
[16:46:09 EDT(-0400)] <EricDalquist> yeah
[16:46:17 EDT(-0400)] <EricDalquist> dealing with portlet names that are too wide for the flyouts
[16:46:21 EDT(-0400)] <EricDalquist> and trying to figure out what to do
[16:46:29 EDT(-0400)] <EricDalquist> this is the one time IE is nice
[16:46:40 EDT(-0400)] <EricDalquist> since it supports text-overflow:ellipsis