Aaron,
Thank you. Good food for thought. I'll look into that possibility.

Paul Gazda


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Aaron Brown
Sent: Tuesday, June 15, 2010 8:33 AM
To: [email protected]
Subject: Re: [uportal-dev] Getting the anchor value from a portlet action url

Paul -

Even so, you can probably still implement a javascript solution with a
little extra effort.

Presuming that your "show details" url includes a GET parameter
indicating which element to show, you might name the block with an ID
and use an onLoad-style javascript event pluck the GET param value from
the HTTP request, then scroll the window to that spot using the same
kind of window.location statement I used earlier.

I admit this is starting to look a little more kludgy, but it should be
workable.

 - Aaron

On 06/15/2010 11:08 AM, Paul Gazda wrote:
> Thanks, Aaron and Steve for your suggestions. Unfortunately, we don't have 
> javascript expanding the area right now. It is a full request-response to the 
> server to add the details to the list. The lists can be quite large, so 
> pre-populating the details and show/hiding them is not an option. Ajax would 
> be an option, and we will be updating the application with more javascript 
> and ajax in the future, but right now, the aim is to get it converted to a 
> portlet with as few changes as possible. The application is large, with 
> directory services for people, departments, groups and email aliases, so any 
> re-design would involve a lot of hours. I appreciate your example, Aaron, and 
> will keep it for reference when we start improvements; but right now, it's 
> looking like a kludge will be the best solution to get us out of IChannel 
> land. After that, we can re-design to get rid of the kludge.
> 
> Paul Gazda
> 
> 
> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Aaron Brown
> Sent: Tuesday, June 15, 2010 6:24 AM
> To: [email protected]
> Subject: Re: [uportal-dev] Getting the anchor value from a portlet action url
> 
> On 06/14/2010 05:53 PM, Paul Gazda wrote:
>> Bummer. Our problem is this.  We have a directory list of people in
>> focused (maximized) mode, and if you click on an entry, it expands that
>> entry within the list to show detail, and uses an anchor in the clicked
>> url to put the clicked entry at top of page when it renders. This works
>> fine in an IChannel, but I can only think of a kludge to accomplish this
>> in a portlet. Is there a legitimate way for a portlet in focused mode to
>> do it?
> 
> I think the easiest solution is Steve's - a little javascript might
> solve your problem.  Here's a code sample:
> 
> <ul>
> 
> <li id="item_1" onClick="window.location='#item_1'"> One </li>
> <li id="item_2" onClick="window.location='#item_2'"> Two </li>
> <li id="item_3" onClick="window.location='#item_3'"> Three </li>
> <li id="item_4" onClick="window.location='#item_4'"> Four </li>
> <li id="item_5" onClick="window.location='#item_5'"> Five </li>
> 
> </ul>
> 
> If you construct your list element IDs with a bit of java/jsp/whatever,
> it's easy enough to use the same element ID in the window.location
> instruction. Since you already have a javascript function that expands
> the region to show extra detail, you could just add the window.location
> instruction to that existing code.
> 
>  - Aaron
> 


-- 
Aaron Brown ([email protected] | 785-864-0462)
University of Kansas
  Information Services
    System Design
      Enterprise System Integration
        Developer


-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/uportal-dev

Reply via email to