PDA

View Full Version : AJAX UpdatePanel stops CMotion Image Gallery from working



Charlotte_22
07-21-2008, 05:41 PM
1) Script Title: CMotion Image Gallery

2) Script URL (on DD):http://www.dynamicdrive.com/dynamici...iongallery.htm


3) Describe problem: I wanted to use an AJAX UpdatePanel with the CMothion Image Gallery, so that when a user clicks on one of the images to display it larger in another section of the page, the page doesn't refresh.

However, I've tried using it as shown;

<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<div id="motioncontainer" style="position:relative;overflow:hidden;">
<div id="motiongallery" style="position:absolute;left:0;top:0;white-space: nowrap;">
<nobr id="trueContainer">

<asp:ImageButton ID="img1" runat="server" OnClick="img1_Click"></asp:ImageButton>
<asp:ImageButton ID="img2" runat="server" OnClick="img2_Click"></asp:ImageButton>
<asp:ImageButton ID="img3" runat="server" OnClick="img3_Click"></asp:ImageButton>
<asp:ImageButton ID="img4" runat="server" OnClick="img4_Click"></asp:ImageButton>

</nobr>
</div>
</div>
</ContentTemplate>
</asp:UpdatePanel>

But when one of the images are clicked on the CMotion Image Gallery with the UpdatePanel around it, results with the gallery freezing? And the larger image doesn't change either?

Any suggestions welcome, been stuck on this for a while.
Thanks