I tried lot of examples at 
http://struts.apache.org/2.1.2/docs/ajax-and-javascript-recipes.html#AjaxandJavaScriptRecipes-Donotloadtab2whenpageloads%2528itwillbeloadedwhenselected%2529

but nothing seems to work,

I know the above documentation is for struts 2.1 we are using struts 2.0.6

We have the AJAX  divs and tabbed panels inside a portal enviornment.

Has any of these events tried on portal env.

What I basically want it to trap the event when someone click one of the
divs which I am interested.

I tried notifyTopic,  beforeSelectTabNotifyTopics,
afterSelectTabNotifyTopics

but nothing seems to trap the click of the div

Pls let us know how to proceed


Thanks
Lalitha





Mark-413 wrote:
> 
> Oh ok.  That's beyond my knowledge.  Hopefully someone else on the  
> list can help you.
> Mark
> 
> On 07/10/2008, at 12:27 PM, Tracy12 wrote:
> 
>>
>> Mark,
>>
>> The Issue is eventhough the preload=false, each time you click the  
>> div the
>> content will be loaded,
>>
>> What I want is basically to capture the click event and load  
>> accordingly if
>> required.
>>
>> Thanks
>>
>>
>> Mark-413 wrote:
>>>
>>> While I haven't used it yet, my understanding is that if you set
>>> preload=false, the DIV won't load until the user clicks the tab.
>>> Then the content will load.  However, I've also found this issue:
>>> https://issues.apache.org/struts/browse/WW-1860 which you might be
>>> running into.
>>>
>>> Mark
>>>
>>> On 06/10/2008, at 1:49 PM, Tracy12 wrote:
>>>
>>>>
>>>> Thanks for the reply,
>>>>
>>>> I have not set any preload value,
>>>>
>>>> But what I want is capture that event (when someone click the div)
>>>> and do a
>>>> AJAX call to the server, with Preload how can we do this.?
>>>>
>>>> Do i have to use notifyTopics,
>>>>
>>>>
>>>> Waiting for a reply,
>>>>
>>>> Thanks
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Mark-413 wrote:
>>>>>
>>>>> What have you set for the "preload" value of the DIV tag?  I  
>>>>> believe
>>>>> if you set this to false, it will behave the way you want.
>>>>>
>>>>> Check out: http://struts.apache.org/2.1.2/docs/dojo-div.html
>>>>>
>>>>> Mark
>>>>>
>>>>> On 06/10/2008, at 12:22 PM, tom tom wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> We are using struts 2.0.6 with AJAX development features, we got
>>>>>> couple of <s:div ..s, in our page inside the tabbed panel
>>>>>>  .
>>>>>>
>>>>>> We want to do some lazy loading, which means when someone clicks
>>>>>> the div,
>>>>>> inside the tabbed panel,we need to load some data for that
>>>>>> corresponding page,
>>>>>>
>>>>>> At the moment we are unable to trap this event, when we give
>>>>>> onClick inside the <s:div...  it does not really fire when some  
>>>>>> one
>>>>>> click the div but the page body,which is not we really want.
>>>>>>
>>>>>> Can someone pls give us any help on this.
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------ 
>>>>>> --
>>>>>> -
>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------- 
>>>>> --
>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>
>>>>>
>>>>>
>>>>
>>>> -- 
>>>> View this message in context: http://www.nabble.com/How-to-capture-
>>>> this-event-tp19830839p19831303.html
>>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>> -------------------------------------------------------------------- 
>>>> -
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>
>> -- 
>> View this message in context: http://www.nabble.com/How-to-capture- 
>> this-event-tp19830839p19849519.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-capture-this-event-tp19830839p19870563.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to