OpenNTF.org - XPages Extension Library
XPages Extension LibraryOpenDocument[/projects/pmt.nsf/ProjectView?ReadForm&Query=]

My Links (Not logged in)
User Name Password
Hosted by Prominic.NET

   Project: XPages Extension Library (Managed by Philippe Riand, Niklas Heidloff, Dave Delay, Akihiro Kosugi, Maire Kehoe, Tony McGuckin, John Piermarini, Martin Donnelly, James Quill, Darin Egan, Padraic Edwards, Andrejus Chaliapinas, Lorcan McDonald, Simon McLoughlin, Paul Hannan)
Actions:


Subject
 How can I set ID on lotusInner DIV ?
Categories
 
Posted by
 Petter Kjeilen on 06/22/2011 at 03:43 AM
Details

Hi !

I'm using the Application Layout custom control (OneUI), and I would like to get a handle to the lotusInner DIV to do a partial refresh. More spesific I would like to do a partial refresh of the bannerUtilityLinks part.

I have tried to set the id using jQuery.

Here's my nonworking code so far:

<xp:scriptBlock id="scriptBlock1">
        <script type="text/javascript" src="jquery-1.4.2.min.js" />
        <script type="text/javascript">      
        $('.lotusInner').attr('id', 'customid_lotusInner');
        </script>
 </xp:scriptBlock>
    
 <xp:scriptBlock id="scriptBlock2">
        <xp:this.value>
            <![CDATA
setInterval(function() {
    XSP.partialRefreshPost("#{id:bulletin_checker}", {
        onStart: null,
        onComplete: function() {

    XSP.partialRefreshPost("#{id:customid_lotusInner}", {

      onComplete: null; }

    } ,
        onError: null                        
    })
}, 10000)
            ]]>
        </xp:this.value>
</xp:scriptBlock>

 

The first partialrefresh is executed (bulletin_checker), but the second one is not. I assume this is because the id has not been set properly..

Any tips on how I can accomplish this ?

Thanks !

Best regards,

Petter Kjeilen

Modification history
Entered 22-Jun-2011 3:43 by Petter Kjeilen. Last Modified by Niklas Heidloff.
Feedback
Check out other projects
[
Anonymous