Hi Venkat,
 
I used the below code and it was working fine for me without refreshing the
page

 <display:setProperty name="paging.banner.first">
            <table style="  " width="100%">

                <tr><td width="10"><input type="hidden" id="FIRSTPAGE1" 
value="{1}"/>
                <input type="button" value="&lt;&lt; First" class="buttons"
onclick="openURLFIRSTPAGE1()" disabled="true"/>

                </td>

                <td width="10"><input type="hidden" id="PREVIOUSPAGE1" 
value="{2}"/>
                <input type="button" value="&lt; Previous" class="buttons" 
disabled="true"
onclick="openURLPREVIOUSPAGE1()"/>
                </td>

                <td width="10"><input type="hidden" id="NEXTPAGE1" value="{3}"/>
                <input type="button" value="Next &gt;" class="buttons"
onclick="openURLNEXTPAGE1()"/>
                </td>

                <td width="10"><input type="hidden" id="LASTPAGE1" value="{4}"/>
                <input type="button" value="Last &gt;&gt;" class="buttons"
onclick="openURLLASTPAGE1()"/></td>

                <td  align="right"></td></tr></table>
 </display:setProperty>


and the javascript for onclick event is 

function openURLFIRSTPAGE1(){

    firstpage=document.getElementById("FIRSTPAGE1").value;
    window.location.href =  firstpage;

}

function openURLPREVIOUSPAGE1(){

    previouspage=document.getElementById("PREVIOUSPAGE1").value;
    window.location.href =  previouspage;

}

function openURLNEXTPAGE1(){

    nextpage=document.getElementById("NEXTPAGE1").value;
    window.location.href =  nextpage;

}

function openURLLASTPAGE1(){

    lastpage=document.getElementById("LASTPAGE1").value;
    window.location.href =  lastpage;

}

if in the above case window.location.href doesnt work, you can also try

window.location.replace("youractionname.action"+document.getElementById("FIRSTPAGE").value);

Regards,
Foram




Baskaran, Venkataraman wrote:
> 
> Hi All,
> 
>  
> 
> I am facing some problem in display tag:
> 
> Issue: Display tag pagination without page reloads. ( I am using struts
> framework)
> 
> Anybody pls provide solution for the issue:
> 
> Thanks in advance
> 
>  
> 
> Thanks & Regards,
> 
> Venkat.
> 
> Nortel : 044-3-3020
> 
> Mobile : +919790505581
> 
>  
> 
> "Success is a state of mind. If you want success, start thinking of
> yourself as a success." 
> - Dr. Joyce Brothers
> 
>  
> 
> 
> Confidential: This electronic message and all contents contain information
> from Syntel, Inc. which may be privileged, confidential or otherwise
> protected from disclosure. The information is intended to be for the
> addressee only. If you are not the addressee, any disclosure, copy,
> distribution or use of the contents of this message is prohibited. If you
> have received this electronic message in error, please notify the sender
> immediately and destroy the original message and all copies.
> 
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network 
> management toolset available today.  Delivers lowest initial 
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> displaytag-user mailing list
> displaytag-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Reg%3A-Urgent-Issue-tp31533703p31538945.html
Sent from the DisplayTag - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to